HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
machinalis
quepy
Python2013–2017
machinalis / quepy

quepy

A python framework to transform natural language questions to queries in a database query language.

4Distinct people
4Mentions
0Explicit recommenders
1.3KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A python framework to transform natural language questions to queries in a database query language.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year4 dated mentions

Observed mentions: 2013-09-11 11:46:48 UTC to 2017-05-08 23:20:10 UTC.

0122013-01-01 00:00:00 UTC to 2014-01-01 00:00:00 UTC (exclusive): 2 mentions; 2 submissions, 0 comments20132014-01-01 00:00:00 UTC to 2015-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-01 00:00:00 UTC to 2016-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20152016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2017

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20132013-01-01 00:00:00 UTC2014-01-01 00:00:00 UTC220
20142014-01-01 00:00:00 UTC2015-01-01 00:00:00 UTC000
20152015-01-01 00:00:00 UTC2016-01-01 00:00:00 UTC101
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC000
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC101

What Hacker News says

4 sources
There are about an infinite number of answers to this question, and half the answers are really just more questions. Some of it depends on how "intelligent" you want it to be. Worst case, you'll have to invent AGI. Short of that, there are a ton of places to start. You might start by reading all of the papers published by the folks behind the START question & answer system: http://start.csail.mit.edu/index.php If you can accept something that's fairly dumb, and requires a bit of up-front coding, you could just code up a chat-bot using AIML. Or you could start with a fairly dumb AIML bot and incorporate additional techniques over time. You could probably tie in OpenNLP or CoreNLP or something, figure out ways to use WordNet, ConceptNet, SyntaxNet, the OpenCyc knowledgebase, dbPedia, Wikidata, etc. and make something that could answer a
Read the rest
lot of questions. Figuring out how to make it learn is a much bigger challenge, as is integrating all of the various ML/AI techniques out there that might be applicable. You might also get some mileage out of something like Quepy[1], a framework for translating natural language into structured queries (think, SPARQL, SQL, etc.) If you just want to get your feet wet and start exploring, I'd look here: http://www.alicebot.org/downloads/programs.html If AIML bots aren't "smart" enough for you, start exploring other techniques. [1]: https://github.com/machinalis/quepy
In Ask HN: How to get started on developing an enterprise AI assistant?
1. There is the Yahoo QA dataset that might be helpful. Also you can crawl specific websites for such questions 2. semi-manually come up with templates (a grammar for the questions). You have to analyse the dataset in a unsupervised way to find out the common patterns and sanatize the results. 3. maybe step 2 is enough. 4. markov networks are useful in this context but I can be wrong > A template should be translatable to a bunch of queries (e.g.: GraphQL format). Not the hard part I believe. Yes once you have the templates with typed variables (named entities, adjectives, etc...) like you describe you can write the code to search for the results. I doubt GraphQL is a good solution for that problem. You can't translate the templates into a search on the fly. It's a mapping that you need to build manually or automatically. I think in your
Read the rest
case SQL will be fine. Have a look at https://github.com/machinalis/quepy
In Curated list of speech and natural language processing resources
e_chango·Sep 11, 2013Submission

Quepy project uses python to do question answering (nl to mql) over freebase

Quepy 0.2 now is able to generate queries in MQL for the Freebase knowledge base! Quepy is a python framework in which you can specify how to handle questions (in natural language) in order to generate a database query that answers them. Freebase is a HUGE database that contains A LOT of enciclopedic information about everything. You can find a tutorial here: http://quepy.readthedocs.org/en/latest/tutorial.html The full code here: http://github.com/machinalis/quepy And the full documentation here: http://quepy.readthedocs.org/ Demo: http://quepy.machinalis.com/
5 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.