Git Product home page Git Product logo

Comments (8)

lucas0 avatar lucas0 commented on July 3, 2024

Thanks, @mesnilgr. So, how can I get the data?

from is13.

mesnilgr avatar mesnilgr commented on July 3, 2024

I'm now dealing with the university to get it. I don't have it.

from is13.

hadyelsahar avatar hadyelsahar commented on July 3, 2024

@lucas0 , a quick fix for it is to download the ATIS dataset yourself by updating the data/load.py file methods as follows :

  • update load function to download the ATIS dataset from this url instead
  • update atisfull to load the pickle file instead of the zip file
  • update atisfold method to load the pickle file instead of the zip file and return validation dataset as well instead of train, test datasets only as encoded in atis.pkl file

from is13.

mesnilgr avatar mesnilgr commented on July 3, 2024

@hadyelsahar thanks a lot! I even forgot myself that I already had it moved here. 👍

from is13.

lucas0 avatar lucas0 commented on July 3, 2024

Ok, changed the download URL, and deleted the '.gz' from the atis.pkl files, but I'm still getting

File "/Users/lucaslourenco/Developer/is13-master/data/load.py", line 33, in atisfold
train_set, valid_set, test_set, dicts = cPickle.load(f)
IOError: Not a gzipped file

what method should I use instead of cPickle.load(f)?

def load(filename):
    if not isfile(filename):
    download('https://www.dropbox.com/s/3lxl9jsbw0j7h8a/'+filename)
f = gzip.open(filename,'rb')
return f

def atisfull():
f = load(PREFIX + 'atis.pkl')
train_set, test_set, dicts = cPickle.load(f)
return train_set, test_set, dicts

def atisfold(fold):
assert fold in range(5)
f = load(PREFIX + 'atis.fold'+str(fold)+'.pkl')
train_set, valid_set, test_set, dicts = cPickle.load(f)
return train_set, valid_set, test_set, dicts

thats how load.py is right now. If there are any other changes I should perform, please let me know. Thank you for the alternative @hadyelsahar!

P.S.: I know the issue is closed but since I couldn't apply the modifications suggested, could you help me with them @mesnilgr?

from is13.

tangkk avatar tangkk commented on July 3, 2024

should use f = open(filename,'rb') instead of gzip.open

from is13.

tangkk avatar tangkk commented on July 3, 2024

and the conllevel.pl file can be found such as here:
https://www.comp.nus.edu.sg/~kanmy/courses/practicalNLP_2008/packages/conlleval.pl

from is13.

mesnilgr avatar mesnilgr commented on July 3, 2024

@tangkk every should work fine now. thanks for pointing this issue.

from is13.

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.