Questions tagged [synonym]

Synonym is a word or phrase that means exactly or nearly the same as another word or phrase in the same language.

Synonym is a word or phrase that means exactly or nearly the same as another word or phrase in the same language.

For more information read the Wikipedia page.

508 questions
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
3
votes
1 answer

A generic composition with ambiguity detection

I want to define a generic composition which works both for a -> b and for a -> Maybe b: class Comp m where (...) :: m a b -> m b c -> m a c instance Comp (->) where (...) = (>>>) instance Comp (a -> Maybe b) where (...) = (>=>) Is it…
nponeccop
  • 13,527
  • 1
  • 44
  • 106
3
votes
2 answers

How to reload the Solr core using SolrJ?

I am using SolrJ for indexing my data. I am updating the Synonym.txt file dynamically but Solr server is not getting the latest changes from Synonym.txt file, my previous question is how to update synonym.txt file dynamically? So I have to…
milind_db
  • 1,274
  • 5
  • 34
  • 56
2
votes
1 answer

Finding synonyms and the basic form of tilted words

I am looking for a tool in Java that would allow me to do the following things: 1) Find for a tilted word its basic form. Example: For the words "connection", "connecting", "connects" and etc, it will return the word "connect". For the words…
Eddie Dovzhik
  • 297
  • 1
  • 6
  • 14
2
votes
1 answer

Solr: Multi Word Synonyms : Only first word is highlighting

I am doing index time synonym expansion for multi word synonyms. In my synonyms.txt I have synonyms like (barc=>barc,bhabha atomic research center). But when I am searching for "barc" it is not highlighting "bhabha atomic research center". Only 1st…
Sagar_30
  • 25
  • 2
2
votes
2 answers

Solr lucene and "similar" keywords

I'm still a relative newbie with Solr Lucene, and I have noticed an interesting "problem" with a search I performed. If I do a basic search for "responsive", I also get results that contains the word "responsible". I suppose this is OK, but the…
seb835
  • 467
  • 1
  • 5
  • 19
2
votes
1 answer

How to get spelling suggestions from synonyms.txt in solr?

I have a list of misspelled and corrected words in synonyms.txt file. How can I use that in solr for spelling suggestions? e.g. synonyms.txt contains following entries: laptap => laptop delll => dell When I query "laptap" to solr server, I should…
qwerty
  • 31
  • 1
  • 4
2
votes
2 answers

Python: normalizing a text file

I have a text file which contains several spelling variants of many words: For e.g. identification ... ID .. identity...contract.... contr.... contractor...medicine...pills..tables So I want to have a synonym text file which contains the words…
Zenvega
  • 1,974
  • 9
  • 28
  • 45
2
votes
3 answers

C#: Making a file editable from one project, but including it in two

I've currently got a solution where a certain class is used from several C# projects, some Silverlight, some regular. For compatibility reasons I cannot create a single project for these utility classes. At first I solved the problem by making the…
user907290
2
votes
1 answer

Lucene synonym expansion,stemming,spell check and more

I am using Lucene to index my database and then perform a phrase search on a specific field(field name: keyword). I am using following code currently: String userQuery = request.getParameter("query"); //create standard analyzer…
Prim
  • 1,312
  • 5
  • 25
  • 51
2
votes
1 answer

Python NLP: Get synonyms for a word based on my own corpus

I have a large corpus of text (about 3 GB of plain text). I want to build a search function. When the user enters a keyword, I want to display a list of other keywords that are closely related. For this, I don't want to use any generic synonym…
Leo B
  • 111
  • 5
2
votes
2 answers

Solr and big synonym file

I have a big synonym dictionary and I created a file correctly formated to use it with solr. This file has a size of 4mb. But when I want to start solr using Tomcat, solr is blocked in start. What is the problem ? The file is too big ? Thanks.
bobosh
  • 425
  • 5
  • 21
2
votes
1 answer

SolrSynonymParser one word in two "Equivalent synonyms" lines

If I use a text file to define synonyms in Solr/Lucene like this: foo, bar, goo abc, bar, xyz The word bar is in both lines. Does this mean Solr treats all terms to be synonyms, so that it equals this one line? foo, bar, goo, abc, xyz I only found…
guettli
  • 25,042
  • 81
  • 346
  • 663
2
votes
0 answers

Phrase search for multi-word synonyms in Elasticsearch

Is it possible to make phrase searches for multi-word synonyms in Elasticsearch? Let's say I have this synonym: strip steak bacon, ssb, strip-steak bacon And this text in a document: Kevin burgdoggen turkey, spare ribs pancetta pastrami drumstick…
Tubbe
  • 1,068
  • 6
  • 22
2
votes
1 answer

Synonym privilege issue in oracle after creation?

I have a parent table in schema A, when I try to select the synonym from schema B then it gives me error 'ORA-01031: insufficient privileges'. Please suggest what is the issue here? patrent table is in schema A and my synonym is in schema B.