package stem

  1. Overview
  2. Docs
A stemmer of words for few languages

Install

dune-project
 Dependency

Authors

Maintainers

Sources

stem-0.0.1.tbz
sha256=ec121bc02bca7121ce04cd346648d0432826be12dabf386d064795197cbf0275
sha512=f45989d23cc1211df3c8a9c3a164a7f853e6a1cb1274061f65c8c7e5b631a8a88c675c76b5d939da6777d571f63ce59d5b18940abc5fddb944ca402bc095b1ca

doc/stem.tokenizer/Tokenizer/index.html

Module TokenizerSource

Sourcetype behavior =
  1. | Remove
  2. | Isolate
  3. | Merge_with_previous
  4. | Merge_with_next
Sourcetype pattern =
  1. | Whitespace
  2. | Dash
  3. | Bert
  4. | Regex of Re.re
Sourcetype action = pattern * Tokenizer__.Norm.behavior
Sourceval run : ?encoding:Snowball.encoding -> ?to_lowercase:bool -> action list -> string Seq.t -> string Seq.t

run actions str applies actions on the given str.

Sourceval run_on_bstr : ?encoding:Snowball.encoding -> ?to_lowercase:bool -> action list -> Bstr.t -> string Seq.t

run actions bstr applies actions on the given bstr.

NOTE: The advantage of using a bigstring is that you can load a file using Unix.map_file and process the file to obtain a stream of tokens.