Created
April 5, 2021 19:47
-
-
Save avriiil/8ea291c2411e1025246ec208f00dbbcc to your computer and use it in GitHub Desktop.
Get lemmas of Arabic string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_lemmas(tokenized_text): | |
disambig = mle.disambiguate(tokenized_text) | |
lemmas = [d.analyses[0].analysis['lex'] for d in disambig] | |
return lemmas |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment