public class CTAKESConfig extends Object implements Serializable
CTAKESContentHandler
.
This class allows to enable cTAKES and set its parameters.Constructor and Description |
---|
CTAKESConfig()
Default constructor.
|
CTAKESConfig(InputStream stream)
Loads properties from InputStream and then tries to close InputStream.
|
Modifier and Type | Method and Description |
---|---|
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. |
String |
getAnnotationPropsAsString()
Returns a string containing a comma-separated list of
CTAKESAnnotationProperty names that will be included into cTAKES metadata. |
String[] |
getMetadata()
Returns an array of metadata whose values will be analyzed using cTAKES.
|
String |
getMetadataAsString()
Returns a string containing a comma-separated list of metadata whose values will be analyzed using cTAKES.
|
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.
|
String |
getUMLSPass()
Returns the UMLS password.
|
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(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(String[] annotationProps)
ets the
CTAKESAnnotationProperty 's that will be included into cTAKES metadata. |
void |
setMetadata(String[] metadata)
Sets the metadata whose values will be analyzed using cTAKES.
|
void |
setOutputStream(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(String uMLSPass)
Sets the UMLS password.
|
void |
setUMLSUser(String uMLSUser)
Sets the UMLS username.
|
public CTAKESConfig()
public CTAKESConfig(InputStream stream)
stream
- InputStream
object used to read properties.public String getAeDescriptorPath()
public String getUMLSUser()
public 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 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 String[] getMetadata()
public String getMetadataAsString()
public CTAKESAnnotationProperty[] getAnnotationProps()
CTAKESAnnotationProperty
's that will be included into cTAKES metadata.CTAKESAnnotationProperty
's that will be included into cTAKES metadata.public String getAnnotationPropsAsString()
CTAKESAnnotationProperty
names that will be included into cTAKES metadata.public char getSeparatorChar()
public void setAeDescriptorPath(String aeDescriptorPath)
aeDescriptorPath
- the path to XML descriptor for AnalysisEngine.public void setUMLSUser(String uMLSUser)
uMLSUser
- the UMLS username.public void setUMLSPass(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(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(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(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 © 2007–2022 The Apache Software Foundation. All rights reserved.