Package cc.mallet.pipe

Examples of cc.mallet.pipe.TokenSequenceMatchDataAndTarget


  static String toy = "A a\nB b\nC c\nD d\nB b\nC c\n";

  public void testStartState() {
    Pipe p = new SerialPipes(new Pipe[] {
        new LineGroupString2TokenSequence(),
        new TokenSequenceMatchDataAndTarget(Pattern
            .compile("^(\\S+) (.*)"), 2, 1),
        new TokenSequenceParseFeatureString(false), new TokenText(),
        new TokenSequence2FeatureVectorSequence(true, false),
        new Target2LabelSequence(), new PrintInputAndTarget(), });

View Full Code Here

TOP

Related Classes of cc.mallet.pipe.TokenSequenceMatchDataAndTarget

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.