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

Version Path
abstractor-4.4.7 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.4.6 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.4.5 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.4.4 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.4.3 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.4.2 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.4.1 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.4.0 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.3.3 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.3.2 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.3.1 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.3.0 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.2.3 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.2.2 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.2.1 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.2.0 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.1.5 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.1.4 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.1.3 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java
abstractor-4.1.2 lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java