Description Usage Arguments Value Examples
This method sets the type system to the ccp-nlp one to run the EntityFinder
This method sets the type system to the ccp-nlp one to run the EntityFinder
1 2 3 4 5 6 7 8 9 | typeSystemRef(x)
typeSystemRef(x) <- value
## S4 method for signature 'EntityFinder'
typeSystemRef(x)
## S4 replacement method for signature 'EntityFinder'
typeSystemRef(x) <- value
|
x |
instance of the class EntityFinder |
value |
the java type system to detect concepts from ontologies. |
the reference to the Java type system currently set
The updated EntityFinder S4 object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ef <- new('EntityFinder')
typeSystemRef(ef)
ef <- new('EntityFinder')
type_system_array_list <- .jnew('java/util/ArrayList')
ccp_nlp_type_system <- .jfield('edu/ucdenver/ccp/nlp/uima/util/TypeSystemUtil',
name = 'CCP_TYPE_SYSTEM')
sentence_detector_type_system_str <- 'org.cleartk.token.type.Sentence'
conceptmapper_type_system <-
'edu.ucdenver.ccp.nlp.wrapper.conceptmapper.TypeSystem'
dictTerm <- 'analysis_engine.primitive.DictTerm'
tokenizer <- 'org.apache.uima.conceptMapper.support.tokenizer.TokenAnnotation'
vector_of_ts <- c(ccp_nlp_type_system, sentence_detector_type_system_str,
conceptmapper_type_system, dictTerm, tokenizer)
type_system_description <-
J('org/uimafit/factory/TypeSystemDescriptionFactory')$createTypeSystemDescription(vector_of_ts)
typeSystemRef(ef) <- type_system_description
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.