admin管理员组文章数量:1122846
I am trying to use WordNet in R to determine the domain of a list of words (e.g., sports, biology) and represent the results in a dataframe. The goal is to create a dataframe where each domain is a column, and each cell contains 0 or 1 depending on whether the word is associated with that domain.
Example:
Input
| word |
|--------|
| soccer |
| pie |
| gene |
Output
| word | sports | biology | ... |
|--------|--------|---------|-----|
| soccer | 1 | 0 | ... |
| pie | 0 | 0 | ... |
| gene | 0 | 1 | ... |
I've installed the wordnet
R package, but it seems that it does not have access to WordNet Domains. Is there a good way to achieve this goal?
Thank you!
本文标签: nlpHow to get domain of words using WordNet in RStack Overflow
版权声明:本文标题:nlp - How to get domain of words using WordNet in R? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736306092a1932829.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论