[ 
https://issues.apache.org/jira/browse/LUCENE-2899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14017403#comment-14017403
 ] 

vivek commented on LUCENE-2899:
-------------------------------

I followed this link to integrate https://wiki.apache.org/solr/OpenNLP to 
integrate

Installation

For English language testing: Until LUCENE-2899 is committed:

    1.pull the latest trunk or 4.0 branch

    2.apply the latest LUCENE-2899 patch
    3.do 'ant compile'
    cd solr/contrib/opennlp/src/test-files/training
    .
    .
    . 
i followed first two steps but got the following error while executing 3rd point

common.compile-core:
    [javac] Compiling 10 source files to 
/home/biginfolabs/solrtest/solr-lucene-trunk3/lucene/build/analysis/opennlp/classes/java

    [javac] warning: [path] bad path element 
"/home/biginfolabs/solrtest/solr-lucene-trunk3/lucene/analysis/opennlp/lib/jwnl-1.3.3.jar":
 no such file or directory

    [javac] 
/home/biginfolabs/solrtest/solr-lucene-trunk3/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/FilterPayloadsFilter.java:43:
 error: cannot find symbol

    [javac]     super(Version.LUCENE_44, input);

    [javac]                  ^
    [javac]   symbol:   variable LUCENE_44
    [javac]   location: class Version
    [javac] 
/home/biginfolabs/solrtest/solr-lucene-trunk3/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPTokenizer.java:56:
 error: no suitable constructor found for Tokenizer(Reader)
    [javac]     super(input);
    [javac]     ^
    [javac]     constructor Tokenizer.Tokenizer(AttributeFactory) is not 
applicable
    [javac]       (actual argument Reader cannot be converted to 
AttributeFactory by method invocation conversion)
    [javac]     constructor Tokenizer.Tokenizer() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] 2 errors
    [javac] 1 warning

Im really stuck how to passthough this step. I wasted my entire day to fix this 
but couldn't move a bit. Please someone help me..?


> Add OpenNLP Analysis capabilities as a module
> ---------------------------------------------
>
>                 Key: LUCENE-2899
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2899
>             Project: Lucene - Core
>          Issue Type: New Feature
>          Components: modules/analysis
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 4.9, 5.0
>
>         Attachments: LUCENE-2899-RJN.patch, LUCENE-2899.patch, 
> OpenNLPFilter.java, OpenNLPTokenizer.java
>
>
> Now that OpenNLP is an ASF project and has a nice license, it would be nice 
> to have a submodule (under analysis) that exposed capabilities for it. Drew 
> Farris, Tom Morton and I have code that does:
> * Sentence Detection as a Tokenizer (could also be a TokenFilter, although it 
> would have to change slightly to buffer tokens)
> * NamedEntity recognition as a TokenFilter
> We are also planning a Tokenizer/TokenFilter that can put parts of speech as 
> either payloads (PartOfSpeechAttribute?) on a token or at the same position.
> I'd propose it go under:
> modules/analysis/opennlp



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to