Difference: GrmThraxForum (44 vs. 45)

Revision 452015-08-15 - AlexanderSolovets

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

OpenGrm Thrax Forum

Line: 17 to 17
 
Added:
>
>

Pluralization

AlexanderSolovets - 2015-08-15 - 18:13

Suppose I have a transducer that turns numbers into their spoken representation, e.g. 23 -> twenty-three. Now I want to handle US currency, so $23 becomes "twenty-three dollars". Obviously for "$1" it is "one dollar". To implement it in Thrax I might just add the whole string as the alternative path with the lower weight, but as I have many different units ("2m" -> "two meters", but "1m" meter) I wonder what would be the idiomatic way to implement pluralization? I feel like I should use Features and Paradigms, but I lack good examples of their application. Thank you.

<--/commentPlugin-->
Log In

 

regex lookahead in Thrax

BernardR - 2015-06-29 - 10:39

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback