Package net.sourceforge.segment.srx.io

Examples of net.sourceforge.segment.srx.io.SrxAnyParser


   * using given language code.
   * @param reader reader containing SRX rules
   * @param languageCode language code used to select the rules to apply
   */
  public SrxSplitAlgorithm(Reader reader, String languageCode) {
    SrxParser parser = new SrxAnyParser();
    this.document = parser.parse(reader);
    this.languageCode = languageCode;
  }
View Full Code Here


    if (parameterMap.size() > 0) {
      SrxTransformer transformer = new SrxAnyTransformer();
      srxReader = transformer.transform(srxReader, parameterMap);
    }

    SrxParser srxParser = new SrxAnyParser();
    SrxDocument document = srxParser.parse(srxReader);
    srxReader.close();

    return document;
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.segment.srx.io.SrxAnyParser

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.