Category : nltk

My problem has two parts, here is the first: I have a list of lists like this: big_list = [[‘i have an apple’,’i have a pear’,’i am a monkey’, ‘tell me about apples’], [‘tell me about cars’,’tell me about trucks’,’tell me about planes’]] I also have a list of words like this: words = [‘i’,’have’,’monkey’,’tell’,’me’,’about’] ..

Read more

I want to extract information from different sentences so i’m using nltk to divide each sentence to words, I’m using this code: words=[] for i in range(len(sentences)): words.append(nltk.word_tokenize(sentences[i])) words it works pretty good but i want something little bit different .. for example i have this sentence : ‘[‘Jan 31 19:28:14 nginx: 10.0.0.0 – – ..

Read more