Class CharSoupMetadataFilter
java.lang.Object
org.apache.tika.metadata.filter.MetadataFilter
org.apache.tika.metadata.filter.MetadataFilterBase
org.apache.tika.langdetect.charsoup.CharSoupMetadataFilter
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable
A
MetadataFilter that runs
CharSoup language detection on the extracted text content and writes
the detected language and confidence into the metadata.
Configure in tika-config.xml:
<metadataFilter class="org.apache.tika.langdetect.charsoup.CharSoupMetadataFilter">
<params>
<param name="maxLength" type="int">10000</param>
</params>
</metadataFilter>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.tika.metadata.filter.MetadataFilterBase
doFilterMethods inherited from class org.apache.tika.metadata.filter.MetadataFilter
close, filter, filter
-
Constructor Details
-
CharSoupMetadataFilter
public CharSoupMetadataFilter()
-
-
Method Details
-
setMaxLength
public void setMaxLength(int maxLength) -
filter
- Specified by:
filterin classMetadataFilterBase
-