Package cc.mallet.util

Examples of cc.mallet.util.CharSequenceLexer


    this.backgroundTag = backgroundTag;
  }

  public SGML2TokenSequence (String regex, String backgroundTag)
  {
    this.lexer = new CharSequenceLexer (regex);
    this.backgroundTag = backgroundTag;
  }
View Full Code Here


    this.backgroundTag = backgroundTag;
  }

  public SGML2TokenSequence ()
  {
    this (new CharSequenceLexer(), "O");
  }
View Full Code Here

  CharSequenceLexer lexer;
  int numberFeatures = -1;
  private static Logger logger = MalletLogger.getLogger(Csv2Array.class.getName());

  public Csv2Array () {
    this.lexer = new CharSequenceLexer ("([^,]+)");
  }
View Full Code Here

  public Csv2Array () {
    this.lexer = new CharSequenceLexer ("([^,]+)");
  }

  public Csv2Array (String regex) {
    this.lexer = new CharSequenceLexer (regex);
  }
View Full Code Here


  private Extraction createExtractionFrom (String[] predStrings, String[] trueStrings)
  {
    Pipe pipe = new SerialPipes (new Pipe[] {
      new SGML2TokenSequence (new CharSequenceLexer (CharSequenceLexer.LEX_NONWHITESPACE_CLASSES  ), "O"),
      new Target2LabelSequence (),
      new PrintInputAndTarget (),
    });

    InstanceList pred = new InstanceList (pipe);
View Full Code Here

  }

  public SelectiveSGML2TokenSequence (String regex, String backgroundTag,
                                      Set allowed)
  {
    this (new CharSequenceLexer (regex), backgroundTag, allowed);
  }
View Full Code Here

    this (new CharSequenceLexer (regex), backgroundTag, allowed);
  }

  public SelectiveSGML2TokenSequence (Set allowed)
  {
    this (new CharSequenceLexer(), "O", allowed);
  }
View Full Code Here

    this.lexer = lexer;
  }

  public CharSequence2TokenSequence (String regex)
  {
    this.lexer = new CharSequenceLexer (regex);
  }
View Full Code Here

    this.lexer = new CharSequenceLexer (regex);
  }

  public CharSequence2TokenSequence (Pattern regex)
  {
    this.lexer = new CharSequenceLexer (regex);
  }
View Full Code Here

    this.lexer = new CharSequenceLexer (regex);
  }

  public CharSequence2TokenSequence ()
  {
    this (new CharSequenceLexer());
  }
View Full Code Here

TOP

Related Classes of cc.mallet.util.CharSequenceLexer

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.