NLTK ontology/metonymy 工具
NLTK ontology/metonymy instruments
有没有建立文本反义词的工具。
关于转喻的同样问题 - 是否有机会在 sense/text?
中找出转喻
提前致谢。
Ontology
NLTK 中没有什么特别之处,您可以使用 NLTK 创建基于文本的 ontology。您必须从文本中提取概念(您可以从 , Multi-Word Expressions or Information Extraction). The rest is about somehow linking to existing ontologies (e.g. you can start with topics related to your text 开始)。
转喻
您可以使用 WordNet 识别您处理的文本中的单词或概念的转喻关系。这可以通过此处的 NLTK interface to WordNet. You would have to identify a synset containing your concept / word and traverse along metonimic relationship of that synset with another. Your question could lead to wildly varying implementations depending on the requirements you have so let me leave you with a hint snippets 实现。
有没有建立文本反义词的工具。 关于转喻的同样问题 - 是否有机会在 sense/text?
中找出转喻提前致谢。
Ontology
NLTK 中没有什么特别之处,您可以使用 NLTK 创建基于文本的 ontology。您必须从文本中提取概念(您可以从
转喻
您可以使用 WordNet 识别您处理的文本中的单词或概念的转喻关系。这可以通过此处的 NLTK interface to WordNet. You would have to identify a synset containing your concept / word and traverse along metonimic relationship of that synset with another. Your question could lead to wildly varying implementations depending on the requirements you have so let me leave you with a hint snippets 实现。