package wseg

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Wseg.DictSource

Sourcemodule Tree : sig ... end
Sourcetype entry = string * float

(word|char) * (count|occurrence probability)

Sourcetype entries = entry list
Sourcetype word = string list * float

(char list) * (occurrence probability)

Sourcetype chunk = word list
Sourceval dispConds : word list -> unit

print all conditions

Sourceval dispCands : chunk list -> unit

print all candidates

Sourceval result_of_cand : chunk -> string

compose a result string from a candidate

Sourceval buildEntries : entries -> entries

build a (word|char * occurrence probability) entry list from a (word|char * count) list

Sourceval buildIndex : entries -> float Tree.node

build an index, to be used as a dictionary

Sourceval candidates : float Tree.node -> string -> int -> chunk list

query all the candidates from a dictionary. Dict.candidates dict str max query str in dict, and limit maximum number in a chunk to be max