-
Notifications
You must be signed in to change notification settings - Fork 6
Feature functions
This page is a description of all currently-implemented features in thrax. For instructions on implementing your own, see feature function implementation. Entries on this page are in this form:
Label: feature name as shown in output "name=value"
Included in: which value to add to features key in thrax.conf to include this feature
Mathematical description.
Label: SourcePhraseGivenTarget
Included in: phrase
For a rule like ( X \to \langle \alpha ;, \beta \rangle ), let ( c(\cdot) ) be the number of times a particular phrase has been seen among all the extracted rules. Then we calculate ( p(\alpha | \beta) = \frac{c(\alpha,\beta)}{c(\beta)} ) and the value of this feature is ( - \log{ p(\alpha|\beta)} ).
Label: TargetPhraseGivenSource
Included in: phrase
Just as in SourcePhraseGivenTarget
above, except the calculation is ( - \log{ \frac{c(\alpha,\beta)}{c(\alpha)}} ).
Label: LexprobSourceGivenTarget
Included in: lex
Label: LexprobTargetGivenSource
Included in: lex
Label: Adjacent
Included in: samt
Label: Lexical
Included in: samt
Label: Abstract
Included in: samt
Label: ContainsX
Included in: samt
Label: SourceTerminalsButNoTarget
Included in: samt
Label: TargetTerminalsButNoSource
Included in: samt
Label: Monotonic
Included in: samt