|
Hi,
How to get relevance percentage between two string in C# ?
Thanks.
Started by Yoann. B on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Are you looking for something similar to the the Levenshtein distance , which is the distance between two strings is given by the minimum number of operations needed to transform one string into the other?
Have a read of Levenshtein distance
There's... .
|
|
I am making a quiz system, and when quizmakers insert questions into the Question Bank, I am to check the DB for duplicate / very highly similar questions.
Testing MySQL's MATCH() ... AGAINST() , the highest relevance I get is 30+, when I test against...
Started by SyaZ on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Cleverer relevance algorithms tend to fiddle with the weights of the search terms, skewing the dot product....
This works get the most relevant.
To determine relevance, a heuristic known as a Cosine Ranking is calculated on the hits.
|
|
Is it possible to order results in SQL Server 2005 by the relevance of a freetext match? In MySQL you can use the (roughly equivalent) MATCH function in the ORDER BY section, but I haven't found any equivalence in SQL Server.
From the MySQL docs :
For...
Started by Cebjyre on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Thanks Biri,
I've refactored the query to use FREETEXTTABLE....
You can have a try.
I don't know if other freetext search methods are also returning this value or not .
If you are using FREETEXTTABLE then it returns a column name Rank , so order by Rank should work .
|
Ask your Facebook Friends
|
This is what i have now as a very basic search:
var Results = from p in dx.Listings select p; if (CategoryId > 0) Results = Results.Where(p => p.CategoryId == CategoryId); if (SuburbId > 0) Results = Results.Where(p => p.SuburbId == SuburbId...
Started by White Dragon on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If I understand you correctly you want to call OrderyByDescending( p => p.Body ) but it should be ordered by how many times a certain word appreas in p.Body ?
Then you should be able to create a method that counts the occurrences and returns the count... .
|
|
Let's say we have two regular expressions:
1234.*
and
.*
Input:
1234567
Obviously they both match, but 1234.* matches better since it is more specific. i.e. is more relevant. Is there a standard way for checking which is more relevant?
edit:
Some clarification...
Started by Matthias van der Vlies on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Randomly modify the input and compare "verylongtext" the first is "more ....
I can think of two ways to roughly estimate the "relevance".
Is it accepting my language exactly ?
yours is a good example, perhaps you .
Could measure relevance.
|
How can I manipulate MySQL fulltext search relevance to make one field more 'valuable' than another?
Suppose I have two columns, keywords and content. I have a fulltext index across both. I want a row with foo in the keywords to have more relevance than a row with foo in the content. What do I need to do to cause MySQL to weight the matches in keywords...
Started by Buzz on
, 8 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
If you)+(rel2)
The point is that rel1 gives you the relevance of your query just in the keyword column can now add these two relevance....
With:
I want a row with foo in the keywords to have more relevance than a row with foo in the content.
|
|
When developing a database of articles in a Knowledge Base (for example) - what are the best ways to sort and display the most relevant answers to a users' question?
Would you use additional data such as keyword weighting based on whether previous users...
Started by Tom on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Then, as a personal opinion, I don't think that any "naive" approach... .
Have a look at Google Enterprise Search Appliance or Exalead Enterprise Search .
That's a hard question, and companies like Google are pushing a lot of efforts to address this question .
|
|
If you were running a news site that created a list of 10 top news stories, and you wanted to make tweaks to your algorithm and see if people liked the new top story mix better, how would you approach this?
Simple Click logging in the DB associated with...
Started by Caleb Elston on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
In addition to monitoring number of clicks, it might also... .
You could treat it like a behavioral psychology experiment, do a T-Test etc.. .
You'll have to remember them so they never see both .
A/B test seems a good start, and randomize the participants .
|
|
Essentially why should I use Vi(m)? I am a Computer Science graduate and have always been firmly within the Eclipse camp using the GUIs of R and Visual Studio suite when needed. I'm currently learning/improving in other languages like JavaScript, Cappuccino...
Started by Mark Iliffe on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
However, it has one of the steepest learning curves of any editor - you must WANT to learn it in order to do so!
As a text editor, it will ALWAYS have a purpose - editing text!
... .
Once familiar with it, vim can drastically speed up your coding process .
|
|
Hello, I have recently been programming Web based applications using Silverlight & Ria Services. I have been made aware of the ability to incorporate the use of Expression Blend Sketchflow into my development cycle as a way of producing quick prototypes...
Started by Goober on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
From the other side of things you make the....
Two things that come to mind are that SketchFlow is obviously better than a Word document since the customers can see an application in action .
We use SketchFlow and have had a great response from management .
|