Questions tagged [phrases]
48 questions
0
votes
1 answer
JavaScript cipher function allow spaces
After been learning JavaScript for 5 days, I've wrote a function that ciphers only upper and lower case letters.
The problem is that now I'm trying to make it work for phrases too (if user input is "Cats are great", the expected output is "Jhaz hyl…

Wafflo
- 13
- 3
0
votes
2 answers
Word2vec gensim - Calculating similarity between word isn't working when using phrases
Using gensim word2vec model in order to calculate similarities between two words. Training the model with a 250mb Wikipedia text gave a good result - about 0.7-0.8 similarity score for a related pair of words.
The problem is when I am using the…

Montoya
- 2,819
- 3
- 37
- 65
0
votes
2 answers
Which is the best way to store "quotes" in an android app
I'm creating an app where it can have tons of messages (let's say around 10,000). The user can browse them, see, select, send (e.g., those apps that show quotes and allows to send to someone). What should be the best way to store these messages? In…

john.taylor
- 11
- 2
0
votes
1 answer
Visualize Gensim's Phrases' vectors in 2D
I'm using the Phrases class and want to visualize the vectors in a 2D space. In order to do this with Word2Vec I've used T-SNE and it worked perfectly. When I'm trying to do the same with Phrases it doesn't make any sense (words appear next to…

Lior Magen
- 1,533
- 2
- 15
- 33
0
votes
1 answer
How to use doc2vec with phrases?
i want to have phrases in doc2vec and i use gensim.phrases. in doc2vec we need tagged document to train the model and i cannot tag the phrases. how i can do this?
here is my code
text = phrases.Phrases(text)
for i in range(len(text)):
string1 =…

Majid
- 23
- 5
0
votes
1 answer
Simple Way of Looking for Key Phrases in Jquery?
I have set up a method of retrieving messages from a real time chat client. I want to take these messages (a lot of text) and find out if any of these messages contain key phrases. If they contain a key phrase I will simply add 1 to a count…

genese
- 23
- 3
0
votes
2 answers
Group 1's and 0's into two phrases, identify start and end, and count duration
I am doing some cyclical analysis.
I have Variable X, which if true if in the state of contraction, and false otherwise
X
##[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
....
which I changed into 0's and…

Kittenjane1114
- 1
- 1
0
votes
1 answer
Reading specific phrases from input file in C
Last question for the night. I try not to post more than once per struggle haha...
This one's a bit simpler.
I have a txt file with a series of arranged numbers in the first 8 lines. Every line after is a certain phrase like "BUY ITEM" or "AWARD…

Darksider13
- 31
- 5
0
votes
4 answers
Delphi Phrase Count / Keyword Density
Does anyone know how to or have some code on counting the number of unique phrases in a document? (Single word, two word phrases, three word phrases).
Thanks
Example of what I'm looking for:
What I mean is I have a text document, and i need to…

Brad
- 2,237
- 5
- 41
- 69
0
votes
1 answer
Finding phrases in a string and the frequency of each phrase
I am working on a script using f# that find phrases in a given string or text, and the frequency of each phrase.
the phrase would 2 or more words.
I know how to do it in other languages but I'm interesting in anonymous functions in F Sharp, with…

Naif Alghamdi
- 15
- 3
0
votes
5 answers
PHP - Which word is properly typed?
I'm looking for help on writing a script to check a list of phrases/words and compare them to one another and see which one is the properly typed phrase/word.
$arr1 = array('fbook', 'yahoo msngr', 'text me later', 'how r u');
$arr2 =…

Shawn
- 51
- 1
- 3
0
votes
4 answers
PHP Replacing swear words with phrases
So I get how to replace certain words with other ones. What I'm trying to figure out is how to take a word and replace it with a phrase and eliminate all other input.
For example:
bad word is 'dog'
user inputs -> 'You smell like a dog.'
instead of…

Steve Whitmore
- 903
- 1
- 9
- 22
0
votes
1 answer
Mallet CRF SimpleTagger phrases/multi words
I am a newbies to Mallet, I am trying use mallet Simple tagger/CRF and experimenting with phrases - I tried lookup the documentation on mallet site and also went through the user archives - nothing helped.
I tried training mallet for simple tagging,…

rtuser
- 33
- 1
- 5
0
votes
3 answers
Mixed results with perl regex, matching list of phrases in html code
Mixed results with regex, matching list of phrases in html code
This new post was in response to another post, Perl Regex match lines that contain multiple words, but was, for reasons unknown to me, deleted by the moderator. It seemed logical to me…

hmj6jmh
- 630
- 5
- 13
-1
votes
1 answer
get data behind " , " to take phrase by python
I want to get data in Column D behind " , " in the end of the sentence from left to right to get phrase in link bio:
[1]:( http://prntscr.com/fye9hi) "here"
Someone cant help me please ....
This is my code but it cant go like i want.
import xlrd…

Minh Tuấn Ngô
- 17
- 1
- 5