我试图让NLTK和wordnet在Heroku上工作。我已经做了nltk.download()pip install -r requirements.txtResource'corpora/wordnet' not found.Please use the NLTK
Downloader to obtain the resource: >>> nltk.download(
我有包含需要匹配的自定义多词实体的输入句子,因此为此目的,我使用了优秀的库。然而,它有一个缺陷:它不能识别作为实体的句子中的复数词。例如,如果我声明banana为一个实体,并将short blue bananas作为一个句子,它将不会承认bananas是一个实体。我目前的“解决办法”是这样做:doc = nlp(inputLine.lower().strip())
# Lemmatize the words so