This pull request improves the sorting function for the BERT disambiguation component in MSA and EGY.
We first sort analyses by their scores, alphabetically in diac, and then by lex_logprob. The difference from the previous approach is additional sorting by lex_logprob. Currently, it only works with MSA and EGY databases, because the lex_logprob feature is missing in GLF and LEV databases.
This pull request improves the sorting function for the BERT disambiguation component in MSA and EGY.
We first sort analyses by their scores, alphabetically in
diac
, and then bylex_logprob
. The difference from the previous approach is additional sorting bylex_logprob
. Currently, it only works with MSA and EGY databases, because thelex_logprob
feature is missing in GLF and LEV databases.