Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document clarification that en-sv.fwd and sv-en.rev are *output* #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,16 @@ has not been tested yet.

## Generating priors

If you have a large file that you want to use as "training data", `en-sv`, and
a small file that you later want to align quickly, `en-sv.small`, start by
aligning the large file as usual, e.g.:
If you have a large file that you want to use as "training data", named `en-sv`,
and a small file that you later want to align quickly, `en-sv.small`, start by
aligning the large file as usual, specifying where to write the reverse and forward
alignment output files:

eflomal-align -i en-sv --model 3 -f en-sv.fwd -r en-sv.rev

Now you can generate priors based on this large aligned file, stored in
`en-sv.priors`:
The above command will give you two intermediate files `en-sv.fwd` and `en-sv.rev`.
Now you can use these to generate priors based on the large aligned file. The
priors will be stored in `en-sv.priors`:

eflomal-makepriors -i en-sv -f en-sv.fwd -r en-sv.rev --priors en-sv.priors

Expand Down