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

[vmap] Need an example of how to use the build-pt command #7

Open
Zoltrix opened this issue Mar 3, 2024 · 0 comments
Open

[vmap] Need an example of how to use the build-pt command #7

Zoltrix opened this issue Mar 3, 2024 · 0 comments

Comments

@Zoltrix
Copy link

Zoltrix commented Mar 3, 2024

I'm trying to build a phrase table using the following command:

docker run --rm -v $PWD/mycorpus:/root/corpus build-pt corpus src_short tgt_short 3 > phrase-table.gz

I'm running into errors: IOError: [Errno 2] No such file or directory: 'corpus.src_short'. I'm sure there's a silly mistake that i'm making, but i don't know how to fix it even after hours fiddling around with paths and making sure that my corpus files are there in the docker volume.

I have two files under the mycorpus directory:

  • corp.src_short
  • corp.tgt_short

So can anyone provide a working example (paths and file names included) of how to correctly generate a phrase table ?

@Zoltrix Zoltrix changed the title Need an example of how to use the build-pt command [vmap] Need an example of how to use the build-pt command Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant