Number words: fractions ("one third") and 21-99 #9

Open
opened 2026-11-27 00:33:52 +02:00 by paultal · 0 comments
Owner
input output
one third 1 dot 3
three quarters 3 dot 11 t
twenty one plus x 20 dot 1 + x
half of x 19 dot x

number_words produces "twenty one", but the model hasn't learned it properly, and fraction words other than "one half"/"a half" don't exist in the data.

Fix:

  • Add fraction words ("a third", "two thirds", "three quarters", "n over m"), using frac(1, 3) etc.
  • Use number words more often for 21–99.
  • Possibly add "half of x" → frac(x, 2).
| input | output | |---|---| | one third | `1 dot 3` | | three quarters | `3 dot 11 t` | | twenty one plus x | `20 dot 1 + x` | | half of x | `19 dot x` | `number_words` produces "twenty one", but the model hasn't learned it properly, and fraction words other than "one half"/"a half" don't exist in the data. **Fix:** - Add fraction words ("a third", "two thirds", "three quarters", "n over m"), using `frac(1, 3)` etc. - Use number words more often for 21–99. - Possibly add "half of x" → `frac(x, 2)`.
paultal added the P3 lowdata labels 2026-11-27 00:33:52 +02:00
Sign in to join this conversation.