public static Type getType ( TypeSystem typeSystem , String name ) throws AnalysisEngineProcessException { Type type = typeSystem . getType ( name ) ; if ( type == null ) { throw new OpenNlpAnnotatorProcessException ( ExceptionMessages . TYPE_NOT_FOUND , new Object [ ] { name } ) ; } return type ; }
Retrieves a type of the given name from the given type system .