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

HfstBasicTransition

eaxelson edited this pageFeb 8, 2018 ·10 revisions

class HfstBasicTransition

A transition class that consists of a target state, input and output symbols and a a tropical weight.


__init__ (self, state, input, output, weight)

Create an HfstBasicTransition leading to target statestate with input symbolinput, output symboloutput and weightweight.

transition = hfst.HfstBasicTransition(1, 'foo', 'bar', 0.5)

get_input_symbol (self)

Get the input symbol of the transition.


get_output_symbol (self)

Get the output symbol of the transition.


get_target_state (self)

Get number of the target state of the transition.


get_weight (self)

Get the weight of the transition.


set_weight (self, weight)

Set the weight of the transition toweight.

  • weight The weight.

__str__ (self)

A string representation of the transition.

Return: "target_state input_symbol output_symbol, weight"

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp