Sha256: 2a37fca09b509cfe112872c2f9fb8cd1d9e67eb26d1c1f29786168552008c801
Contents?: true
Size: 757 Bytes
Versions: 45
Compression:
Stored size: 757 Bytes
Contents
package lingscope.algorithms; import lingscope.structures.AnnotatedSentence; /** * * @author shashank */ public class NegexCueAnnotator extends NegexAnnotator { public NegexCueAnnotator(String beginTag, String interTag, String otherTag) { super(beginTag, interTag, otherTag); } @Override public AnnotatedSentence annotateSentence(String sentence, boolean isTokenized) { if (negex == null) { throw new RuntimeException("Annotator has not been loaded"); } if (!isTokenized) { sentence = AbnerTokenizer.splitTermsByPunctuation(sentence); } String raw = negex.getCue(sentence, rules, beginTag, interTag, otherTag); return new AnnotatedSentence(raw); } }
Version data entries
45 entries across 45 versions & 1 rubygems