nielstron / quantulum3

Library for unit extraction - fork of quantulum for python3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hi I'm adding a new language (Spanish) and i have an issue!

tmullerv opened this issue · comments

Hi thanks for reading. I'm trying to add a new language and i have an issue, as i try to add units to units.js in _lang.es_CL, it seems that entities.json from es_CL are not loaded beforehand thus not finding it in entities, as i could resolve the problem by adding the entitie to main entities.json file. Am i missing something? is this the expecte behaviour?

I'm really pleased with the use of this library in english so i'm very compromised on getting it to work on spanish.
thx again
image

Thats a very cool project! Unfortunately, if you don't show me what changes you made to the code, I cannot debug the issue. Maybe you can push your changes to a branch on your fork?

I did pushed to a new branch in my fork (ES_dev) if u could check it out, the problem solves when i manually add the entities to the main entities.json file. You could try that too just copying the ones from the es_CL/entities.json

After that the next error i get is this, i believe is because i havent retrained the classifier. I'll translate the train.json an try to retrain the classifier.

image

Hey @tmullerv Did you end up finishing this?