Package edu.washington.cs.knowitall.normalization

Examples of edu.washington.cs.knowitall.normalization.NormalizedField


    for (int i = 0; i < posTags.size(); i++) npChunkTags.add("O");
   
    ChunkedSentence sent = new ChunkedSentence(tokens, posTags, npChunkTags);
    ChunkedExtraction extr = new ChunkedExtraction(sent, new Range(0, posTags.size()));
   
    NormalizedField normField = normalizer.normalizeField(extr);
    String resultStr = normField.toString();
    assertEquals(expectedStr, resultStr);
  }
View Full Code Here


    /**
     * Returns true if the tokens in the given extraction appear in the set of
     * relations passed to the constructor.
     */
    public boolean doFilter(ChunkedExtraction extr) {
        NormalizedField normField = normalizer.normalizeField(extr);
        return relations.contains(normField.toString());
    }
View Full Code Here

TOP

Related Classes of edu.washington.cs.knowitall.normalization.NormalizedField

Copyright © 2018 www.massapicom. 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.