[
https://issues.apache.org/jira/browse/OPENNLP-241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080821#comment-13080821
]
Jörn Kottmann commented on OPENNLP-241:
---------------------------------------
I added a new chekArtifactMap method to the BaseModel which wraps the exception
in an IllegalArgumentException and updated all model classed to call it.
> Model validations is only performed if instatiated from Input Stream.
> ----------------------------------------------------------------------
>
> Key: OPENNLP-241
> URL: https://issues.apache.org/jira/browse/OPENNLP-241
> Project: OpenNLP
> Issue Type: Bug
> Components: Chunker, Coref, Doccat, Name Finder, Parser, POS Tagger,
> Sentence Detector, Tokenizer
> Affects Versions: tools-1.5.2-incubating
> Reporter: William Colen
> Priority: Minor
>
> Models are not validated if instantiated with the constructor the cross
> validator, or training code uses.
> The validation is only performed when it is loaded from an Input Stream.
> For example the POS Model does not validate the dictionary tagset while
> training or executing cross validation, only during execution tool or
> evaluation.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira