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

[QUESTION] How to change the default Character map? #143

Open
israaexol opened this issue Apr 22, 2024 · 1 comment
Open

[QUESTION] How to change the default Character map? #143

israaexol opened this issue Apr 22, 2024 · 1 comment
Assignees
Labels

Comments

@israaexol
Copy link

Hello, I'm facing an issue with the CAMEL tools analyzer, specifically with the default character map.
For example, when analyzing the world "والتين" (and the fig), the disambiguator/analyzer reads the word as وآلتين (and two instruments), which is incorrect in my case.

Is there a different Character map that I can provide as a value for the norm_map argument of the analyzer? if CAMEL tools does not provide a different CharMapper, how can I define one so that the letters are processed exactly the way they are without any normalization or conversions?

I really hope you could help me solve this issue which I've been facing for a while now.

Thank you so much in advance!

@owo
Copy link
Collaborator

owo commented Aug 23, 2024

You can change the default CharMapper with the norm_map argument but that will not fix this particular issue. Furthermore, norm_map is used to specify the normalization expected by the morphological database so for all the databases we provide this shouldn't be changed.

This is most likely a limitation of the disambiguation model (ie. the model has seen very few instances of the word in that particular context if at all).
Can you tell us which disambiguation model you are using (MLE/BERT) and can you give us the example sentence this appears in?

We are working on implementing a new option to take into account the spelling of a word in the input (particularly input diacritics) and should help with such cases.

We don't have an exact timeline for this but we'll notify you here when it's done.

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

No branches or pull requests

2 participants