ErroR MesSagE 我在项目中使用cleartk和Ruta,并且我想使用SimplePipeline将ClearTk与Ruta连接起来,如何将ClearTk输出值传递到Ruta Script中?
Cleartk Github链接为Github Example ClearTk

我正在尝试这种方法

CollectionReader reader = UriCollectionReader.getCollectionReaderFromFiles(files);

    // The pipeline of annotators
    AggregateBuilder builder = new AggregateBuilder();

    // An annotator that reads in the file text
    builder.add(UriToDocumentTextAnnotator.getDescription());

    // An annotator that adds Sentence annotations
    builder.add(SentenceAnnotator.getDescription());

    // An annotator that adds Token annotations
    builder.add(TokenAnnotator.getDescription());

    // The POS annotator, configured to make predictions
    builder.add(ExamplePOSAnnotator.getClassifierDescription(ExamplePOSAnnotator.DEFAULT_MODEL));

    // An annotator that write out the tokens and their part of speech tags
    builder.add(AnalysisEngineFactory.createPrimitiveDescription(ExamplePOSPlainTextWriter.class,
            ExamplePOSPlainTextWriter.PARAM_OUTPUT_DIRECTORY_NAME,
            ExamplePOSPlainTextWriter.DEFAULT_OUTPUT_DIRECTORY));

    /*=======================================
     * Ruta
     *======================================*/
    AnalysisEngineDescription ruta = AnalysisEngineFactory.createEngineDescription(RutaEngine.class,
            RutaEngine.PARAM_MAIN_SCRIPT, "Explico_Basic");

    // Run the pipeline of annotators on each of the CASes produced by the
    // reader
    SimplePipeline.runPipeline(reader, builder.createAggregateDescription(),ruta);

    System.out.println("Please look at the file generated by this program: "
            + ExamplePOSPlainTextWriter.DEFAULT_OUTPUT_DIRECTORY + "/2008_Sichuan_earthquake.txt.pos");


但这会引发错误。

我的新错误消息是...。

Sep 21, 2016 10:44:01 PM                org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl     callAnalysisComponentProcess(417)
SEVERE: Exception occurred
org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator processing failed.
at    org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:401)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:308)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:570)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.<init>(ASB_impl.java:412)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:344)
at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:265)
at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:269)
at org.uimafit.pipeline.SimplePipeline.runPipeline(SimplePipeline.java:80)
at org.cleartk.examples.pos.RunExamplePOSAnnotator.main(RunExamplePOSAnnotator.java:95)
Caused by: java.lang.NullPointerException
at org.apache.uima.cas.impl.FSIndexRepositoryImpl.getIndex(FSIndexRepositoryImpl.java:2465)
at   org.apache.uima.cas.impl.CASImpl.getAnnotationIndex(CASImpl.java:4544)
at    org.apache.uima.ruta.RutaStream.updateIterators(RutaStream.java:174)
at org.apache.uima.ruta.RutaStream.<init>(RutaStream.java:128)
at    org.apache.uima.ruta.engine.RutaEngine.initializeStream(RutaEngine.java:698)
at org.apache.uima.ruta.engine.RutaEngine.process(RutaEngine.java:556)
at     org.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:385)
... 8 more

Sep 21, 2016 10:44:01 PM         org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl processAndOutputNewCASes(273)
SEVERE: Exception occurred
org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator processing failed.
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:401)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:308)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:570)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.<init>(ASB_impl.java:412)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:344)
at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:265)
at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:269)
at org.uimafit.pipeline.SimplePipeline.runPipeline(SimplePipeline.java:80)
at org.cleartk.examples.pos.RunExamplePOSAnnotator.main(RunExamplePOSAnnotator.java:95)
Caused by: java.lang.NullPointerException
at org.apache.uima.cas.impl.FSIndexRepositoryImpl.getIndex(FSIndexRepositoryImpl.java:2465)
at org.apache.uima.cas.impl.CASImpl.getAnnotationIndex(CASImpl.java:4544)
at org.apache.uima.ruta.RutaStream.updateIterators(RutaStream.java:174)
at org.apache.uima.ruta.RutaStream.<init>(RutaStream.java:128)
at org.apache.uima.ruta.engine.RutaEngine.initializeStream(RutaEngine.java:698)
at org.apache.uima.ruta.engine.RutaEngine.process(RutaEngine.java:556)
at org.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:385)
... 8 more

Exception in thread "main" org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator processing failed.
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:401)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:308)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:570)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.<init>(ASB_impl.java:412)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:344)
at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:265)
at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:269)Sep 21, 2016 10:44:01 PM org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl callAnalysisComponentProcess(417)
SEVERE: Exception occurred
org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator processing failed.
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:401)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:308)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:570)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.<init>(ASB_impl.java:412)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:344)
at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:265)
at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:269)
at org.uimafit.pipeline.SimplePipeline.runPipeline(SimplePipeline.java:80)
at org.cleartk.examples.pos.RunExamplePOSAnnotator.main(RunExamplePOSAnnotator.java:95)
Caused by: java.lang.NullPointerException
at org.apache.uima.cas.impl.FSIndexRepositoryImpl.getIndex(FSIndexRepositoryImpl.java:2465)
at org.apache.uima.cas.impl.CASImpl.getAnnotationIndex(CASImpl.java:4544)
at org.apache.uima.ruta.RutaStream.updateIterators(RutaStream.java:174)
at org.apache.uima.ruta.RutaStream.<init>(RutaStream.java:128)
at org.apache.uima.ruta.engine.RutaEngine.initializeStream(RutaEngine.java:698)
at org.apache.uima.ruta.engine.RutaEngine.process(RutaEngine.java:556)
at org.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:385)
... 8 more

Sep 21, 2016 10:44:01 PM org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl processAndOutputNewCASes(273)
SEVERE: Exception occurred
org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator processing failed.
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:401)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:308)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:570)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.<init>(ASB_impl.java:412)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:344)
at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:265)
at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:269)
at org.uimafit.pipeline.SimplePipeline.runPipeline(SimplePipeline.java:80)
at org.cleartk.examples.pos.RunExamplePOSAnnotator.main(RunExamplePOSAnnotator.java:95)
Caused by: java.lang.NullPointerException
at org.apache.uima.cas.impl.FSIndexRepositoryImpl.getIndex(FSIndexRepositoryImpl.java:2465)
at org.apache.uima.cas.impl.CASImpl.getAnnotationIndex(CASImpl.java:4544)
at org.apache.uima.ruta.RutaStream.updateIterators(RutaStream.java:174)
at org.apache.uima.ruta.RutaStream.<init>(RutaStream.java:128)
at org.apache.uima.ruta.engine.RutaEngine.initializeStream(RutaEngine.java:698)
at org.apache.uima.ruta.engine.RutaEngine.process(RutaEngine.java:556)
at org.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:385)
... 8 more

Exception in thread "main" org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator processing failed.
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:401)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:308)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:570)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.<init>(ASB_impl.java:412)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:344)
at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:265)
at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:269)
at org.uimafit.pipeline.SimplePipeline.runPipeline(SimplePipeline.java:80)
at org.cleartk.examples.pos.RunExamplePOSAnnotator.main(RunExamplePOSAnnotator.java:95)
Caused by: java.lang.NullPointerException
at org.apache.uima.cas.impl.FSIndexRepositoryImpl.getIndex(FSIndexRepositoryImpl.java:2465)
at org.apache.uima.cas.impl.CASImpl.getAnnotationIndex(CASImpl.java:4544)
at org.apache.uima.ruta.RutaStream.updateIterators(RutaStream.java:174)
at org.apache.uima.ruta.RutaStream.<init>(RutaStream.java:128)
at org.apache.uima.ruta.engine.RutaEngine.initializeStream(RutaEngine.java:698)
at org.apache.uima.ruta.engine.RutaEngine.process(RutaEngine.java:556)
at org.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:385)
... 8Sep 21, 2016 10:44:01 PM org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl callAnalysisComponentProcess(417)
SEVERE: Exception occurred
org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator processing failed.
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:401)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:308)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:570)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.<init>(ASB_impl.java:412)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:344)
at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:265)
at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:269)
at org.uimafit.pipeline.SimplePipeline.runPipeline(SimplePipeline.java:80)
at org.cleartk.examples.pos.RunExamplePOSAnnotator.main(RunExamplePOSAnnotator.java:95)
Caused by: java.lang.NullPointerException
at org.apache.uima.cas.impl.FSIndexRepositoryImpl.getIndex(FSIndexRepositoryImpl.java:2465)
at org.apache.uima.cas.impl.CASImpl.getAnnotationIndex(CASImpl.java:4544)
at org.apache.uima.ruta.RutaStream.updateIterators(RutaStream.java:174)
at org.apache.uima.ruta.RutaStream.<init>(RutaStream.java:128)
at org.apache.uima.ruta.engine.RutaEngine.initializeStream(RutaEngine.java:698)
at org.apache.uima.ruta.engine.RutaEngine.process(RutaEngine.java:556)
at org.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:385)
... 8 more

Sep 21, 2016 10:44:01 PM    org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl processAndOutputNewCASes(273)
SEVERE: Exception occurred
org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator processing failed.
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:401)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:308)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:570)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.<init>(ASB_impl.java:412)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:344)
at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:265)
at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:269)
at org.uimafit.pipeline.SimplePipeline.runPipeline(SimplePipeline.java:80)
at org.cleartk.examples.pos.RunExamplePOSAnnotator.main(RunExamplePOSAnnotator.java:95)
Caused by: java.lang.NullPointerException
at org.apache.uima.cas.impl.FSIndexRepositoryImpl.getIndex(FSIndexRepositoryImpl.java:2465)
at org.apache.uima.cas.impl.CASImpl.getAnnotationIndex(CASImpl.java:4544)
at org.apache.uima.ruta.RutaStream.updateIterators(RutaStream.java:174)
at org.apache.uima.ruta.RutaStream.<init>(RutaStream.java:128)
at org.apache.uima.ruta.engine.RutaEngine.initializeStream(RutaEngine.java:698)
at org.apache.uima.ruta.engine.RutaEngine.process(RutaEngine.java:556)
at org.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:385)
... 8 more

Exception in thread "main"  org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator processing failed.
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:401)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:308)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:570)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.<init>(ASB_impl.java:412)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:344)
at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:265)
at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:269)
at org.uimafit.pipeline.SimplePipeline.runPipeline(SimplePipeline.java:80)
at org.cleartk.examples.pos.RunExamplePOSAnnotator.main(RunExamplePOSAnnotator.java:95)
Caused by: java.lang.NullPointerException
at org.apache.uima.cas.impl.FSIndexRepositoryImpl.getIndex(FSIndexRepositoryImpl.java:2465)
at org.apache.uima.cas.impl.CASImpl.getAnnotationIndex(CASImpl.java:4544)
at org.apache.uima.ruta.RutaStream.updateIterators(RutaStream.java:174)
at org.apache.uima.ruta.RutaStream.<init>(RutaStream.java:128)
at org.apache.uima.ruta.engine.RutaEngine.initializeStream(RutaEngine.java:698)
at org.apache.uima.ruta.engine.RutaEngine.process(RutaEngine.java:556)
at org.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:385)
... 8
at org.uimafit.pipeline.SimplePipeline.runPipeline(SimplePipeline.java:80)
at org.cleartk.examples.pos.RunExamplePOSAnnotator.main(RunExamplePOSAnnotator.java:95)
Caused by: java.lang.NullPointerException
at org.apache.uima.cas.impl.FSIndexRepositoryImpl.getIndex(FSIndexRepositoryImpl.java:2465)
at org.apache.uima.cas.impl.CASImpl.getAnnotationIndex(CASImpl.java:4544)
at org.apache.uima.ruta.RutaStream.updateIterators(RutaStream.java:174)
at org.apache.uima.ruta.RutaStream.<init>(RutaStream.java:128)
at org.apache.uima.ruta.engine.RutaEngine.initializeStream(RutaEngine.java:698)
at org.apache.uima.ruta.engine.RutaEngine.process(RutaEngine.java:556)
at org.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:385)
... 8 more


我的示例输入是...

2008 Sichuan earthquake
From Wikipedia, the free encyclopedia

The 2008 Sichuan earthquake occurred at 14:28:01.42 CST (06:28:01.42 UTC) on 12 May 2008, with its epicenter in Wenchuan County (Chinese: ???; Pinyin: W�nchuan Xi�n), Sichuan province of the People's Republic of China. It had a magnitude of 7.8 Ms according to the State Seismological Bureau of China and 7.9 Mw according to the United States Geological Survey. The epicenter was 90 kilometres (55 miles) west-northwest of Chengdu, the capital of Sichuan, with a depth of 19 kilometres (12 mi). The earthquake was felt as far away as Beijing and Shanghai, where office buildings swayed with the tremor. The earthquake was also felt in nearby countries, such as Pakistan, Thailand, and Vietnam.

Official figures (as of May 14) state that 16,665 are confirmed dead and 66,286 injured, Thousands are missing, many of them buried, and eight provinces were affected. These figures are likely to rise sharply as a clearer picture emerges. It was the deadliest and strongest earthquake to hit China since the 1976 Tangshan earthquake, which killed approximately 250,000 people.

The epicenter was in Wenchuan County, Ngawa Prefecture, 90 km northwest of Chengdu, with its main tremor so far occurring at 14:28:01.42 CST (06:28:01.42 UTC), on Monday 12 May 2008. Early reports of the earthquake's magnitude ranged from 7.5 to 8.0. Forty-six major aftershocks, ranging in magnitude from 4.4 to 6.0, were recorded within 40 hours of the main tremor.

Office workers in Chengdu reported a "continuous shaking for about two or three minutes", and many people rushed outside.


我的剧本是......

DECLARE Year;
"2008"->Year;

最佳答案

问题在于,CA的类型系统不包含UIMA Ruta所需的类型,尤其是RutaBasic类型。通常,在您的代码示例中,我希望uimaFIT(例如2.2.0)自动包含ruta类型的系统。请验证问题的示例代码是否是导致异常的代码。如果这是真的,那么您的uimaFIT版本或您的依赖项(例如ruta-core)可能存在问题。

先前的探查:

问题是找不到应由Ruta分析引擎执行的主脚本。
现在,使用参数的此配置,现在可以在类路径的根目录中找到文件MainEngine.ruta

(错误消息表明该脚本名为Explico_BasicEngine。因此您的示例代码与异常不匹配。)

您要么需要将文件放在此处,要么将参数设置更改为类似my.package.MyScript的文件(文件在类路径中的位置)。

您还可以设置配置参数scriptPaths代替类路径。然后,需要相对于此参数的值定位文件。 (类路径查找是后备)

免责声明:我是UIMA Ruta的开发人员

10-08 17:27