Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-757

Tagger throws ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2.2S
    • Sandbox-Tagger
    • None

    Description

      java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.uima.examples.tagger.trainAndTest.Token
      at org.apache.uima.examples.tagger.TagMapping.map_tags(TagMapping.java:46)
      at org.apache.uima.examples.tagger.HMMTagger.process(HMMTagger.java:179)
      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:375)

      To reproduce, load HmmTaggerTAE.xml into CVD and run. I can see that a list of Strings is coming in, but tokens are expected. Not sure which one's right, though.

      Eugenie, could you take a look? Thanks.

      Attachments

        Activity

          People

            twgoetz Thilo Goetz
            twgoetz Thilo Goetz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: