Package org.apache.tika.parser.ctakes
Class CTAKESConfig
java.lang.Object
org.apache.tika.parser.ctakes.CTAKESConfig
- All Implemented Interfaces:
Serializable
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
Configuration for
CTAKESContentHandler.
This class allows to enable cTAKES and set its parameters.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Default constructor.CTAKESConfig(InputStream stream) Deprecated.Loads properties from InputStream and then tries to close InputStream. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the path to XML descriptor for AnalysisEngine.Deprecated.Returns an array ofCTAKESAnnotationProperty's that will be included into cTAKES metadata.Deprecated.Returns a string containing a comma-separated list ofCTAKESAnnotationPropertynames that will be included into cTAKES metadata.String[]Deprecated.Returns an array of metadata whose values will be analyzed using cTAKES.Deprecated.Returns a string containing a comma-separated list of metadata whose values will be analyzed using cTAKES.Deprecated.Returns anOutputStreamobject used write the CAS.charDeprecated.Returns the separator character used for annotation properties.Deprecated.Returns the type of cTAKES (UIMA) serializer used to write the CAS.Deprecated.Returns the UMLS password.Deprecated.Returns the UMLS username.booleanDeprecated.Returnstrueif formatted output is enabled,falseotherwise.booleanDeprecated.Returnstrueif CAS serialization is enabled,falseotherwise.booleanisText()Deprecated.Returnstrueif content text analysis is enabledfalseotherwise.voidsetAeDescriptorPath(String aeDescriptorPath) Deprecated.Sets the path to XML descriptor for AnalysisEngine.voidsetAnnotationProps(String[] annotationProps) Deprecated.ets theCTAKESAnnotationProperty's that will be included into cTAKES metadata.voidsetAnnotationProps(CTAKESAnnotationProperty[] annotationProps) Deprecated.Sets theCTAKESAnnotationProperty's that will be included into cTAKES metadata.voidsetMetadata(String[] metadata) Deprecated.Sets the metadata whose values will be analyzed using cTAKES.voidsetOutputStream(OutputStream stream) Deprecated.Sets theOutputStreamobject used to write the CAS.voidsetPrettyPrint(boolean prettyPrint) Deprecated.Enables the formatted output for serializer.voidsetSeparatorChar(char separatorChar) Deprecated.Sets the separator character used for annotation properties.voidsetSerialize(boolean serialize) Deprecated.Enables CAS serialization.voidsetSerializerType(CTAKESSerializer serializerType) Deprecated.Sets the type of cTAKES (UIMA) serializer used to write CAS.voidsetText(boolean text) Deprecated.Enables content text analysis using cTAKES.voidsetUMLSPass(String uMLSPass) Deprecated.Sets the UMLS password.voidsetUMLSUser(String uMLSUser) Deprecated.Sets the UMLS username.
-
Constructor Details
-
CTAKESConfig
public CTAKESConfig()Deprecated.Default constructor. -
CTAKESConfig
Deprecated.Loads properties from InputStream and then tries to close InputStream.- Parameters:
stream-InputStreamobject used to read properties.
-
-
Method Details
-
getAeDescriptorPath
Deprecated.Returns the path to XML descriptor for AnalysisEngine.- Returns:
- the path to XML descriptor for AnalysisEngine.
-
getUMLSUser
Deprecated.Returns the UMLS username.- Returns:
- the UMLS username.
-
getUMLSPass
Deprecated.Returns the UMLS password.- Returns:
- the UMLS password.
-
isPrettyPrint
public boolean isPrettyPrint()Deprecated.Returnstrueif formatted output is enabled,falseotherwise.- Returns:
trueif formatted output is enabled,falseotherwise.
-
getSerializerType
Deprecated.Returns the type of cTAKES (UIMA) serializer used to write the CAS.- Returns:
- the type of cTAKES serializer.
-
getOutputStream
Deprecated.Returns anOutputStreamobject used write the CAS.- Returns:
OutputStreamobject used write the CAS.
-
isSerialize
public boolean isSerialize()Deprecated.Returnstrueif CAS serialization is enabled,falseotherwise.- Returns:
trueif CAS serialization output is enabled,falseotherwise.
-
isText
public boolean isText()Deprecated.Returnstrueif content text analysis is enabledfalseotherwise.- Returns:
trueif content text analysis is enabledfalseotherwise.
-
getMetadata
Deprecated.Returns an array of metadata whose values will be analyzed using cTAKES.- Returns:
- an array of metadata whose values will be analyzed using cTAKES.
-
getMetadataAsString
Deprecated.Returns a string containing a comma-separated list of metadata whose values will be analyzed using cTAKES.- Returns:
- a string containing a comma-separated list of metadata whose values will be analyzed using cTAKES.
-
getAnnotationProps
Deprecated.Returns an array ofCTAKESAnnotationProperty's that will be included into cTAKES metadata.- Returns:
- an array of
CTAKESAnnotationProperty's that will be included into cTAKES metadata.
-
getAnnotationPropsAsString
Deprecated.Returns a string containing a comma-separated list ofCTAKESAnnotationPropertynames that will be included into cTAKES metadata.- Returns:
-
getSeparatorChar
public char getSeparatorChar()Deprecated.Returns the separator character used for annotation properties.- Returns:
- the separator character used for annotation properties.
-
setAeDescriptorPath
Deprecated.Sets the path to XML descriptor for AnalysisEngine.- Parameters:
aeDescriptorPath- the path to XML descriptor for AnalysisEngine.
-
setUMLSUser
Deprecated.Sets the UMLS username.- Parameters:
uMLSUser- the UMLS username.
-
setUMLSPass
Deprecated.Sets the UMLS password.- Parameters:
uMLSPass- the UMLS password.
-
setPrettyPrint
public void setPrettyPrint(boolean prettyPrint) Deprecated.Enables the formatted output for serializer.- Parameters:
prettyPrint-trueto enable formatted output,falseotherwise.
-
setSerializerType
Deprecated.Sets the type of cTAKES (UIMA) serializer used to write CAS.- Parameters:
serializerType- the type of cTAKES serializer.
-
setOutputStream
Deprecated.Sets theOutputStreamobject used to write the CAS.- Parameters:
stream- theOutputStreamobject used to write the CAS.
-
setSerialize
public void setSerialize(boolean serialize) Deprecated.Enables CAS serialization.- Parameters:
serialize-trueto enable CAS serialization,falseotherwise.
-
setText
public void setText(boolean text) Deprecated.Enables content text analysis using cTAKES.- Parameters:
text-trueto enable content text analysis,falseotherwise.
-
setMetadata
Deprecated.Sets the metadata whose values will be analyzed using cTAKES.- Parameters:
metadata- the metadata whose values will be analyzed using cTAKES.
-
setAnnotationProps
Deprecated.Sets theCTAKESAnnotationProperty's that will be included into cTAKES metadata.- Parameters:
annotationProps- theCTAKESAnnotationProperty's that will be included into cTAKES metadata.
-
setAnnotationProps
Deprecated.ets theCTAKESAnnotationProperty's that will be included into cTAKES metadata.- Parameters:
annotationProps- theCTAKESAnnotationProperty's that will be included into cTAKES metadata.
-
setSeparatorChar
public void setSeparatorChar(char separatorChar) Deprecated.Sets the separator character used for annotation properties.- Parameters:
separatorChar- the separator character used for annotation properties.
-