Example usage for opennlp.tools.util InvalidFormatException InvalidFormatException

List of usage examples for opennlp.tools.util InvalidFormatException InvalidFormatException

Introduction

In this page you can find the example usage for opennlp.tools.util InvalidFormatException InvalidFormatException.

Prototype

public InvalidFormatException(Throwable t) 

Source Link

Usage

From source file:opennlp.tools.disambiguator.WSDModel.java

@Override
protected void validateArtifactMap() throws InvalidFormatException {
    super.validateArtifactMap();

    if (!(artifactMap.get(WSD_MODEL_ENTRY_NAME) instanceof AbstractModel)) {
        throw new InvalidFormatException("WSD model is incomplete!");
    }/*w  w w. j  a va 2 s  . c o  m*/
}