edu.stanford.nlp.pipeline.ProtobufAnnotationSerializer$LossySerializationException: Keys are not being serialized: class edu.stanford.nlp.ling.CoreAnnotations$MentionsAnnotation

GitHub | kelvinguu | 5 months ago
  1. 0

    ProtobufAnnotationSerializer does not support MentionsAnnotation

    GitHub | 5 months ago | kelvinguu
    edu.stanford.nlp.pipeline.ProtobufAnnotationSerializer$LossySerializationException: Keys are not being serialized: class edu.stanford.nlp.ling.CoreAnnotations$MentionsAnnotation

    Root Cause Analysis

    1. edu.stanford.nlp.pipeline.ProtobufAnnotationSerializer$LossySerializationException

      Keys are not being serialized: class edu.stanford.nlp.ling.CoreAnnotations$MentionsAnnotation

      at edu.stanford.nlp.pipeline.ProtobufAnnotationSerializer.toProto()
    2. Stanford CoreNLP
      StanfordCoreNLPServer$CoreNLPHandler.handle
      1. edu.stanford.nlp.pipeline.ProtobufAnnotationSerializer.toProto(ProtobufAnnotationSerializer.java:350)
      2. edu.stanford.nlp.pipeline.ProtobufAnnotationSerializer.toProtoBuilder(ProtobufAnnotationSerializer.java:504)
      3. edu.stanford.nlp.pipeline.ProtobufAnnotationSerializer.toProto(ProtobufAnnotationSerializer.java:466)
      4. edu.stanford.nlp.pipeline.ProtobufAnnotationSerializer.write(ProtobufAnnotationSerializer.java:177)
      5. edu.stanford.nlp.pipeline.StanfordCoreNLP.lambda$createOutputter$78(StanfordCoreNLP.java:926)
      6. edu.stanford.nlp.pipeline.StanfordCoreNLPServer$CoreNLPHandler.handle(StanfordCoreNLPServer.java:488)
      6 frames
    3. Java RT
      Thread.run
      1. com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
      2. sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
      3. com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
      4. sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:675)
      5. com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
      6. sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647)
      7. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      8. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      9. java.lang.Thread.run(Thread.java:745)
      9 frames