You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Abhik Lahiri <ab...@gmail.com> on 2010/09/19 22:22:41 UTC

newbie problem with aggregate AE - trying to combine WhitespaceTokenizer and HmmTagger

Hi all,
I am a newbie at the UIMA framework, and I am facing problems with running
the aggregate AE in the HmmTagger project put up on the UIMA sandbox. When I
load HmmtaggerAggregate.xml as the AE in CVD, I get the following
exception:  org.apache.resource.ResourceInitializationException: Error
initializing "org.apache.uima.resource.impl.Data_Resource_impl" from the
descriptor file:/C:Users/Abhik/workspace/Tagger/desc/HmmTagger.xml .
I am running my project in Eclipse.

I am pasting below the contents of the 4 .xml descriptor files in my
project. These are largely the same as the ones put up on the SVN server for
the HmmTagger code in UIMA sandbox:

HmmtaggerAggregate.xml:



<?*xml* version="1.0" encoding="UTF-8"?>

<analysisEngineDescription

*xmlns*="http://uima.apache.org/resourceSpecifier">

<frameworkImplementation>

org.apache.uima.java

</frameworkImplementation>

<primitive>false</primitive>

<delegateAnalysisEngineSpecifiers>

<delegateAnalysisEngine key="SimpleTokenAndSentenceAnnotator">

<import location="WhitespaceTokenizer.xml" />

</delegateAnalysisEngine>

<delegateAnalysisEngine key="HmmTagger">

<import location="HmmTagger.xml" />

</delegateAnalysisEngine>

</delegateAnalysisEngineSpecifiers>

<analysisEngineMetaData>

<name>HmmTaggerTAE</name>

<description />

<version />

<vendor />

<configurationParameters searchStrategy="language_fallback" />

<configurationParameterSettings />

<flowConstraints>

<fixedFlow>

<node>SimpleTokenAndSentenceAnnotator</node>

<node>HmmTagger</node>

</fixedFlow>

</flowConstraints>

<typePriorities />

<fsIndexCollection />

<capabilities />

<operationalProperties>

<modifiesCas>true</modifiesCas>

<multipleDeploymentAllowed>true</multipleDeploymentAllowed>

<outputsNewCASes>false</outputsNewCASes>

</operationalProperties>

</analysisEngineMetaData>

<resourceManagerConfiguration />

</analysisEngineDescription>

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

This is the text in my WhitespaceTokenizer.xml file:



<?*xml* version="1.0" encoding="UTF-8"?>

<analysisEngineDescription *xmlns*="http://uima.apache.org/resourceSpecifier
">

<frameworkImplementation>org.apache.uima.java</frameworkImplementation>

<primitive>true</primitive>

<annotatorImplementationName>org.apache.uima.annotator.WhitespaceTokenizer</annotatorImplementationName>

<analysisEngineMetaData>

<name>WhitespaceTokenizer</name>

<description>creates token and sentence annotations for whitespace

separated languages</description>

<version>1.0</version>

<vendor>The *Apache* Software Foundation</vendor>

<configurationParameters>

<configurationParameter>

<name>SofaNames</name>

<description>The Sofa names the *annotator* should work on. If no

names are specified, the *annotator* works on the

default sofa.</description>

<type>String</type>

<multiValued>true</multiValued>

<mandatory>false</mandatory>

</configurationParameter>

</configurationParameters>

<configurationParameterSettings/>

<typeSystemDescription>

<types>

<typeDescription>

<name>org.apache.uima.TokenAnnotation</name>

<description>Single token annotation</description>

<supertypeName>uima.tcas.Annotation</supertypeName>

<features>

<featureDescription>

<name>tokenType</name>

<description>token type</description>

<rangeTypeName>uima.cas.String</rangeTypeName>

</featureDescription>

<featureDescription>

<name>posTag</name>

<description/>

<rangeTypeName>uima.cas.String</rangeTypeName>

</featureDescription>

</features>

</typeDescription>

<typeDescription>

<name>org.apache.uima.SentenceAnnotation</name>

<description>sentence annotation</description>

<supertypeName>uima.tcas.Annotation</supertypeName>

</typeDescription>

</types>

</typeSystemDescription>

<fsIndexCollection/>

<capabilities>

<capability>

<inputs/>

<outputs>

<type>org.apache.uima.TokenAnnotation</type>

<feature>org.apache.uima.TokenAnnotation:tokentype</feature>

<type>org.apache.uima.SentenceAnnotation</type>

</outputs>

<languagesSupported>

<language>x-unspecified</language>

</languagesSupported>

</capability>

</capabilities>

<operationalProperties>

<modifiesCas>true</modifiesCas>

<multipleDeploymentAllowed>true</multipleDeploymentAllowed>

<outputsNewCASes>false</outputsNewCASes>

</operationalProperties>

</analysisEngineMetaData>

</analysisEngineDescription>

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

This is the text in my HmmTagger.xml file :





<?*xml* version="1.0" encoding="UTF-8"?>

<analysisEngineDescription *xmlns*="http://uima.apache.org/resourceSpecifier
">

<frameworkImplementation>org.apache.uima.java</frameworkImplementation>

<primitive>true</primitive>

<annotatorImplementationName>org.apache.uima.examples.tagger.HMMTagger</annotatorImplementationName>

<analysisEngineMetaData>

<name>Hidden *Markov* Model - Part of Speech *Tagger*</name>

<description>A configuration of the HmmTaggerAnnotator that looks for

parts of speech of identified tokens within existing

Sentence and Token annotations. See also

WhitespaceTokenizer.xml.</description>

<version>1.0</version>

<vendor>The *Apache* Software Foundation</vendor>

<configurationParameters>

<configurationParameter>

<name>NGRAM_SIZE</name>

<type>Integer</type>

<multiValued>false</multiValued>

<mandatory>true</mandatory>

</configurationParameter>

</configurationParameters>

<configurationParameterSettings>

<nameValuePair>

<name>NGRAM_SIZE</name>

<value>

<integer>3</integer>

</value>

</nameValuePair>

</configurationParameterSettings>

<typeSystemDescription>

<types>

<typeDescription>

<name>org.apache.uima.TokenAnnotation</name>

<description>Single token annotation</description>

<supertypeName>uima.tcas.Annotation</supertypeName>

<features>

<featureDescription>

<name>posTag</name>

<description>contains part-of-speech of a

corresponding token</description>

<rangeTypeName>uima.cas.String</rangeTypeName>

</featureDescription>

</features>

</typeDescription>

<typeDescription>

<name>org.apache.uima.SentenceAnnotation</name>

<description>sentence annotation</description>

<supertypeName>uima.tcas.Annotation</supertypeName>

</typeDescription>

</types>

</typeSystemDescription>

<typePriorities/>

<fsIndexCollection/>

<capabilities>

<capability>

<inputs>

<type>org.apache.uima.TokenAnnotation</type>

<type allAnnotatorFeatures="true">org.apache.uima.SentenceAnnotation</type>

<feature>org.apache.uima.TokenAnnotation:end</feature>

<feature>org.apache.uima.TokenAnnotation:begin</feature>

</inputs>

<outputs>

<type>org.apache.uima.TokenAnnotation</type>

<feature>org.apache.uima.TokenAnnotation:posTag</feature>

<feature>org.apache.uima.TokenAnnotation:end</feature>

<feature>org.apache.uima.TokenAnnotation:begin</feature>

</outputs>

<languagesSupported/>

</capability>

</capabilities>

<operationalProperties>

<modifiesCas>true</modifiesCas>

<multipleDeploymentAllowed>true</multipleDeploymentAllowed>

<outputsNewCASes>false</outputsNewCASes>

</operationalProperties>

</analysisEngineMetaData>

<externalResourceDependencies>

<externalResourceDependency>

<key>Model</key>

<description>HMM *Tagger* model file</description>

<interfaceName>org.apache.uima.examples.tagger.IModelResource</interfaceName>

<optional>false</optional>

</externalResourceDependency>

</externalResourceDependencies>

<resourceManagerConfiguration>

<externalResources>

<externalResource>

<name>ModelFile</name>

<description>HMM *Tagger* model file</description>

<fileResourceSpecifier>

<fileUrl>file:english/BrownModel.dat</fileUrl>

</fileResourceSpecifier>

<implementationName>org.apache.uima.examples.tagger.ModelResource</implementationName>

</externalResource>

</externalResources>

<externalResourceBindings>

<externalResourceBinding>

<key>Model</key>

<resourceName>ModelFile</resourceName>

</externalResourceBinding>

</externalResourceBindings>

</resourceManagerConfiguration>

</analysisEngineDescription>

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------



And finally, this is the text in my HmmModelTrainer.xml file:





<?*xml* version="1.0" encoding="UTF-8"?>

<analysisEngineDescription *xmlns*="http://uima.apache.org/resourceSpecifier
">

<frameworkImplementation>org.apache.uima.java</frameworkImplementation>

<primitive>true</primitive>

<annotatorImplementationName>org.apache.uima.examples.tagger.HMMModelTrainer</annotatorImplementationName>

<analysisEngineMetaData>

<name>HMMModelTrainer</name>

<description>This analysis engine trains an N-gram model for the HMM *tagger
*. It uses a training corpus as reference. This corpus must contain
annotations on words with an attribute corresponding of the POS value to be
learned.

The configuration of this analysis engine is done through several
parameters:

&lt;*ul*&gt;

&lt;*li*&gt;View: - the view from which the tokens will be extracted&lt;/*li
*&gt;

&lt;*li*&gt;ModelExportFile: - the path where the model will be written&lt;/
*li*&gt;

&lt;*li*&gt;FeaturePathPOS: - feature path to the value of the POS to be
learned. The annotation should exactly cover a "word".&lt;/*li*&gt;

&lt;/*ul*&gt;

&lt;b&gt;BEWARE: this analysis engine does not allow multiple deployment
!&lt;/b&gt;

&lt;i&gt;NB. At the moment: both *bi* and *trigram* statistics are saved in
one model file.&lt;/i&gt;</description>

<version>1.0</version>

<vendor/>

<configurationParameters>

<configurationParameter>

<name>View</name>

<description>The view from which the tokens will be extracted.</description>

<type>String</type>

<multiValued>false</multiValued>

<mandatory>true</mandatory>

</configurationParameter>

<configurationParameter>

<name>ModelExportFile</name>

<description>The path where the model will be written.</description>

<type>String</type>

<multiValued>false</multiValued>

<mandatory>true</mandatory>

</configurationParameter>

<configurationParameter>

<name>FeaturePathPOS</name>

<description>Feature path to the value of the POS to be *learnt*. The
annotation should exactly cover a "word".</description>

<type>String</type>

<multiValued>false</multiValued>

<mandatory>true</mandatory>

</configurationParameter>

</configurationParameters>

<configurationParameterSettings>

<nameValuePair>

<name>View</name>

<value>

<string>_InitialView</string>

</value>

</nameValuePair>

<nameValuePair>

<name>ModelExportFile</name>

<value>

<string>hmmtagger_model.dat</string>

</value>

</nameValuePair>

<nameValuePair>

<name>FeaturePathPOS</name>

<value>

<string>org.apache.uima.TokenAnnotation:posTag</string>

</value>

</nameValuePair>

</configurationParameterSettings>

<typeSystemDescription/>

<typePriorities/>

<fsIndexCollection/>

<capabilities>

<capability>

<inputs/>

<outputs/>

<languagesSupported/>

</capability>

</capabilities>

<operationalProperties>

<modifiesCas>false</modifiesCas>

<multipleDeploymentAllowed>false</multipleDeploymentAllowed>

<outputsNewCASes>false</outputsNewCASes>

</operationalProperties>

</analysisEngineMetaData>

<resourceManagerConfiguration/>

</analysisEngineDescription>



I understand that I have ended up writing a huge mail as a query, but I am
an absolute newbie to the UIMA framework and shall be extremely grateful to
anyone who can help me out here.

Thanks a lot for your help!

Regards,

Abhik

Re: newbie problem with aggregate AE - trying to combine WhitespaceTokenizer and HmmTagger

Posted by Marshall Schor <ms...@schor.com>.
 Thank you for posting the whole trace back.

I can see from that that you are running the CVD.  I'm guessing that you are
asking the CVD to load some annotators, including some aggregate, which, in turn
specifies the HMM annotator.  That annotator is written to find some resources
it uses, on the classpath. 

So, I think, the fix is to insure that you arrange to launch the CVD with a
classpath which includes the things the annotators need. 

For this particular item, try altering the launcher (an Eclipse thing) to
include the HMM annotator project.

-Marshall


On 9/20/2010 12:54 AM, Abhik Lahiri wrote:
> Hi Marshall,
> Thanks a lot for your reply! I had pasted the complete error message in my
> previous mail. However, I forgot to paste the output in the log file, which
> I am doing so below:
>
> 9/19/10 9:53:20 PM - 10: WhitespaceTokenizer.initialize: INFO: MESSAGE
> LOCALIZATION FAILED: Can't find bundle for base name
> org.apache.uima.annotator.whitespaceTokenizerMessages, locale en_US
> 9/19/10 9:53:20 PM - 10:
> org.apache.uima.tools.cvd.MainFrame.handleException(527): SEVERE: Error
> initializing "org.apache.uima.resource.impl.DataResource_impl" from
> descriptor file:/C:/Users/Abhik/workspace/Tagger/desc/HmmTagger.xml.
> org.apache.uima.resource.ResourceInitializationException: Error initializing
> "org.apache.uima.resource.impl.DataResource_impl" from descriptor
> file:/C:/Users/Abhik/workspace/Tagger/desc/HmmTagger.xml.
>     at
> org.apache.uima.util.SimpleResourceFactory.produceResource(SimpleResourceFactory.java:144)
>     at
> org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
>     at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:267)
>     at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:241)
>     at
> org.apache.uima.resource.impl.ResourceManager_impl.registerResource(ResourceManager_impl.java:546)
>     at
> org.apache.uima.resource.impl.ResourceManager_impl.initializeExternalResources(ResourceManager_impl.java:423)
>     at
> org.apache.uima.resource.Resource_ImplBase.initialize(Resource_ImplBase.java:146)
>     at
> org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.initialize(AnalysisEngineImplBase.java:157)
>     at
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initialize(PrimitiveAnalysisEngine_impl.java:125)
>     at
> org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94)
>     at
> org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
>     at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:267)
>     at
> org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:361)
>     at
> org.apache.uima.analysis_engine.asb.impl.ASB_impl.setup(ASB_impl.java:254)
>     at
> org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initASB(AggregateAnalysisEngine_impl.java:431)
>     at
> org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initializeAggregateAnalysisEngine(AggregateAnalysisEngine_impl.java:375)
>     at
> org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initialize(AggregateAnalysisEngine_impl.java:185)
>     at
> org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94)
>     at
> org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
>     at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:267)
>     at
> org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:335)
>     at org.apache.uima.tools.cvd.MainFrame.setupAE(MainFrame.java:1464)
>     at
> org.apache.uima.tools.cvd.MainFrame.loadAEDescriptor(MainFrame.java:477)
>     at
> org.apache.uima.tools.cvd.control.AnnotatorOpenEventHandler.actionPerformed(AnnotatorOpenEventHandler.java:52)
>     at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>     at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
>     at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
>     at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>     at javax.swing.AbstractButton.doClick(Unknown Source)
>     at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
>     at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
> Source)
>     at java.awt.Component.processMouseEvent(Unknown Source)
>     at javax.swing.JComponent.processMouseEvent(Unknown Source)
>     at java.awt.Component.processEvent(Unknown Source)
>     at java.awt.Container.processEvent(Unknown Source)
>     at java.awt.Component.dispatchEventImpl(Unknown Source)
>     at java.awt.Container.dispatchEventImpl(Unknown Source)
>     at java.awt.Component.dispatchEvent(Unknown Source)
>     at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
>     at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
>     at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>     at java.awt.Container.dispatchEventImpl(Unknown Source)
>     at java.awt.Window.dispatchEventImpl(Unknown Source)
>     at java.awt.Component.dispatchEvent(Unknown Source)
>     at java.awt.EventQueue.dispatchEvent(Unknown Source)
>     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     at java.awt.EventDispatchThread.run(Unknown Source)
> Caused by: org.apache.uima.resource.ResourceInitializationException: Could
> not access the resource data at file:english/BrownModel.dat.
>     at
> org.apache.uima.resource.impl.DataResource_impl.initialize(DataResource_impl.java:126)
>     at
> org.apache.uima.util.SimpleResourceFactory.produceResource(SimpleResourceFactory.java:123)
>     ... 50 more
>
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Hope this helps,
> Thanking you,
> Regards,
> Abhik
>
>
> On Sun, Sep 19, 2010 at 8:43 PM, Marshall Schor <ms...@schor.com> wrote:
>
>>
>> On 9/19/2010 4:22 PM, Abhik Lahiri wrote:
>>> Hi all,
>>> I am a newbie at the UIMA framework, and I am facing problems with
>> running
>>> the aggregate AE in the HmmTagger project put up on the UIMA sandbox.
>> When I
>>> load HmmtaggerAggregate.xml as the AE in CVD, I get the following
>>> exception:  org.apache.resource.ResourceInitializationException: Error
>>> initializing "org.apache.uima.resource.impl.Data_Resource_impl" from the
>>> descriptor file:/C:Users/Abhik/workspace/Tagger/desc/HmmTagger.xml .
>>> I am running my project in Eclipse.
>> Can you please paste the rest of the exception messages?  Usually, the
>> error
>> will be followed by a stack trace, and then a line "Caused by ...." and
>> another
>> stack trace etc.
>>
>> It could be helpful to see what the cause of the above error was.
>>
>> -Marshall
>>
>>
>>

Re: newbie problem with aggregate AE - trying to combine WhitespaceTokenizer and HmmTagger

Posted by Abhik Lahiri <ab...@gmail.com>.
Hi Marshall,
Thanks a lot for your reply! I had pasted the complete error message in my
previous mail. However, I forgot to paste the output in the log file, which
I am doing so below:

9/19/10 9:53:20 PM - 10: WhitespaceTokenizer.initialize: INFO: MESSAGE
LOCALIZATION FAILED: Can't find bundle for base name
org.apache.uima.annotator.whitespaceTokenizerMessages, locale en_US
9/19/10 9:53:20 PM - 10:
org.apache.uima.tools.cvd.MainFrame.handleException(527): SEVERE: Error
initializing "org.apache.uima.resource.impl.DataResource_impl" from
descriptor file:/C:/Users/Abhik/workspace/Tagger/desc/HmmTagger.xml.
org.apache.uima.resource.ResourceInitializationException: Error initializing
"org.apache.uima.resource.impl.DataResource_impl" from descriptor
file:/C:/Users/Abhik/workspace/Tagger/desc/HmmTagger.xml.
    at
org.apache.uima.util.SimpleResourceFactory.produceResource(SimpleResourceFactory.java:144)
    at
org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
    at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:267)
    at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:241)
    at
org.apache.uima.resource.impl.ResourceManager_impl.registerResource(ResourceManager_impl.java:546)
    at
org.apache.uima.resource.impl.ResourceManager_impl.initializeExternalResources(ResourceManager_impl.java:423)
    at
org.apache.uima.resource.Resource_ImplBase.initialize(Resource_ImplBase.java:146)
    at
org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.initialize(AnalysisEngineImplBase.java:157)
    at
org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initialize(PrimitiveAnalysisEngine_impl.java:125)
    at
org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94)
    at
org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
    at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:267)
    at
org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:361)
    at
org.apache.uima.analysis_engine.asb.impl.ASB_impl.setup(ASB_impl.java:254)
    at
org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initASB(AggregateAnalysisEngine_impl.java:431)
    at
org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initializeAggregateAnalysisEngine(AggregateAnalysisEngine_impl.java:375)
    at
org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initialize(AggregateAnalysisEngine_impl.java:185)
    at
org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94)
    at
org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
    at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:267)
    at
org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:335)
    at org.apache.uima.tools.cvd.MainFrame.setupAE(MainFrame.java:1464)
    at
org.apache.uima.tools.cvd.MainFrame.loadAEDescriptor(MainFrame.java:477)
    at
org.apache.uima.tools.cvd.control.AnnotatorOpenEventHandler.actionPerformed(AnnotatorOpenEventHandler.java:52)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.AbstractButton.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: org.apache.uima.resource.ResourceInitializationException: Could
not access the resource data at file:english/BrownModel.dat.
    at
org.apache.uima.resource.impl.DataResource_impl.initialize(DataResource_impl.java:126)
    at
org.apache.uima.util.SimpleResourceFactory.produceResource(SimpleResourceFactory.java:123)
    ... 50 more


------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Hope this helps,
Thanking you,
Regards,
Abhik


On Sun, Sep 19, 2010 at 8:43 PM, Marshall Schor <ms...@schor.com> wrote:

>
>
> On 9/19/2010 4:22 PM, Abhik Lahiri wrote:
> > Hi all,
> > I am a newbie at the UIMA framework, and I am facing problems with
> running
> > the aggregate AE in the HmmTagger project put up on the UIMA sandbox.
> When I
> > load HmmtaggerAggregate.xml as the AE in CVD, I get the following
> > exception:  org.apache.resource.ResourceInitializationException: Error
> > initializing "org.apache.uima.resource.impl.Data_Resource_impl" from the
> > descriptor file:/C:Users/Abhik/workspace/Tagger/desc/HmmTagger.xml .
> > I am running my project in Eclipse.
>
> Can you please paste the rest of the exception messages?  Usually, the
> error
> will be followed by a stack trace, and then a line "Caused by ...." and
> another
> stack trace etc.
>
> It could be helpful to see what the cause of the above error was.
>
> -Marshall
>
>
>

Re: newbie problem with aggregate AE - trying to combine WhitespaceTokenizer and HmmTagger

Posted by Marshall Schor <ms...@schor.com>.

On 9/19/2010 4:22 PM, Abhik Lahiri wrote:
> Hi all,
> I am a newbie at the UIMA framework, and I am facing problems with running
> the aggregate AE in the HmmTagger project put up on the UIMA sandbox. When I
> load HmmtaggerAggregate.xml as the AE in CVD, I get the following
> exception:  org.apache.resource.ResourceInitializationException: Error
> initializing "org.apache.uima.resource.impl.Data_Resource_impl" from the
> descriptor file:/C:Users/Abhik/workspace/Tagger/desc/HmmTagger.xml .
> I am running my project in Eclipse.

Can you please paste the rest of the exception messages?  Usually, the error 
will be followed by a stack trace, and then a line "Caused by ...." and another
stack trace etc. 

It could be helpful to see what the cause of the above error was.

-Marshall