Hello,
I am trying to implement my own custom similarity. My question is pretty
simple, i know how to override the Similarity class and also to
normalise the preexisting functions since they do not serve my purpose.
How can i add an extra factor to the scoring formula and also how can i
pass a
Στις 1/3/2012 3:08 μμ, ο/η Ian Lea έγραψε:
Not a clue. I suggest you post a small, complete and self-contained
(no external dependencies) program or test case that demonstrates the
problem. And your analyzer.
--
Ian.
2012/3/1 Damerian:
Hello again!
First of all thank you again for
l like white space? What does
line.equals("Jesus Christ") say?
--
Ian.
On Mon, Feb 27, 2012 at 7:42 PM, Damerian wrote:
Στις 27/2/2012 11:45 πμ, ο/η Ian Lea έγραψε:
Does your analyzer look for a field called content, not contents?
--
Ian.
On Sat, Feb 25, 2012 at 6:37 AM, D
Στις 27/2/2012 11:45 πμ, ο/η Ian Lea έγραψε:
Does your analyzer look for a field called content, not contents?
--
Ian.
On Sat, Feb 25, 2012 at 6:37 AM, Damerian wrote:
Hello!
I have a small issue with the QueryParser in my program.
It uses my custom filter to Parse its queries, but i get
Hello!
I have a small issue with the QueryParser in my program.
It uses my custom filter to Parse its queries, but i get unexpexted
results from when i am having an input from the keyboard
To illustrate
the code :
Analyzer myAnalyzer = new ProperNameAnalyzer();
Query query = new QueryPars
Hello,
I am trying to implement my own Jaccard similarity for Lucene.
So far i have the following code
public class JaccardSimilarity extends DefaultSimilarity {
int numberOfDocumentTerms;
//String field="contents"; // Should the Jaccard similarity be only
based in the contents field
Hello,
I am really new to Lucene, last week through this list i was really
successfull into finding a solution to my problem.
I have a new question now, i am trying to implement a new similarity
class that uses the Jaccard coefficient, i have been reading the
javadocs and a lot of other webpage
Στις 9/2/2012 11:12 μμ, ο/η Steven A Rowe έγραψε:
Damerian,
When I said "clear the previous token", I was referring to the pseudo-code I
gave in my first response to you. There is no built-in method to do that. If you want
to conditionally output tokens, you should store Attri
Στις 9/2/2012 10:51 μμ, ο/η Steven A Rowe έγραψε:
Damerian,
The technique I mentioned would work for you with a little tweaking: when you
see consecutive capitalized tokens, then just set the CharTermAttribute to the
joined tokens, and clear the previous token.
Another idea: you could use
Στις 9/2/2012 8:54 μμ, ο/η Steven A Rowe έγραψε:
Hi Damerian,
One way to handle your scenario is to hold on to the previous token, and only
emit a token after you reach at least the second token (or at end-of-stream).
Your incrementToken() method could look something like:
1. Get current
Hello i want to implement my custom filter, my wuestion is quite simple
but i cannot find a solution to it no matter how i try:
How can i access the TermAttribute of the next token than the one i
currently have in my stream?
For example in the phrase "My name is James Bond" if let's say i a
Αρχικό Μήνυμα
Θέμα: Delete words in a specific increment Position with Lucene
Ημερομηνία: Tue, 07 Feb 2012 18:48:03 +0100
Από:Damerian
Προς: java-user-subscr...@lucene.apache.org
Greetings,
I used Lucene to make a simple filter that recognizes main names (Two
12 matches
Mail list logo