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

Wrong parsed name using name dimension #77

Open
mohammad-albarham opened this issue Dec 30, 2021 · 0 comments
Open

Wrong parsed name using name dimension #77

mohammad-albarham opened this issue Dec 30, 2021 · 0 comments
Labels
bug Something isn't working parsing Concerning the parsers module.

Comments

@mohammad-albarham
Copy link
Collaborator

mohammad-albarham commented Dec 30, 2021

What happened?

The name parser extracted wrong name likes : بي, شكرا.

Example:
text: أريد البحث في سجل الإنفاق الخاص بي
[Dimension(body=بي, value=بي, start=32, end=34, dimension_type=DimensionType.NAME)]

I expect to extract the names on the name dataset only.

Python version

3.8

What operating system are you using?

Linux

Code to reproduce the issue

>>> from maha.parsers.functions import parse_dimension
>>> text = `أريد البحث في سجل الإنفاق الخاص بي`
>>> extracted = parse_dimension(text, names=True)
[Dimension(body=بي, value=بي, start=32, end=34, dimension_type=DimensionType.NAME)]

Relevant log output

No response

@mohammad-albarham mohammad-albarham added bug Something isn't working parsing Concerning the parsers module. labels Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working parsing Concerning the parsers module.
Projects
None yet
Development

No branches or pull requests

1 participant