cisnlp / simalign

Obtain Word Alignments using Pretrained Language Models (e.g., mBERT)
MIT License
345 stars 47 forks source link

Null extension #22

Closed koren-v closed 3 years ago

koren-v commented 3 years ago

Hi, I liked your paper and found that I need the "null" option. Could you please include its implementation?

masoudjs commented 3 years ago

Hi,

We're happy that you liked it. You can find the implementation in "examples/align_files.py". Since the null option can only be applied to a set of sentences you can use this code to align your sentences together. If there was any issue please let us know. I leave this thread open.

koren-v commented 3 years ago

Got it, thanks!)