Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# author: Mathias Mueller / mathias.mueller@uzh.ch
# purpose: apply word alignment models trained with fast_align
# usage information
if [ $# -lt 6 ]
then
echo "[ERROR] Too few arguments. Expected 6 command line arguments." 1>&2
echo "Usage: $0 <language 1> <language 2> <source txt file> <target txt file> <directory of trained model> <output file path>" 1>&2
@iamtmrobinson
iamtmrobinson / custom-props.tsx
Created January 8, 2018 14:49
Using custom props with a Redux form in Typescript
import * as React from 'react';
import {
Field as FormField,
InjectedFormProps,
reduxForm,
} from 'redux-form';
interface CustomProps {
customText: string;
}