Questions tagged as 'nltk'

2
answers

Chatbot in Python with NLTK

I'm a beginner in python, some time I've been interested in Text Mining and would like to ask for help with a question in a project. Some time I've been studying how to use the Python NLTK Library to create a chatbot. I even got to work ou...
asked by 24.01.2018 / 11:46
3
answers

Identify a numerical sequence in a text file

I'm new to Python, and with a problem I'm not finding a solution to. I have a folder with about 10k of .txt (written in the most varied ways). I need to extract the FIRST sequence of 17 numbers that is located in the first lines of these txt's,...
asked by 16.11.2017 / 12:20
1
answer

stopwords in python

Is there any way to do stopword without using import nlkt ? I'm searching the web but I'm not finding it any other way. I can not install nltk on my 64-bit Python 3.6. I follow all the steps but finished the steps and already...
asked by 19.12.2018 / 00:26
0
answers

Grammar for Syntactic Analysis stop NLTK Python - continue on the other line

I am building the grammar in an out-of-code file, however the lines are very long and I would like to know a way to continue on the other line without any execution error. When I put it to continue on another line, for example: N -> 'dog'...
asked by 22.08.2018 / 15:28
0
answers

Problem importing NLTK packages

               from nltk.machado import *         Traceback (most recent call last): File "<pyshell#8>", line 1, in <module> from nltk.machado import * ModuleNotFoundError: No module named 'nltk.machado' However, when I run the...
asked by 13.07.2018 / 23:16
1
answer

I need to read a .csv file and rewrite to 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 csvfile: palavras = word_tokenize(text...
asked by 16.06.2018 / 00:28
1
answer

Installing nltk in python 3.6

Hello. How do I install nltk in python 3.6? I use the anaconda. When I do: import nltk And I run, it does not make a mistake, but when I do nltk. for autocomplete, does not work. The module is installed, but there is some import mism...
asked by 01.10.2017 / 00:48