Class DetectLanguage

  • All Implemented Interfaces:
    io.annot8.api.components.Annot8ComponentDescriptor<DetectLanguage.Processor,​io.annot8.api.settings.NoSettings>, io.annot8.api.components.ProcessorDescriptor<DetectLanguage.Processor,​io.annot8.api.settings.NoSettings>

    @ComponentName("Detect Language")
    @ComponentDescription("Detect the language of text content")
    public class DetectLanguage
    extends io.annot8.common.components.AbstractProcessorDescriptor<DetectLanguage.Processor,​io.annot8.api.settings.NoSettings>
    Detect the language of a Text content and add the language as an annotation covering the whole Content.
    • Constructor Detail

      • DetectLanguage

        public DetectLanguage()
    • Method Detail

      • createComponent

        protected DetectLanguage.Processor createComponent​(io.annot8.api.context.Context context,
                                                           io.annot8.api.settings.NoSettings settings)
        Specified by:
        createComponent in class io.annot8.common.components.AbstractComponentDescriptor<DetectLanguage.Processor,​io.annot8.api.settings.NoSettings>
      • capabilities

        public io.annot8.api.capabilities.Capabilities capabilities()