Most voted "nltk" questions
NLTK (Natural Language Toolkit) is a Python library used for natural language Processing (NLP), which is, in short, the process for developing algorithms capable of "understanding" human language.
Learn more…13 questions
Sort by count of
-
4
votes2
answers793
viewsChatbot in Python with NLTK
I am beginner in python, for some time I have been interested in Text Mining and I would like to ask for a help with a doubt in a project. For some time I have been studying how to use the Python…
-
2
votes3
answers1051
viewsIdentify a numerical sequence in a text file
I’m new to Python, and I’m having a problem that I can’t find a solution to. I have a folder with about 10k of . txt (written in many different ways). I need to extract the FIRST sequence of 17…
-
1
votes0
answers90
viewsI have a Python error
I have the following code saved as main.py import nltk from nltk.stem.lancaster import LancasterStemmer stemmer = LancasterStemmer() import numpy import tflearn import tensorflow import random…
-
1
votes1
answer88
viewstransform data from a Dataframe column into a single string
I have a Dataframe with a column that has different texts in each row and I intend to join all the lines in a single string, it is possible? the idea is to turn all the sentences in the column into…
-
1
votes1
answer39
viewsword_tokenize creating tokens with only one character instead of words
When creating the list below, with the tokens of multiple texts .txt, the for loop tokenize the characters and not the words themselves: import glob import nltk l = [] for file in…
-
0
votes1
answer116
viewsI need to read a . csv file and rewrite it into another . csv file without stopwords using Python
from nltk.corpus import stopwords from nltk.tokenize import word_tokenize from string import punctuation import csv texto = open('arquivo_sujo.csv','r').read() with open('arquivo_limpo.csv', 'w') as…
-
0
votes1
answer269
viewsPython lib to convert PDF/EPUB to txt
I’ll use the NLTK, but I need some plain text. The material I have is in epub and pdf, so I need a lib that converts one of these formats to txt. Does anyone know if you have anything like this?…
-
0
votes1
answer65
viewsClassification of grammar in nltk
I am using the lib Natural Language Tool Kit to treat some texts and in this lib has the feature Rslpstemmer() removes almost the whole word and leaves the radical. But the words Perfect homonyms…
-
0
votes0
answers108
viewsOserror NLTK Forest labeling
I’m doing tests with NLTK for chatbot, and I ended up having an error when I tried to tag a phrase using the Forest after mining data from the internet (this error is also when I tested without the…
-
0
votes0
answers34
viewsPython NLTK does not correctly classify my text even though show_most_informative_features looks okay
Talk guys, I’m learning to mess with Python’s NLTK for a course, using the teacher’s example base, everything works fine, but when using a base of its own, something strange is happening and as I…
-
-1
votes1
answer517
viewsInstall nltk in python 3.6
Hello. How do I install nltk in python 3.6? I use anaconda. When I do: import nltk and run, no mistake, but when I do nltk. for autocomplete, it does not work. The module is installed, but there is…
nltkasked 7 years, 1 month ago André Nascimento 1,258 -
-1
votes1
answer1415
viewspython stopwords
Is there any way stopword without using the import nlkt? I’m searching the web but I’m not finding another way. I can’t install the nltk in my 64-bit Python 3.6. I follow all the steps, but finished…
-
-1
votes1
answer29
viewsProblems with Freqdist and Conditionalfreqdist from NLTK
I tokenized and tagged a Pandas column with nltk and then exported my column as a list. list1 = esquizo['Enunciados_limpos'].apply(lambda x: nltk.word_tokenize(x)).apply(lambda x:…
nltkasked 3 years, 11 months ago Junior Costa 1