cisnlp / simalign

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

add alignment score function #4

Closed zparcheta closed 3 years ago

zparcheta commented 4 years ago

I computed the alignment score get_alignment_score() in simalign.py based on the mean of cosine distance between words. This score is very useful if we want to select only the pairs of sentences with the best alignment score and remove misaligned sentences.

pdufter commented 4 years ago

Hi @zparcheta, thanks for contributing! Please describe briefly what your changes are about and why they are useful.

pdufter commented 3 years ago

Closing because of inactivity.

jiangweiatgithub commented 3 years ago

Hi @zparcheta, thanks for contributing! Please describe briefly what your changes are about and why they are useful. Is this pull request already merged?

pdufter commented 3 years ago

I have reviewed the pull request. Some changes should be made before it can be merged.