How to find out if suffix rule was applied
I'm using Freeling 4.0 and I need to check if a particular word was found via the suffixes rules.
Using Python, I'm using the following code excerpt:
w = freeling.word(form)
dic.annotate_word(w)
w.get_lemma()
w.found_in_dict()
It looks like the only way to find out if a word was "found" via suffix rules is when get_lemma() returns something and fund_in_dict() returns None.
Is that correct?
- Read more about How to find out if suffix rule was applied
- 1 comment
- Log in or register to post comments