Hi Anuj,

> Can you please verify the JAR files as well that they contain these files-
> 
> Under org.apache.stanbol.data.opennlp.ner.en-1.0.1-incubating-SNAPSHOT.jar
> /org/apache/stanbol/data/opennlp/en-ner-person.bin
> /org/apache/stanbol/data/opennlp/en-ner-organization.bin
> /org/apache/stanbol/data/opennlp/en-ner-location.bin

Yes, there are these files

> 
> Under org.apache.stanbol.data.opennlp.lang.en-1.0.1-incubating-SNAPSHOT.jar
> /org/apache/stanbol/data/opennlp/en-token.bin
> /org/apache/stanbol/data/opennlp/en-sent.bin
> /org/apache/stanbol/data/opennlp/en-pos-perceptron.bin
> /org/apache/stanbol/data/opennlp/en-chunker.bin

No, there aren't these files. 
I don't have: /org/apache/stanbol/data/opennlp/en-pos-perceptron.bin
but I have: /org/apache/stanbol/data/opennlp/en-pos-maxent.bin

Thanks
Alberto



Il giorno 29/giu/2012, alle ore 15:20, Anuj Kumar ha scritto:

> Hi Alberto,
> 
> Ok, that looks fine. The error that you have mentioned is generated from
> the OpenNLP codebase during initialization of the model. So, I wanted to
> make sure that you have all the models.
> 
> Can you please verify the JAR files as well that they contain these files-
> 
> Under org.apache.stanbol.data.opennlp.ner.en-1.0.1-incubating-SNAPSHOT.jar
> /org/apache/stanbol/data/opennlp/en-ner-person.bin
> /org/apache/stanbol/data/opennlp/en-ner-organization.bin
> /org/apache/stanbol/data/opennlp/en-ner-location.bin
> 
> Under org.apache.stanbol.data.opennlp.lang.en-1.0.1-incubating-SNAPSHOT.jar
> /org/apache/stanbol/data/opennlp/en-token.bin
> /org/apache/stanbol/data/opennlp/en-sent.bin
> /org/apache/stanbol/data/opennlp/en-pos-perceptron.bin
> /org/apache/stanbol/data/opennlp/en-chunker.bin
> 
> Also, I am running 1.0.1 and you have 1.0.2. I will try to refresh and
> build 1.0.2. In the meantime, please check for these models in the JAR file.
> 
> Regards,
> Anuj
> 
> 
> On Fri, Jun 29, 2012 at 5:33 PM, Alberto Musetti <[email protected]>wrote:
> 
>> Hi Anuj,
>> thanks for your fast reply.
>> 
>> yes, in my startup directory there are these file:
>> 
>> ./19/org.apache.stanbol.data.opennlp.ner.en-1.0.2-incubating-SNAPSHOT.jar
>> ./19/org.apache.stanbol.data.opennlp.lang.en-1.0.2-incubating-SNAPSHOT.jar
>> 
>> Regards,
>> Alberto
>> 
>> Il giorno 29/giu/2012, alle ore 13:05, Anuj Kumar ha scritto:
>> 
>>> Hi Alberto,
>>> 
>>> Please check if you have the models in your installation. To check that,
>> go
>>> to the stanbol directory that is created by the launcher and look for the
>>> startup directory.
>>> 
>>> For example, I have my startup directory here-
>>> anuj@formcept-laptop:~/Documents/tools/stanbol/stanbol/startup$ ls
>>> 1  10  14  15  16  17  18  19  20  21  22  25  26  30  5  8  9
>>> 
>>> Now look for the nlp models-
>>> anuj@formcept-laptop:~/Documents/tools/stanbol/stanbol/startup$ find .
>>> -name *nlp*
>>> 
>>> You will get a list of files, like-
>>> ./19/org.apache.stanbol.data.opennlp.ner.en-1.0.1-incubating-SNAPSHOT.jar
>>> 
>> ./19/org.apache.stanbol.data.opennlp.lang.en-1.0.1-incubating-SNAPSHOT.jar
>>> ./17/opennlp-tools-1.5.2-incubating.jar
>>> ./17/org.apache.stanbol.commons.opennlp-0.9.0-incubating-SNAPSHOT.jar
>>> ./17/opennlp-maxent-3.0.2-incubating.jar
>>> 
>> ./25/org.apache.stanbol.enhancer.engines.opennlp.ner-0.9.0-incubating-SNAPSHOT.jar
>>> 
>>> Check if you have these listed-
>>> ./19/org.apache.stanbol.data.opennlp.ner.en-1.0.1-incubating-SNAPSHOT.jar
>>> 
>> ./19/org.apache.stanbol.data.opennlp.lang.en-1.0.1-incubating-SNAPSHOT.jar
>>> 
>>> Regards,
>>> Anuj
>>> 
>>> On Fri, Jun 29, 2012 at 3:42 PM, Alberto Musetti <[email protected]
>>> wrote:
>>> 
>>>> Hi all,
>>>> 
>>>> I have a problem with my Stanbol instance:
>>>> when i post an english text to the enhancer, it fails the execution on
>> ner
>>>> engine with this error:
>>>> 
>>>> org.apache.stanbol.enhancer.servicesapi.ChainException: Enhancement
>> Chain
>>>> failed because of required Engine 'ner' failed with Message: Unable to
>>>> process ContentItem
>>>> '<urn:content-item-sha1-a274b8c641d15f7e45f834630d667ab64096b122>' with
>>>> Enhancement Engine 'ner' because the engine was unable to process the
>>>> content (Engine class:
>>>> 
>> org.apache.stanbol.enhancer.engines.opennlp.impl.NamedEntityExtractionEnhancementEngine)(Reason:
>>>> 'NEREngineCore' failed to process content item
>>>> 'urn:content-item-sha1-a274b8c641d15f7e45f834630d667ab64096b122' with
>> type
>>>> 'text/plain': java.lang.IllegalStateException: Unable to create
>>>> TokenNameFinderModel for en-ner-person.bin!)! at
>>>> 
>> org.apache.stanbol.enhancer.jobmanager.event.impl.EventJobManagerImpl.enhanceContent(EventJobManagerImpl.java:151)
>>>> 
>>>> My ner configuration is:
>>>> Name: ner
>>>> Language : <empty>
>>>> Default Language: <empty>
>>>> Ranking: 0
>>>> 
>>>> If i post an italian or french text there isn't any problems.
>>>> 
>>>> Do you know this problem?
>>>> 
>>>> Bests,
>>>> Alberto
>> 
>> 

Reply via email to