neulab / awesome-align

A neural word aligner based on multilingual BERT
https://arxiv.org/abs/2101.08231
BSD 3-Clause "New" or "Revised" License
325 stars 47 forks source link

Training with gold alignment #31

Closed ruoyuxie closed 2 years ago

ruoyuxie commented 2 years ago

Hi,

Thanks again for such a great alignment tool!

I was trying to train the model with gold alignments, but I keep getting the following error message:

awesome-train: error: unrecognized arguments: --train_gold_file=examples/enfr.gold

I used the Supervised Settings example command from README. My TRAIN_FILE is formated as tokenized src ||| tgt, and the TRAIN_GOLD_FILE is gold alignment pairs (eg: enfr.gold).

Am I missing anything?

Thanks!

zdou0830 commented 2 years ago

Hello, it's possible that you are using an old version. Could you check if pip install awesome_align==0.1.6 or git clone the current repo and then python setup.py install would solve the issue? Thanks!

ruoyuxie commented 2 years ago

Hello, it's possible that you are using an old version. Could you check if pip install awesome_align==0.1.6 or git clone the current repo and then python setup.py install would solve the issue? Thanks!

It works! Thanks a lot!