public class CTAKESConfig
extends java.lang.Object
implements java.io.Serializable
CTAKESContentHandler
.
This class allows to enable cTAKES and set its parameters.Constructor and Description |
---|
CTAKESConfig()
Default constructor.
|
CTAKESConfig(java.io.InputStream stream)
Loads properties from InputStream and then tries to close InputStream.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAeDescriptorPath()
Returns the path to XML descriptor for AnalysisEngine.
|
CTAKESAnnotationProperty[] |
getAnnotationProps()
Returns an array of
CTAKESAnnotationProperty 's that will be included into cTAKES metadata. |
java.lang.String |
getAnnotationPropsAsString()
Returns a string containing a comma-separated list of
CTAKESAnnotationProperty names that will be included into cTAKES metadata. |
java.lang.String[] |
getMetadata()
Returns an array of metadata whose values will be analyzed using cTAKES.
|
java.lang.String |
getMetadataAsString()
Returns a string containing a comma-separated list of metadata whose values will be analyzed using cTAKES.
|
java.io.OutputStream |
getOutputStream()
Returns an
OutputStream object used write the CAS. |
char |
getSeparatorChar()
Returns the separator character used for annotation properties.
|
CTAKESSerializer |
getSerializerType()
Returns the type of cTAKES (UIMA) serializer used to write the CAS.
|
java.lang.String |
getUMLSPass()
Returns the UMLS password.
|
java.lang.String |
getUMLSUser()
Returns the UMLS username.
|
boolean |
isPrettyPrint()
Returns
true if formatted output is enabled, false otherwise. |
boolean |
isSerialize()
Returns
true if CAS serialization is enabled, false otherwise. |
boolean |
isText()
Returns
true if content text analysis is enabled false otherwise. |
void |
setAeDescriptorPath(java.lang.String aeDescriptorPath)
Sets the path to XML descriptor for AnalysisEngine.
|
void |
setAnnotationProps(CTAKESAnnotationProperty[] annotationProps)
Sets the
CTAKESAnnotationProperty 's that will be included into cTAKES metadata. |
void |
setAnnotationProps(java.lang.String[] annotationProps)
ets the
CTAKESAnnotationProperty 's that will be included into cTAKES metadata. |
void |
setMetadata(java.lang.String[] metadata)
Sets the metadata whose values will be analyzed using cTAKES.
|
void |
setOutputStream(java.io.OutputStream stream)
Sets the
OutputStream object used to write the CAS. |
void |
setPrettyPrint(boolean prettyPrint)
Enables the formatted output for serializer.
|
void |
setSeparatorChar(char separatorChar)
Sets the separator character used for annotation properties.
|
void |
setSerialize(boolean serialize)
Enables CAS serialization.
|
void |
setSerializerType(CTAKESSerializer serializerType)
Sets the type of cTAKES (UIMA) serializer used to write CAS.
|
void |
setText(boolean text)
Enables content text analysis using cTAKES.
|
void |
setUMLSPass(java.lang.String uMLSPass)
Sets the UMLS password.
|
void |
setUMLSUser(java.lang.String uMLSUser)
Sets the UMLS username.
|
public CTAKESConfig()
public CTAKESConfig(java.io.InputStream stream)
stream
- InputStream
object used to read properties.public java.lang.String getAeDescriptorPath()
public java.lang.String getUMLSUser()
public java.lang.String getUMLSPass()
public boolean isPrettyPrint()
true
if formatted output is enabled, false
otherwise.true
if formatted output is enabled, false
otherwise.public CTAKESSerializer getSerializerType()
public java.io.OutputStream getOutputStream()
OutputStream
object used write the CAS.OutputStream
object used write the CAS.public boolean isSerialize()
true
if CAS serialization is enabled, false
otherwise.true
if CAS serialization output is enabled, false
otherwise.public boolean isText()
true
if content text analysis is enabled false
otherwise.true
if content text analysis is enabled false
otherwise.public java.lang.String[] getMetadata()
public java.lang.String getMetadataAsString()
public CTAKESAnnotationProperty[] getAnnotationProps()
CTAKESAnnotationProperty
's that will be included into cTAKES metadata.CTAKESAnnotationProperty
's that will be included into cTAKES metadata.public java.lang.String getAnnotationPropsAsString()
CTAKESAnnotationProperty
names that will be included into cTAKES metadata.public char getSeparatorChar()
public void setAeDescriptorPath(java.lang.String aeDescriptorPath)
aeDescriptorPath
- the path to XML descriptor for AnalysisEngine.public void setUMLSUser(java.lang.String uMLSUser)
uMLSUser
- the UMLS username.public void setUMLSPass(java.lang.String uMLSPass)
uMLSPass
- the UMLS password.public void setPrettyPrint(boolean prettyPrint)
prettyPrint
- true
to enable formatted output, false
otherwise.public void setSerializerType(CTAKESSerializer serializerType)
serializerType
- the type of cTAKES serializer.public void setOutputStream(java.io.OutputStream stream)
OutputStream
object used to write the CAS.stream
- the OutputStream
object used to write the CAS.public void setSerialize(boolean serialize)
serialize
- true
to enable CAS serialization, false
otherwise.public void setText(boolean text)
text
- true
to enable content text analysis, false
otherwise.public void setMetadata(java.lang.String[] metadata)
metadata
- the metadata whose values will be analyzed using cTAKES.public void setAnnotationProps(CTAKESAnnotationProperty[] annotationProps)
CTAKESAnnotationProperty
's that will be included into cTAKES metadata.annotationProps
- the CTAKESAnnotationProperty
's that will be included into cTAKES metadata.public void setAnnotationProps(java.lang.String[] annotationProps)
CTAKESAnnotationProperty
's that will be included into cTAKES metadata.annotationProps
- the CTAKESAnnotationProperty
's that will be included into cTAKES metadata.public void setSeparatorChar(char separatorChar)
separatorChar
- the separator character used for annotation properties."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"