package stem
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A stemmer of words for few languages
Install
dune-project
Dependency
Authors
Maintainers
Sources
stem-0.0.1.tbz
sha256=ec121bc02bca7121ce04cd346648d0432826be12dabf386d064795197cbf0275
sha512=f45989d23cc1211df3c8a9c3a164a7f853e6a1cb1274061f65c8c7e5b631a8a88c675c76b5d939da6777d571f63ce59d5b18940abc5fddb944ca402bc095b1ca
doc/src/stem.snowball/snowball.ml.html
Source file snowball.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45[@@@warning "-32"] type encoding = ISO_8859_1 | ISO_8859_2 | KOI8_R | UTF_8 let invalid_argf fmt = Format.kasprintf invalid_arg fmt let encoding_to_string = function | ISO_8859_1 -> "ISO_8859_1" | ISO_8859_2 -> "ISO_8859_2" | KOI8_R -> "KOI8_R" | UTF_8 -> "UTF_8" let pp_encoding ppf v = Format.pp_print_string ppf (encoding_to_string v) type t exception Stem_internal_error of string let _ = Callback.register_exception "stem exception" (Stem_internal_error "") module C = struct external list : unit -> string list = "stem_list" external stem_new : string -> string -> t = "stem_new" external stem_delete : t -> unit = "stem_delete" external stem : t -> string -> string = "stem" end module Language = struct type t = string let pp = Format.pp_print_string end let languages = C.list () let porter = List.find (( = ) "porter") languages let create ?(encoding = UTF_8) alg = let encoding = encoding_to_string encoding in C.stem_new alg encoding let remove = C.stem_delete let stem t word = try C.stem t word with _ -> invalid_argf "%S is an invalid word to stem" word
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>