Skip to content

PmatchContainer

eaxelson edited this page Sep 4, 2017 · 17 revisions

class PmatchContainer

A class for performing pattern matching.

Probably the easiest way to perform pattern matching is with function hfst.compile_pmatch_expression.


__init__ (self)

Initialize a PmatchContainer. Is this needed?


__init__ (self, defs)

Create a PmatchContainer based on definitions defs.

  • defs: A tuple of transducers in HFST_OLW_TYPE defining how pmatch is done.

See also: hfst.compile_pmatch_expression


match (self, input, time_cutoff = 0)

Match input input.


get_profiling_info (self)

todo


set_verbose (self, b)

todo


set_extract_tags_mode (self, b)

todo


set_profile (self, b)

Clone this wiki locally