Skip to content
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

[HE Number] Support for Number in Hebrew - Javascript #2699

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

hershkoy
Copy link

Made the changes in the files, but at the moment it is still not working. I tried running the tests for Hebrew, but ava returns an error:

Recognizers-Text\JavaScript>npm test test/runner.js --match='*Hebrew*'

> recognizers@1.3.0 test E:\WORK\ML\develop\NLP\Recognizers-Text\JavaScript
> ava "test/runner.js"



  × No tests found in test\runner.js, make sure to import "ava" at the top of your test file

@ghost
Copy link

ghost commented Aug 25, 2021

CLA assistant check
All CLA requirements met.

@tellarin
Copy link
Collaborator

@hershkoy, can you remove the duplicate cases in the specs, so the build can go through?

@hershkoy
Copy link
Author

I removed the duplicates and now I see there are regex syntax errors in the Hebrew files.
I will check that and I will update (it can take some time though)
Thanks for the help

@tellarin tellarin changed the title Suppurt hebrew number [HE Number] Support for Number in Hebrew - Javascript Aug 26, 2021
@tellarin
Copy link
Collaborator

Thanks for keeping pushing this, @hershkoy! I'll try to take a closer look and see if I can help you a bit.
We can start by merging partially the pieces that are already good. Especially the specs.
How many of the total English Number specs have you localized into Hebrew?

@hershkoy
Copy link
Author

I am currently working only on Specs\Number\Hebrew\NumberModel.json. I localized all specs inside it, and currently about half of the cases are failing (mainly the Fraction phrases still require work).

If you want to merge, maybe I should add:

 "NotSupported": "javascript, java, python",

On the failing tests?

@hershkoy
Copy link
Author

hershkoy commented Sep 17, 2021

I am trying to add support to more fraction sentences in Hebrew,

Sentence can be translated as
the sun is one out of hundred trillion stars.
In Hebrew it looks something like:
the sun is one outofhundred trillion stars

I have an issue with fracLikeNumberParse function to parse this correctly.

While debugging this sentence, I compared to how English sentences work, and I think it is also not working. I opened an issue: #2716

What do you think? Is there a way to override fracLikeNumberParse in side JavaScript\packages\recognizers-number\src\number\hebrew\parserConfiguration.ts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants