Package org.maltparserx.parser

Examples of org.maltparserx.parser.ParsingException


    update((TwoPlanarConfig)parsingAlgorithm.getCurrentParserConfiguration());
  }
 
  public void update(Object[] arguments) throws MaltChainedException {
    if (arguments.length != 1 || !(arguments[0] instanceof TwoPlanarConfig)) {
      throw new ParsingException("Arguments to the two-planar address function are not correct. ");
    }
    update((TwoPlanarConfig)arguments[0]);
  }
View Full Code Here


    setAlgorithm(parsingAlgorithm);
  }
 
  public void initialize(Object[] arguments) throws MaltChainedException {
    if (arguments.length != 1) {
      throw new ParsingException("Could not initialize "+this.getClass().getName()+": number of arguments are not correct. ");
    }
    if (!(arguments[0] instanceof Integer)) {
      throw new ParsingException("Could not initialize "+this.getClass().getName()+": the first argument is not an integer. ");
    }
   
    setIndex(((Integer)arguments[0]).intValue());
  }
View Full Code Here

TOP

Related Classes of org.maltparserx.parser.ParsingException

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.