You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by karl wettin <ka...@snigel.net> on 2006/03/16 08:40:35 UTC
fuzzy phrase query?
Is it possible to make a phrase query fuzzy?
It could be a quick and not so dirty replacement for hidden markov
models and thus produce great results for spell checking and other
natrual language classifications.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: fuzzy phrase query?
Posted by karl wettin <ka...@snigel.net>.
16 mar 2006 kl. 08.40 skrev karl wettin:
> Is it possible to make a phrase query fuzzy?
>
> It could be a quick and not so dirty replacement for hidden markov
> models and thus produce great results for spell checking and other
> natrual language classifications.
Perhaps it is easier to make a SpanFuzzyQuery to use in conjunction
with SpanNear?
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: fuzzy phrase query?
Posted by karl wettin <ka...@snigel.net>.
16 mar 2006 kl. 11.47 skrev Erik Hatcher:
> This can be done with some work to implement a SpanFuzzyQuery
> (similar to the SpanRegexQuery in contrib/regex currently) and
> using SpanNearQuery instead of a PhraseQuery.
Thanks, I'll check it out.
> Performance is at risk doing such a query as all terms in the index
> need to be enumerated (or a subset if a prefix length is provided),
> but it can be done.
Speed in not an issue as I'll be using it for subject classification
at index time only.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: IndexFiles
Posted by miki sun <su...@hotmail.com>.
Thank you for reply, my Java run time environment did not work, that's why.
It is fixed now.
Miki
----Original Message Follows----
From: Erik Hatcher <er...@ehatchersolutions.com>
Reply-To: java-user@lucene.apache.org
To: java-user@lucene.apache.org
Subject: Re: IndexFiles
Date: Thu, 16 Mar 2006 09:33:37 -0500
The registry setting is probably irrelevant. What does "java - version"
report?
Erik
On Mar 16, 2006, at 6:07 AM, miki sun wrote:
>Hi
>
>I am trying to use Lucene1.9.1 to index files on my computer.
>
>According to the FAQ of the website:
>- What Java version is required to run Lucene?
>Lucene 1.4 will run with JDK 1.3 and up but requires at least JDK 1.4 to
>compile. Lucene >= 1.9 requires Java 1.4.
>
>But I got the following error message:
>
>C:\>java org.apache.lucene.demo.IndexFile T:\Bible\1\
>Registry key 'Software\JavaSoft\Java Runtime Environment \CurrentVersion'
>has value '1.4', but '1.3' is required.
>Error: could not find java.dll
>Error: could not find Java 2 Runtime Environment.
>
>Can anyone advice me on this? Thanks
>
>Miki
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>For additional commands, e-mail: java-user-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: IndexFiles
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
The registry setting is probably irrelevant. What does "java -
version" report?
Erik
On Mar 16, 2006, at 6:07 AM, miki sun wrote:
> Hi
>
> I am trying to use Lucene1.9.1 to index files on my computer.
>
> According to the FAQ of the website:
> - What Java version is required to run Lucene?
> Lucene 1.4 will run with JDK 1.3 and up but requires at least JDK
> 1.4 to compile. Lucene >= 1.9 requires Java 1.4.
>
> But I got the following error message:
>
> C:\>java org.apache.lucene.demo.IndexFile T:\Bible\1\
> Registry key 'Software\JavaSoft\Java Runtime Environment
> \CurrentVersion'
> has value '1.4', but '1.3' is required.
> Error: could not find java.dll
> Error: could not find Java 2 Runtime Environment.
>
> Can anyone advice me on this? Thanks
>
> Miki
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
IndexFiles
Posted by miki sun <su...@hotmail.com>.
Hi
I am trying to use Lucene1.9.1 to index files on my computer.
According to the FAQ of the website:
- What Java version is required to run Lucene?
Lucene 1.4 will run with JDK 1.3 and up but requires at least JDK 1.4 to
compile. Lucene >= 1.9 requires Java 1.4.
But I got the following error message:
C:\>java org.apache.lucene.demo.IndexFile T:\Bible\1\
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.4', but '1.3' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
Can anyone advice me on this? Thanks
Miki
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: fuzzy phrase query?
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Mar 16, 2006, at 2:40 AM, karl wettin wrote:
> Is it possible to make a phrase query fuzzy?
What do you mean by a fuzzy phrase query? As in each term in the
phrase is treated as a FuzzyQuery essentially such that "kool kat"
matches "cool cat"?
This can be done with some work to implement a SpanFuzzyQuery
(similar to the SpanRegexQuery in contrib/regex currently) and using
SpanNearQuery instead of a PhraseQuery. Performance is at risk
doing such a query as all terms in the index need to be enumerated
(or a subset if a prefix length is provided), but it can be done.
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org