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

Thesaurus Support #17

Closed
Reubend opened this issue Nov 13, 2017 · 6 comments
Closed

Thesaurus Support #17

Reubend opened this issue Nov 13, 2017 · 6 comments

Comments

@Reubend
Copy link

Reubend commented Nov 13, 2017

I am having trouble getting the thesaurus support working. Here's a command I'm running in order to test the pupil -> student rule in th_english.dat:

python2.7 ln2sql.py -d database/school.sql -l lang/english.csv -j output.json -t thesaurus/th_english.dat -i "Count how many pupil are there with firstname is John"

Although it works for the word "student", it outputs this error with the word "pupil" (as shown above):

ParsingException.ParsingException: Error: No table name found in sentence!

Am I invoking it incorrectly? I'm guessing this is simply a configuration mistake on my part, but I can't figure out what's wrong with the above command.

@FerreroJeremy
Copy link
Owner

The thesaurus feature is not implemented yet 😢

@serialmetrics
Copy link

How long until it’s implemented?

@aseembhalla
Copy link

Is there any alternative to get synonyms working with this script ??

@maverickjoy
Copy link
Contributor

One of the alternative is that you create a layer above ln2sql where you have a converter of synonyms to particular keywords and then pass it to ln2sql. I have done something similar on top of ln2sql for my data analytics project I had been working on.

@serialmetrics
Copy link

serialmetrics commented Nov 14, 2017 via email

@FerreroJeremy
Copy link
Owner

@Reubend @serialmetrics This feature is now implemented. I hope it'll suffice for you.

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

No branches or pull requests

5 participants