All Questions
54 questions
2
votes
0
answers
82
views
Improving performance of word extraction
I have written the following code:
temp_list = processed_text.split()
print(temp_list)
emotion_lists = {
'admiration': [], 'amusement': [], 'anger': [], 'annoyance': [],
'approval': [], '...
2
votes
0
answers
41
views
How to increase chances of certain words to be selected as keywords in Rake-Nltp
I'm using Rake-Nltp to generate keywords from sentences. I want to increase preferences for some words to be selected as keywords. My dataset is based on football(soccer) commentary... so for eg
...
0
votes
1
answer
58
views
Need suggestions for a NLP use case
I am trying to build a web scraper that can predict the content of a given URL into multiple categories, but I am currently confused about which method is best suited for my use case. Here's the ...
-1
votes
3
answers
657
views
How do I perform prediction algorithms on survey data? [closed]
for example- I have a dataset like this
If I have an input like "Son 19-30 Read the book No" then how do I get the prediction of online shopping based on this? What kind of machine learning ...
2
votes
3
answers
175
views
Improve speed of python algorithm
I have used Sentiment140 dataset for twitter for sentiment analysis
Code:
getting words from tweets:
tweet_tokens = []
[tweet_tokens.append(dev.get_tweet_tokens(idx)) for idx, item in enumerate(dev)]
...
0
votes
1
answer
197
views
How to find synonyms for some word from other texts [closed]
I was wondering how could I find words that have similar meaning just from lots of texts for example news articles.
1
vote
1
answer
1k
views
Is it possible to predict a whole output vector given an input vector or a series of vectors using XGBoost?
I have text dataset of text reviews and answers. Each sentence of the reviews and answers have been vectorized like this:
Vector_Review ...
1
vote
1
answer
2k
views
which algorithm does google keyboard uses for automatic suggestions (personal vocab included)?
I am confused since google cannnot train their text generation models with each individuals personal vocabulary.
I was trying to develop something similar but i got stuck when the number of classes ...
-2
votes
1
answer
150
views
Can I use Natural Language Processing while identifying given words in a paragraph Or do I need to use machine learning algorithms
I need to identify some given words using NLP.
As an example,
Mary Lives in France
If we consider in here the given words are Australia, Germany,France. But in this sentence it include only France. ...
2
votes
2
answers
72
views
grade multiple responses from different users
I want to grade/score the response of different users inputs. For this I have used Multinomial navie bayes. The below my code.
# use natural language toolkit
import nltk
from nltk.stem.lancaster ...
-2
votes
2
answers
65
views
Split pack of text files into multiple subsets according to the content of the files
I have lot of PDF, DOC[X], TIFF and others files (scans from a shared folder). Each file converted into pack of text files: one text file per page.
Each pack of files could contain multiple documents ...
2
votes
2
answers
849
views
Generating possible sentences from a scrambled list of n-grams (python)
Sample input stream: [ ('t','h'), ('h','e'), ('e', ' '), (' ','f') , ('f','o'), ('o','x'), ('x',' '), (' ','a'), ('a','t'), ('t','e'), ('e', <p>) ]
Suppose you have a sentence {ABCABA}, where ...
0
votes
1
answer
1k
views
Baum Welch (EM Algorithm) likelihood (P(X)) is not monotonically converging
So I am sort of an amateur when comes to machine learning and I am trying to program the Baum Welch algorithm, which is a derivation of the EM algorithm for Hidden Markov Models. Inside my program I ...
1
vote
1
answer
176
views
How to train a machine to label individual words in a text
For a text (say):
"I am leaving India today. I am headed to USA for a week."
"I am travelling from India to USA"
I need to train the machine to label USA as "Destination" and India as "Source"
I am ...
2
votes
0
answers
74
views
Ruby Machine Learning and NPL algorithm to detect and correct sentences
I have a database with 1.000.000M records with the following information.
Sentence | Score 1 | Score 2 | Score 3 | Score 4
My question would be what Machine learning and NPL libraries would you use ...