Click here to Skip to main content
15,887,442 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I want to create a query using some keywords. Like a person will say show me data of devices which are outage today. I will split this sentence in to keywords and then I want to make Sql query from these keyword using AI in Python. Can Any body help me how can I do this task?


What I have tried:

I want to create a query using some keywords. Like a person will say show me data of devices which are outage today. I will split this sentence in to keywords and then I want to make Sql query from these keyword using AI in Python. Can Any body help me how can I do this task?
Posted
Updated 14-Jan-19 0:30am

You need to use google and search for Grammar Parsing.

Grammar parser[^]

This is by no means a light subject so be prepared to dig in. ex: Grammars and Parsing[^]
 
Share this answer
 
This is indeed a vast subject. You can start from ANTLR[^] but do keep in mind that its just tip of the iceberg.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900