Examples of CorefFeature


Examples of org.apache.stanbol.enhancer.nlp.coref.CorefFeature

        Token he = sentence2.addToken(heStartIdx, heStartIdx + "He".length());
       
        Set<Span> obamaMentions = new HashSet<Span>();
        obamaMentions.add(he);
        obama.addAnnotation(NlpAnnotations.COREF_ANNOTATION,
          Value.value(new CorefFeature(true, obamaMentions)));
       
        Set<Span> heMentions = new HashSet<Span>();
        heMentions.add(obama);
        he.addAnnotation(NlpAnnotations.COREF_ANNOTATION,
          Value.value(new CorefFeature(false, heMentions)));
  }
View Full Code Here

Examples of org.apache.stanbol.enhancer.nlp.coref.CorefFeature

                    mentions.add(mentionedSpan);
                }
            }
    }   
       
    return new CorefFeature(jIsRepresentative.asBoolean(), mentions);
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.