TWiki
>
FST Web
>
FstQuickTour
>
ReweightDoc
(revision 2) (raw view)
Edit
Attach
---+ Reweight ---++ Description This operation reweights an FST according to the potentials and in the direction specified by the user. Weight needs to be left distributive when reweighting towards the initial state and right distributive when reweighting towards the final states. An arc of weight _w_, with an origin state of potential _p_ and destination state of potential _q_, is reweighted by _p<sup>-1</sup> ⊗ (w ⊗ q)_ when reweighting towards the initial state and by _(p ⊗ w) ⊗ q<sup>-1</sup>_ when reweighting towards the final states. ---++ Usage |<verbatim> enum ReweightType { REWEIGHT_TO_INITIAL, REWEIGHT_TO_FINAL }; template <class Arc> void Reweight(MutableFst<Arc> *fst, vector<typename Arc::Weight> potential, ReweightType type) </verbatim>| %DOX{namespacefst.html#Reweight[%H%]}% | |<verbatim> fstreweight [--opts] a.fst potentials.txt out.fst --to_final: type = bool, default = false Push/reweight to final (vs. to initial) states </verbatim> | | ---++ Complexity =Reweight=: * Time: _O(V + E)_ * Space: _O(V + E)_ %BR% where _V_ = # of states and _E_ = # of arcs. -- Main.CyrilAllauzen - 04 Jul 2007
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r6
|
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r2 - 2007-07-04
-
CyrilAllauzen
FST
Log In
or
Register
FST Web
Create New Topic
Index
Search
Changes
Notifications
Statistics
Preferences
Webs
Contrib
FST
Forum
GRM
Kernel
Main
Sandbox
TWiki
Main
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback