FerreroJeremy/ln2sql

Thesaurus Support

Reubend opened this issue · 6 comments

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.

The thesaurus feature is not implemented yet 😢

How long until it’s implemented?

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

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.

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