Comments (4)
FYI The reason i'm finding these tiny things is because i'm trying to write a grammar which parses all of the datasets - this PR should be fairly self explanatory:
https://github.com/allenai/allennlp/pull/1750/files
Currently my coverage stats look like:
academic: 100%
advising : 57.8%
atis : 93%
geography : 99.5%
imdb: 99.2%
restaurants : 100%
yelp : 100%
scholar: 98.7%
from text2sql-data.
Ah, I see. That could be really useful, e.g. for one project we discussed but didn't have time for in which structured output is produced by a decoder constrained by an SQL grammar. Also, looking at your code I see the note that JOINs may be hard, which I agree with :)
Looks like this problem stems from bugs in the original data:
SELECT max(*)
FROM
( SELECT count(distinct(movie_0.title))
FROM actor AS actor_0,
CAST AS cast_0,
movie AS movie_0
WHERE actor_0.name = " Brad Pitt "
actor_0.aid = cast_0.aid
AND cast_0.msid = movie_0.mid
GROUP BY movie_0.release_year ) AS subquery ;
I've applied your fix here 97fbaef
from text2sql-data.
Right, that's what we're planning on doing with it 👍. We're definitely planning on making several of these text2sql datasets part of a "semantic parsing framework" in allennlp, which will be released sometime before the end of the year. So thank you very much for being so open and communicative!
from text2sql-data.
Great! Please feel free to pull data from the data-development branch for now and when your release date is approaching let me know and we will merge data-development into master as a new release.
from text2sql-data.
Related Issues (20)
- Any canonicalization for quotes? HOT 2
- Correct way of handling the data split HOT 3
- Run sequence-to-sequence baseline models HOT 3
- SQL Patterns of WikiSQL HOT 1
- Allen NLP Text2SQL HOT 1
- Beam Search for Attention Copying seq2seq HOT 1
- Spacing error(?) in geography.json HOT 4
- Naming error (?) in restaurants.json HOT 1
- Error for wikisql.json and spider.json while generating test,train and dev split HOT 9
- This is more of a question than issue. HOT 2
- Sqlite3 could not execute *-db.sql HOT 7
- wrong primary keys in GeoQuery schema HOT 7
- location.restaurant_id should be foreign key in "Restaurants"? HOT 3
- The number of data does not match that in the paper HOT 3
- Wrong output of Geography using json_to_flat.py HOT 3
- Downloading the database HOT 11
- data in spider format HOT 2
- What tool is used to annotate the NL2sql data set? If you make the data set yourself, how should you operate it? HOT 1
- installing Dynet HOT 1
- SPARQL for Question Answering HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from text2sql-data.