Comments (12)
Thanks! I just pushed a small change to setup.py on the master branch that fixed it for me. Let me know if you still have issues but try to pull and reinstall.
from bootleg.
Hello,
Thanks for bringing this up. Did you see any errors with the setup.py command? Perhaps something wasn't installed correctly which prevented the rest of the commands from going through? Any log dump will be great for me to start debuggin.
from bootleg.
Hi @lorr1,
The errors I got with the setup.py command is:
...
Installed /anaconda/envs/bootleg2/lib/python3.8/site-packages/threadpoolctl-3.0.0-py3.8.egg
Searching for joblib>=0.11
Reading https://pypi.org/simple/joblib/
Downloading https://files.pythonhosted.org/packages/3e/d5/0163eb0cfa0b673aa4fe1cd3ea9d8a81ea0f32e50807b0c295871e4aab2e/joblib-1.1.0-py2.py3-none-any.whl#sha256=f21f109b3c7ff9d95f8387f752d0d9c34a02aa2f7060c2135f465da0e5160ff6
Best match: joblib 1.1.0
Processing joblib-1.1.0-py2.py3-none-any.whl
Installing joblib-1.1.0-py2.py3-none-any.whl to /anaconda/envs/bootleg2/lib/python3.8/site-packages
Adding joblib 1.1.0 to easy-install.pth file
Installed /anaconda/envs/bootleg2/lib/python3.8/site-packages/joblib-1.1.0-py3.8.egg
error: typing-extensions 4.0.0 is installed but typing-extensions<4.0.0,>=3.7.4 is required by {'rich'}
Thanks!
from bootleg.
Hi @lorr1,
Thanks! I pull the changes and reinstall.
But it shows another error:
error: numpy 1.21.4 is installed but numpy<1.21,>=1.17 is required by {'numba'}
I use python 3.8
from bootleg.
Did you try a new environment first?
from bootleg.
Yes, I've double-checked it and installed it on another machine. Both show the error message:
error: numpy 1.22.0rc1 is installed but numpy<1.21,>=1.17 is required by {'numba'}
from bootleg.
I'm sorry about this. Try again. I just pushed a fix for the numpy requirements
from bootleg.
Hi @lorr1, thanks. I successfully install it.
However, when I run the annotation-on-the-fly-example,
# Load new annotator with our config - notice how it does have to reprep some things
from bootleg.end2end.bootleg_annotator import BootlegAnnotator
# You can also pass `return_embs=True` to get the embeddings
ann = BootlegAnnotator(
config=config_args, device=device, return_embs=False, verbose=False
)
It throws an ImportError:
bootleg/bootleg/tasks/ned_task.py in
3 import torch.nn.functional as F
4 from emmental.scorer import Scorer
----> 5 from emmental.task import Action, EmmentalTask
6 from torch import nn
7 from transformers import AutoModel
ImportError: cannot import name 'Action' from 'emmental.task' (/anaconda/envs/bootleg/lib/python3.8/site-packages/emmental-0.0.9-py3.8.egg/emmental/task.py)
from bootleg.
Hey. That's an emmental version issue. We are using a prerelease version of their master branch. Our setup.py was working w.r.t. this, but now it's not. I've contacted the repo owner to see if we can get the version released soon. In the meantime, if you run this
pip install git+https://[email protected]/senwu/emmental.git@master
After setup.py install, it should give you emmental 1.0.0 dev, which is the right version.
from bootleg.
@lorr1 Thanks. I finally install it successfully after running
pip install git+https://[email protected]/senwu/emmental.git@master
Then when I run
# Load new annotator with our config - notice how it does have to reprep some things
from bootleg.end2end.bootleg_annotator import BootlegAnnotator
# You can also pass `return_embs=True` to get the embeddings
ann = BootlegAnnotator(
config=config_args, device=device, return_embs=False, verbose=False
)
It raises an error message:
/bootleg/symbols/kg_symbols.py in load_from_cache(cls, load_dir, prefix, edit_mode, verbose)
156 first_rel = next(iter(qid2relations[first_qid].keys()))
157 if re.match("^P[0-9]+$", first_rel):
--> 158 raise ValueError(
159 "Your qid2relations dict has a relation as a PID identifier. Please replace "
160 "with human readable strings for training. "
ValueError: Your qid2relations dict has a relation as a PID identifier. Please replace with human readable strings for training. See https://www.wikidata.org/wiki/Wikidata:Database_reports/List_of_properties/all
I checked the qid2relations.json file, it is in the format:
qid2relations['Q31'] ->
{'P1344': ['Q1088364'],
'P1151': ['Q3247091'],
'P1546': ['Q1308013'],
'P5125': ['Q7112200'],
'P38': ['Q4916', 'Q232415'],
'P1792': ['Q7021332'],
'P2852': ['Q1061257', 'Q25648793', 'Q25648794', 'Q25648798'],
'P2853': ['Q1378312', 'Q2335536'],
'P2633': ['Q1115035'],
'P1313': ['Q213107'],
'P417': ['Q128267'],
'P17': ['Q31'],
....
}
from bootleg.
So that's an older version of the entity_db data. What aws link did you use? The latest version of the data should not have PID values in there?
from bootleg.
Hi @lorr1, thanks. The aws link in the readme file works. I used the link pointed in the annotation-on-the-fly which may be outdated.
from bootleg.
Related Issues (20)
- Maybe a bug in 'bootleg_annotator.py' HOT 1
- Consider to Benchmark Bootleg? HOT 2
- Published PyPI module is out of date HOT 2
- Is there any way to replace the current NER ? HOT 5
- Annotations using entity_emb_file parameter are fast but not matching the accuracy level HOT 1
- Entity embedding training is not using GPU on Google Colab Pro+ HOT 1
- Do you update the knowledge graph periodically ? HOT 3
- Batch processing on label_mentions is not working HOT 1
- Error in the end2end module
- Installation guide is insufficient
- Details about the development set HOT 2
- Static embeddings are similar HOT 6
- AssertionError: After eval, some sentences had left over mentions {0: {0}} HOT 2
- Languages Supported HOT 3
- Version comprison between bootleg 1.0.0 and bootleg 1.1.0 HOT 4
- The Embeddings can not be download ! HOT 1
- bug of example HOT 3
- Answer gets significantly wrong when input is long HOT 2
- No such file HOT 1
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 bootleg.