Nltk Example For Relation Extraction Does Not Work
I have gotten through parts of the nltk book until this section on relation extracting. Can someone help me understand why the code below does not work? There does not seem to be t
Solution 1:
This depends on your version of NLTK. On NLTK 2.x this should work:
print nltk.sem.relextract.show_raw_rtuple(rel)
On NLTK 3.x show_raw_rtuple() seems to have been replaced by rtuple():
print(nltk.sem.relextract.rtuple(rel))
Post a Comment for "Nltk Example For Relation Extraction Does Not Work"