简体   繁体   English

如何从nltk.corpus导入字符串?

[英]How can i import string from nltk.corpus?

I am trying to load string from nltk.corpus module. 我正在尝试从nltk.corpus模块加载字符串。 But i am getting an error. 但是我遇到一个错误。

from nltk.corpus import string 从nltk.corpus导入字符串 查看此图片中的错误

Would any of you be kind enough to guide me here? 你们中的任何一个愿意在这里指导我吗? Thanks in advance 提前致谢

There is no sub module called string in NLTK.corpus. NLTK.corpus中没有名为string的子模块。 Please check this page http://www.nltk.org/py-modindex.html 请检查此页面http://www.nltk.org/py-modindex.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何通过使用变量导入nltk.corpus - How to import a nltk.corpus by using a variable 如何将nltk.corpus中的单词与索引一起使用? - How do you use index with words from nltk.corpus? 如何从 nltk.corpus 的停用词中删除“他们”和“我们”? - How I can remove “they” and “we” form stop word of nltk.corpus? NLTK.corpus 和 wordnet - NLTK.corpus and wordnet 从python2.7中的nltk.corpus(.reader)导入framenet:ImportError - Import framenet from nltk.corpus(.reader) in python2.7: ImportError 使用 Chaquopy 在 android studio 中导入(从 nltk.corpus 导入 wordnet)时出错 - Error in importing (from nltk.corpus import wordnet) in android studio using Chaquopy 使用 nltk.corpus 多线程 - Use nltk.corpus multithreaded 在 python(jupyter) 中运行 nltk.corpus 数据但显示此错误所以我该怎么办? - Run nltk.corpus data in python(jupyter) but shown this error So What should i do? 如何在Python中使用nltk.corpus逐行读取和标记文本文件 - How to read and label line by line a text file using nltk.corpus in Python 将自定义停用词附加到 nltk.corpus 中的默认停用词列表,并使用 lambda 从数据框中的系列中删除停用词 - Append custom stopwords to default stopwords list from nltk.corpus and remove stopwords from a series in a dataframe using lambda
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM