Coder Social home page Coder Social logo

Comments (4)

DeNeutoy avatar DeNeutoy commented on September 28, 2024

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.

jkkummerfeld avatar jkkummerfeld commented on September 28, 2024

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.

DeNeutoy avatar DeNeutoy commented on September 28, 2024

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.

jkkummerfeld avatar jkkummerfeld commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.