Comments (6)
problem solved by this issue
pip install overrides==3.1.0
from specter.
Are you guys looking into this? This bug is preventing me from reproducing your work.
from specter.
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.
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.
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.
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)
- Nan loss in training specter with specter/scripts/pytorch_lightning_training_script/train.py
- json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1) HOT 1
- Training Data Set for Spectre HOT 5
- Error when training: "None" is not a <Class 'allennlp.data.fields.field.Field'> HOT 1
- How to change the sequence length? HOT 1
- How to deal with this bug?
- How to train my own model with other checkpoints?
- Use custom dataset without hard negatives
- Code does not go to completion when `njobs` is greater than 1 HOT 1
- Positive paper sampling HOT 2
- Matching articles from SPECTER's dataset with S2ORC IDs HOT 1
- Using trained model: which tokenizer?
- where can I get the dataset used in the paper? HOT 1
- ERROR: Allennlp params.py ValueError: Cannot convert variable to bool: all
- Does the model use Bert's vocabulary or scibert's vocabulary, or do they all use it? Where is it used HOT 1
- How to create the vocab files? (tokens.txt, non_padded_namespaces.txt, venue.txt) HOT 5
- RoBERTa instead of BERT: what changes in SPECTER scripts?
- concat_title_abstract must be True in scripts/pytorch_lightning_training_script/train.py#L73 HOT 1
- Format specified for json file containing title and abstract is wrong.
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 specter.