Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It is important to note that the model works better with longer texts that have at least 2 sentences. So it is important to configure this stage earlier in the pipeline and before tokenizing the text.

...

As you can see the first sentence is tagged with "LANG_ENG" and the second sentence with "LANG_SPA". For these this case a sentence breaker stage was configured before the language detector stage. This way language identification could happen at sentence level.

...

  • TEXT_BLOCK - Flags all text blocks produced by the SimpleReader
  • LANG_??? - Flags all text blocks where a language was identified. Notice '???' at the end of the Flag. This is replaced by a ISO 3 letter language code. So  For example, if Spanish is detected, 3 letter code is SPA, then Flag will be "LANG_SPA"

...