uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thilo Götz <twgo...@gmx.de>
Subject Re: ResourceInitializationException: Could not access the resource data at file:english/BrownModel.dat. with the HMMTagger
Date Wed, 13 Oct 2010 09:29:01 GMT
On 10/13/2010 06:42, Zunaid Kazi wrote:
> Hello,
> 
> I checked out the HMM tagger and was trying to execute it via eclipse (I
> have eclipse setup for UIMA and am able to run the various uimaj examples
> with no problem).
> 
> I get an exception when I try to load the AE via the CVD. I am appending the
> stack trace below.
> 
> Any suggestions?

UIMA uses the classpath to load the model file for the
tagger.  The model files are located in the "resources"
subdirectory of the tagger.  Add that directory to the
classpath, that should do it.

--Thilo

> 
> 
> 10/13/10 12:24:10 PM - 10:
> org.apache.uima.tools.cvd.MainFrame.handleException(527): SEVERE: Error
> initializing "org.apache.uima.resource.impl.DataResource_impl" from
> descriptor file:/C:/Knowtomation/workspace/CaCIS-UIMA/desc/HmmPosTagger.xml.
> org.apache.uima.resource.ResourceInitializationException: Error initializing
> "org.apache.uima.resource.impl.DataResource_impl" from descriptor
> file:/C:/Knowtomation/workspace/CaCIS-UIMA/desc/HmmPosTagger.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
> 

Mime
View raw message