Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
eaxelson edited this pageFeb 8, 2018 ·5 revisions

hfst.xerox_rules.Rule

A rule that contains mapping and context and replace type (if any).

If rule isA -> B || L _ R , than mapping is cross product of transducers A and B,context is pair of transducers L and R, and replType is enum REPL_UP.

__init__(self, mapping)

Rule that performs mappings defined inmapping in every context.

  • mapping HfstTransducerPairVector

__init__(self, mapping, context, type)

Rule that performs mappings defined inmapping in contextscontext.type defines how contexts are matched.

  • mapping HfstTransducerPairVector
  • context HfstTransducerPairVector
  • type ReplType

__init__(self, rule)

Copy Rule.

  • rule Rule

__init__(self)

Default constructor needed for python.

get_mapping(self)

Get mappings defined in Rule.

Return: HfstTransducerPairVector

get_context()

Get contexts defined in Rule.

Return: HfstTransducerPairVector

get_replType()

Get replace type defined in Rule.

Return: ReplaceType

encodeFlags()

Encode flag diacritics.

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp