Class CharSoupMetadataFilter

All Implemented Interfaces:
Closeable, Serializable, AutoCloseable

public class CharSoupMetadataFilter extends MetadataFilterBase
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 Details

    • CharSoupMetadataFilter

      public CharSoupMetadataFilter()
  • Method Details