Questions tagged [phrase]
210 questions
3
votes
3 answers
Corpus build with phrases
I have my documents as:
doc1 = very good, very bad, you are great
doc2 = very bad, good restaurent, nice place to visit
I want to make my corpus separated with , so that my final DocumentTermMatrix becomes:
terms
docs very good …

user2481422
- 868
- 3
- 17
- 31
3
votes
2 answers
highlighting exact phrases with solr
I am using solrj as client for indexing documents on the solr server
I am new to solr, And I am having problem with the highlighting in solr. Highlighting exact phrases with solr does not work.
For example if the keyword is: "dulce hogar"
it…

S. Surez
- 31
- 1
- 2
3
votes
2 answers
How to get phrase tags in Stanford CoreNLP?
If I want to get phrase tags corresponding each word, how to I get this?
For example :
In this sentence,
My dog also likes eating sausage.
I can get a parse tree in Stanford NLP such as
(ROOT (S (NP (PRP$ My) (NN dog)) (ADVP (RB also)) (VP (VBZ…

user1986167
- 31
- 1
- 3
3
votes
2 answers
Searching and match count for phrase with Solr
I am using Solr to index documents and now I need to search those documents for an exact phrase and sort the results by the number of times this phrase appears on the document. I also have to present the number of times the phrase is matched back to…

kolrie
- 12,562
- 14
- 64
- 98
3
votes
1 answer
phrase synonym analyser Lucene.net?
I am using the Synonym Analyser, but this only adds synonyms for single words. Is there a similar analyser for phrases or does anyone know any other way of adding phrase synonyms? For example, "The Big Apple" should return a hit for "New…

user1662409
- 157
- 3
- 12
2
votes
3 answers
Support for both EdegeNGram analysis and phrase search in Solr 3.4.0
I want to enable "startsWith" search for each term in a SOLR query but also being able to perform phrase searches (given in quotes).
For the prefix search firstly I added the suffix "*". This solution allows both prefix search and phrase search but…

mihaela
- 219
- 3
- 16
2
votes
2 answers
MySQL Fulltext in Binary Mode doesn't match phrases
Implementing a simple fulltext search I encountered a problem with the combination of boolean mode and phrases. Also worth noting is that the column has a binary collation (utf8_bin) whilst the table does not have this.
Given the following…

jor
- 2,058
- 2
- 26
- 46
2
votes
1 answer
Regex that matches a positive & phrase between any characters
I need to write a regex that checks if a phrase contains a positive number. I have found this:
[1-9]\d* (left|remaining).*$
But it does not work on negative numbers. So I want to check if the words "left" or "remaining" follows a positive…

Leoid9
- 91
- 3
2
votes
4 answers
Java: Matching Phrases in a String
I have a list of phrases (phrase might consist of one or more words) in a database and an input string. I need to find out which of those phrases appear in the input string.
Is there an efficient way to perform such matching in Java?

medvaržtis
- 128
- 1
- 11
2
votes
1 answer
Phrase & wildcard queries on Elasticsearch
I am facing some difficulties while trying to create a query that can match only whole phrases, but allows wildcards as well.
Basically I have a filed that contains a string (it is actually a list of strings, but for simplicity I am skipping that),…

Slav
- 147
- 2
- 13
2
votes
0 answers
How to get noun phrases without "the", "a", or other adjectives?
spaCy shows "the adipose tissue" and "chronic energy imbalance". However, I'd like the noun phrase to be made of only nouns instead of "the", "a", or other adjectives. Is there a way to do…

user1424739
- 11,937
- 17
- 63
- 152
2
votes
1 answer
Phrase Predict in MS Access fails on a single letter by incrementing to character after first letter
I have an invoicing system which lists item names (and there are thousands in this system) displayed by combobox with phrase predict to make things faster for the users.
For some reason, any product that starts with the letter "I" will advance to…

WendyLou
- 41
- 8
2
votes
2 answers
Elasticsearch Phrase Match In Filter
I have a query that searches given terms in a text field by given time interval. I want to add phrase match to this query how can I add; for example I'll look for "has parti" as a phrase but the text shouldn't have "ahmet" word. How can I do this;…

Fatih Aktepe
- 571
- 2
- 10
- 19
2
votes
1 answer
Elastic Search: How to get an exact match for each field in a cross-fields multi-match search?
I'm trying to do an exact location search, meaning that each term in the location should exactly match at least one location field. For example, if I search for "Sudbury, Middlesex, Massachusetts" then I want to only get results that have an exact…

Erica Stockwell-Alpert
- 4,624
- 10
- 63
- 130
2
votes
2 answers
Counting phrase frequencies in an html file
I'm currently trying to get used to Python and have recently hit block in my coding. I couldn't run a code that would count the number of times a phrase appears in an html file. I've recently received some help constructing the code for counting the…

Raul
- 83
- 1
- 6