将NLP转换为SQL的方法有哪些? [英] What are some of the ways to convert NLP to SQL?

查看:953
本文介绍了将NLP转换为SQL的方法有哪些?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,已经开始研究对话型聊天机器人的概念,并一直在考虑将自然语言查询转换为SQL的不同方法. 这些是我从头开始编写之前要入围评估的一些库.还有其他想法或建议吗?

解决方案

从AllenNLP上查看此演示: https ://demo.allennlp.org/atis-parser

将自然语言文本转换为SQL查询.他们也有python库allennlp.

这是他们的github仓库: https://github.com/allenai/allennlp

有关语义解析的文档:

https://allenai.github.io /allennlp-docs/api/allennlp.data.dataset_readers.semantic_parsing.html

Recently, have started working on the idea of conversational chatbot and have been thinking of different ways to convert Natural Language query to SQL. These are some of the libraries I have shortlisted to evaluate before writing from scratch. Any other ideas or suggestions?

解决方案

check this demo from AllenNLP: https://demo.allennlp.org/atis-parser

Which converts Natural Language text into SQL queries. They also have python library allennlp.

Here is their github repo: https://github.com/allenai/allennlp

For documentation regarding semantic_parsing:

https://allenai.github.io/allennlp-docs/api/allennlp.data.dataset_readers.semantic_parsing.html

这篇关于将NLP转换为SQL的方法有哪些?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆