-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is toNumbers
supposed to mutate data?
#1113
Labels
Comments
@spencermountain Thanks for taking a look. Just wanted to add some information around this as well - near as I can tell it happens pretty consistently with const nat = nlp('There were 24 apples and 12000 oranges on the table.'); |
Merged
hey, i think this has been fixed in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discussed in #1112
Originally posted by scpedicini June 3, 2024
I think I'm doing something wrong with the newer
compromise/three
.termList
/out
/etc. works great, but if I use them in conjunction withtoNumbers
the data seems to mutate in place.Trying to do this:
I basically want to go through each numerically recognized "group" hence using the
.values()
command and use thetoNumbers()
command to reduce them down to the numerical number.Picture to help indicate the issue:
The text was updated successfully, but these errors were encountered: