Small changes in how the input is written break the output.
input
output
X squared
13^2
X SQUARED PLUS ONE
19 dot 1^3
x squared plus one.
x^2 + 1 dot 2
uh x squared plus um one
u h x^2 + frac(1, 1)
x sqaured plus one
x s
x^2 / x ** 2
x 2
Fix, in two steps:
Clean up the input before translating (cheap): lowercase it (but uppercase letters are meaningful once #4 adds them), strip trailing punctuation, drop filler words (uh, um, like, so).
Train on noisier input: extend add_noise in render.py with random capitals, punctuation, filler words, the odd typo, and mixed notation (x^2, x**2, sqrt(x)).
Small changes in how the input is written break the output.
| input | output |
|---|---|
| X squared | `13^2` |
| X SQUARED PLUS ONE | `19 dot 1^3` |
| x squared plus one. | `x^2 + 1 dot 2` |
| uh x squared plus um one | `u h x^2 + frac(1, 1)` |
| x sqaured plus one | `x s` |
| x^2 / x ** 2 | `x 2` |
**Fix, in two steps:**
1. Clean up the input before translating (cheap): lowercase it (but uppercase letters are meaningful once #4 adds them), strip trailing punctuation, drop filler words (uh, um, like, so).
2. Train on noisier input: extend `add_noise` in `render.py` with random capitals, punctuation, filler words, the odd typo, and mixed notation (`x^2`, `x**2`, `sqrt(x)`).
We do want to have noise in our training data since real world inputs would have typos, random unwanted characters, random casing etc, we do want to train the model to understand that these are not important and want to make it understand the essence of the words not just for random seqences of characters.
We do want to have noise in our training data since real world inputs would have typos, random unwanted characters, random casing etc, we do want to train the model to understand that these are not important and want to make it understand the essence of the words not just for random seqences of characters.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Small changes in how the input is written break the output.
13^219 dot 1^3x^2 + 1 dot 2u h x^2 + frac(1, 1)x sx 2Fix, in two steps:
add_noiseinrender.pywith random capitals, punctuation, filler words, the odd typo, and mixed notation (x^2,x**2,sqrt(x)).We do want to have noise in our training data since real world inputs would have typos, random unwanted characters, random casing etc, we do want to train the model to understand that these are not important and want to make it understand the essence of the words not just for random seqences of characters.