nltk
How to incrementally train an nltk classifier
I am working on a project to classify snippets of text using the python nltk module and the naivebayes classifier.I am able to train on corpus data and classify another set of 开发者_开发技巧data but[详细]
2023-02-09 05:10 分类:问答Failed loading english.pickle with nltk.data.load
When trying to load the punkt tokenizer... import nltk.data tokenizer = nltk.data.load(\'nltk:tokenizers/punkt/english.pickle\')[详细]
2023-02-08 11:58 分类:问答How to extract words from sample corpus that comes with NLTK?
NLTK comes with some samples of corpus at: http://nltk.googlecode.com/svn/trunk/nltk_data/index.xml I want to have only text without encodings. I do not know how to extract such content. What I want[详细]
2023-02-06 16:26 分类:问答S -> NP VP, do these sentences follow this format?
Am parsing some sentences (from the inaugural speech in the nltk corpus) with the format S -> NP VP, and I want to make sure I parsed them correctly, do these sentences 开发者_开发问答follow the afore[详细]
2023-02-04 19:34 分类:问答Can I create a corpus from a collection of strings in NLTK? [duplicate]
This question already has answers here: Creating a new corpus with NLTK (4 answers) Closed 9 years ago. Is there a way to create a corpus without having to have items in files. For instan[详细]
2023-02-01 02:48 分类:问答Trying to use MEGAM as an NLTK ClassifierBasedPOSTagger?
I am currently trying to build a general purpose (or as general as is practical) POS tagger with NLTK. I have dabbled with the brown and treebank corpora for training, but will probably be settling on[详细]
2023-01-30 20:18 分类:问答counting a sequence of item, python
The task is to define a function count_vowels(text) that takes a string text, counts the vowels in text (using a Python dictionary for the counting), and returns the[详细]
2023-01-29 14:16 分类:问答operating on embedded tuples/strings, python
say I have a tagged text (word, tag) in tuple format. i want to convert it to a string in order to make some changes to the tags. my function below only sees the last sentence in the text, i guess the[详细]
2023-01-27 11:09 分类:问答Creating a new corpus with NLTK
I reckoned that often the answer to my title is to go and read the documentations, but I ran through the NLTK book but it doesn\'t give the answer. I\'m kind of new to Python.[详细]
2023-01-26 19:50 分类:问答Sum up the number of words frequency using FreqDist, python
How to sum up the number of words frequency using fd.items() fr开发者_StackOverflow社区om FreqDist?[详细]
2023-01-25 08:12 分类:问答