At runtime you can discover the available Types and their Features from the
TypeSystem in the CAS, but you cannot modify it.  So just add the new Type
or Feature to your Type System descriptor.  If you really need to create it
dynamically then you can use the TypeSystemDescription class to create or
modify a Type System, but I think it must be done before creating the
Analysis Engine (using the UIMAFramework class).  The restriction arises
because for efficient access the Types and Features are converted to integer
codes when the CAS pool is created so any changes must be committed earlier.

Reply via email to