[erg] odd behavior on real numbers
Paul Haley
paul at haleyai.com
Fri May 22 21:41:22 CEST 2015
Looks like the problem is in tmr/ne2.tdl:
Changing this to the following works for me:
card_ne_2_tmr := ne_tmt &
[ +INPUT < [ +FORM ^[-+±~]?[1-9]+\.[0-9]+$ ] >,
+OUTPUT < [ +CLASS card_or_decimal_ne ] > ].
card_ne_2_tmr := ne_tmt &
[ +INPUT < [ +FORM ^[-+±~]?[1-9][0-9]*\.[0-9]+$ ] >,
+OUTPUT < [ +CLASS card_or_decimal_ne ] > ].
On 5/22/2015 9:49 AM, Paul Haley wrote:
> Greetings,
>
> I'm afraid I'm stumped and may be doing something silly, but the ERG
> with cheap seems to be having trouble with various numbers recently.
>
> Odds are that this is user error, of course. Nonetheless, suggestions
> would be appreciated.
>
> Regards,
> Paul
>
>
> root at 4e1387d01d8f:/ERG# cheap -default-les -repp -cm -packing english.grm
> reading `pet/english.set'... including `pet/common.set'... including
> `pet/global.set'... including `pet/repp.set'... including
> `pet/mrs.set'... loading `english.grm'
> (ERG (trunk)) reading ME model `redwoods.mem'... [3720311 features]
> 97895 types in 12 s
>
> 103.5 is large.
> no lexicon entries for:
> "103.5" []
> 103 is large.
> (2) `103 is large.' [0] --- 2 (0.04|0.04s) <18:125> (5272.0K) [0.0s]
> 0 is large.
> no lexicon entries for:
> "0" []
>
>
>
>
More information about the erg
mailing list