Giter Site home page Giter Site logo

Comments (6)

Akirtn avatar Akirtn commented on August 23, 2024 79

problem solved by this issue

pip install overrides==3.1.0

from specter.

pjuangph avatar pjuangph commented on August 23, 2024

Are you guys looking into this? This bug is preventing me from reproducing your work.

from specter.

armancohan avatar armancohan commented on August 23, 2024

We haven't seen this problem. Are you using the same AllenNLP version as in the requirements?
Also does this happen for a specific data point or it can't process anything?
Can you send us exact commands for reproducing the error?

from specter.

pjuangph avatar pjuangph commented on August 23, 2024

I followed the instructions on this page https://github.com/allenai/specter I started in the Download section, ran the conda create pip install then setup.py install. This all worked but when I went to the bottom part where you say to run embed.py, that part fails. I then debugged what embed was calling and that pointed me to this error.

Note I am using anaconda with WSL2.

from specter.

ringkasannet avatar ringkasannet commented on August 23, 2024

Hi guys, i am facing the same problem by following the instructions provided including the setups and requirements. i am trying to train using the original train.pkl and val.pkl using the following commands:

./scripts/run-exp-simple.sh -c experiment_configs/simple.jsonnet
-s model-output/ --num-epochs 2 --batch-size 4
--train-path data/preprocessed/train.pkl --dev-path data/preprocessed/val.pkl
--num-train-instances 55 --cuda-device 0

and receive:

TypeError: ArrayField.empty_field: return type None is not a <class 'allennlp.data.fields.field.Field'>.

Would highly appreciate any thoughts on this issue. Cheers

from specter.

ringkasannet avatar ringkasannet commented on August 23, 2024

It turns out that there is something wrong with the allennlp installation itself, when i run allennlp on the command line the error shows up. I tried reinstalling the current allennlp version using pip install allennlp but then it shows no module allennlp.run. So i uninstalled allennlp and try reinstalling the requirement with pip and suddenly it works. I dont know how exactly i can replicate the solution but it may give hints to people who are experiencing the same problem.

from specter.

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.