No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I applied neural network toolbox to create a multilayer feedforward network. The data is a huge csv file which maps to three outputs. data = load('Train.csv'); Input= data(1:31012,1:40); Output=data(1:31012,41); %net = newff(minmax(Input),[1000,1000,1000]); net = feedforwardnet(10,'trainlm'); view(net) y = net(Input); perf = perform(net,y,Output) but this code always gives this - "Empty … | |
I have been trying to find the frequency distribution of nouns in a given sentence. If I do this: text = "This ball is blue, small and extraordinary. Like no other ball." token_text= nltk.word_tokenize(text) tagged_sent = nltk.pos_tag(token_text) nouns= [] for word,pos in tagged_sent: if pos in ['NN',"NNP"]: nouns.append(word) freq_nouns=nltk.FreqDist(nouns) print … | |
I have to append first 3 sentences of this sample text to a file(data.txt). So far I've done this: import nltk text="""First patented in 1876 by Alexander Graham Bell and further developed by many others, the telephone was the first device in history that enabled people to talk directly with … | |
I am trying to extract blogs related to economy using the RSS feeds in python. I have no idea how to get a specific number of blogs and how to get those blogs in a particular domain (like economy). My project requires analysing these blogs using NLP techniques, but I'm … | |
I wanted to write the brute force algorithm for string matching by multithreading. I have made the program by using a single thread. In multithreading sample code, I have initialised the no. of threads to be strlen(text)-strlen(pattern). I do the matching in the ThreadFunc. Do I have to divide the … | |
I have to write a program that finds a pattern in a text using Brute-force method. I have made functions to read the text file, pattern file and to execute the brute force algorithm(called match). These are called in main(). i need to store the index (at which the pattern … | |
I am new at coding. I wanted to read from a file(text) and then write it to another file many times so that the file I write to becomes as large as 20MB..I read Harry Potter book for that....the code works just fine for 1000 lines etc..the file is read … |