Questions tagged [phrase]
210 questions
28
votes
7 answers
how do I get month from date in mysql
I want to be able to fetch results from mysql with a statement like this:
SELECT *
FROM table
WHERE amount > 1000
But I want to fetch the result constrained to a certain a month and year (based on input from user)... I was trying like…

netrox
- 5,224
- 14
- 46
- 60
11
votes
4 answers
Specific to the world of programming, what does "Turtles all the way down" mean?
I hear this phrase often and do not fully understand it's meaning. What does it mean? And if possible, is there an example?
thank you!

Mario Zigliotto
- 8,315
- 7
- 52
- 71
8
votes
2 answers
elastic search exact phrase matching
I am new to ES. I am having trouble finding exact phrase matches.
Let's assume my index has a field called movie_name.
Let's assume I have 3 documents with the following values
movie_name = Mad Max
movie_name = mad max
movie_name = mad max 3d
If…

userab12345
- 121
- 1
- 6
8
votes
2 answers
Solr error 500 on phrasequery search for text_general field
getting query error on :
LNm:"PersonLastName III"
Response is: "field \"LNm\" was indexed without position data; cannot run PhraseQuery'
Schema is:

p1vande
- 81
- 1
- 2
8
votes
2 answers
Using Stanford Parser(CoreNLP) to find phrase heads
I am going to use Stanford Corenlp 2013 to find phrase heads. I saw this thread.
But, the answer was not clear to me and I couldn't add any comment to continue that thread. So, I'm sorry for duplication.
What I have at the moment is the parse tree…

Alice1989
- 91
- 1
- 6
7
votes
4 answers
Solr: exact phrase query with a EdgeNGramFilterFactory
In Solr (3.3), is it possible to make a field letter-by-letter searchable through a EdgeNGramFilterFactory and also sensitive to phrase queries?
By example, I'm looking for a field that, if containing "contrat informatique", will be found if the…

Xavier Portebois
- 3,354
- 6
- 33
- 53
6
votes
2 answers
Elastic Search match phrase query -> output not predictable
Sample doc
{
"id": 5,
"title": "Quick Brown fox jumps over the lazy dog",
"genre": [
"fiction"
]
}
Mapping
{
"movies" : {
"mappings" : {
"properties" : {
"genre" : {
"type" : "text",
"fields" : {
…

Sahil Gupta
- 2,028
- 15
- 22
6
votes
2 answers
How to prevent splitting specific words or phrases and numbers in NLTK?
I have a problem in text matching when I tokenize text that splits specific words, dates and numbers. How can I prevent some phrases like "run in my family" ,"30 minute walk" or "4x a day" from splitting at the time of tokenizing words in NLTK?
They…

mm7
- 63
- 1
- 5
6
votes
3 answers
Counting phrase frequency in Python 3.3.2
I have been examining different sources on the web and have tried various methods but could only find how to count the frequency of unique words but not unique phrases. The code I have so far is as follows:
import collections
import re
wanted =…

Raul
- 83
- 1
- 6
5
votes
0 answers
Using gensim's Phraser with pre-trained vectors
I am trying to use pre-trained word embeddings taking into account phrases. Popular pre-trained embeddings like GoogleNews-vectors-negative300.bin.gz have separate embeddings for phrases as well as unigrams e.g., embeddings for New_York and the two…

geompalik
- 1,582
- 11
- 22
5
votes
1 answer
How to search phrase queries in inverted index structure?
If we want to search a query like this "t1 t2 t3" (t1,t2 ,t3 must be queued) in an inverted index structure ,
which ways should we do ?
1-First we search the "t1" term and find all documents that contains "t1" , then do this work for "t2" and then…

Mahdi Amrollahi
- 2,930
- 5
- 27
- 37
4
votes
3 answers
R Text Mining: Counting the number of times a specific word appears in a corpus?
I have seen this question answered in other languages but not in R.
[Specifically for R text mining] I have a set of frequent phrases that is obtained from a Corpus. Now I would like to search for the number of times these phrases have appeared in …

appletree
- 353
- 2
- 5
- 10
4
votes
3 answers
spaCy library to extract noun phrase - ValueError: [E866] Expected a string or 'Doc' as input, but got:
currently I'm trying to extract noun phrase from sentences.
The sentences were stored in a column in excel file.
Here the code using python:
import pandas as pd
import spacy
df = pd.read_excel("xxx.xlsx")
nlp = spacy.load("en_core_web_md")
for row…

researchcollege111
- 63
- 1
- 6
4
votes
1 answer
Python Pandas NLTK Extract Common Phrases (ngrams) From Text Field in Dataframe 'join() argument' Error
I have the following sample dataframe:
No category problem_definition_stopwords
175 2521 ['coffee', 'maker', 'brewing', 'properly', '2', '420', '420', '420']
211 1438 ['galley', 'work', 'table', 'stuck']
912 2698 ['cloth',…

PineNuts0
- 4,740
- 21
- 67
- 112
4
votes
2 answers
Efficient Phrase Matching Algorithm
I have a set of about 7 Million phrases to be matched to about 300 Million queries.
Queries can be sub-strings or contain the phrases themselves. Basically I want a measure of 'similarity' between two phrases [ not necessarily the edit distance ]…

Rohan Monga
- 1,759
- 1
- 19
- 31