HazyResearch / bootleg

Self-Supervision for Named Entity Disambiguation at the Tail
http://hazyresearch.stanford.edu/bootleg
Apache License 2.0
214 stars 27 forks source link

Installation guide is insufficient #118

Open ByUnal opened 1 year ago

ByUnal commented 1 year ago

I tried to work Google Colab and followed instruction in installation guide. It gave me Module Not Found Error for emmental and huggingface-hub. I installed them via pip. However, It threw me a new error:

---------------------------------------------------------------------------
ZipImportError                            Traceback (most recent call last)
[<ipython-input-7-2e0c8f4f74b8>](https://localhost:8080/#) in <cell line: 1>()
----> 1 from bootleg.end2end.bootleg_annotator import BootlegAnnotator
      2 ann = BootlegAnnotator()
      3 ann.label_mentions("How many people are in Lincoln")["titles"]

1 frames
[/usr/local/lib/python3.10/dist-packages/bootleg-1.1.1.dev0-py3.10.egg/bootleg/dataset.py](https://localhost:8080/#) in <module>
     18 
     19 from bootleg import log_rank_0_debug, log_rank_0_info
---> 20 from bootleg.layers.alias_to_ent_encoder import AliasEntityTable
     21 from bootleg.symbols.constants import ANCHOR_KEY, PAD_ID, STOP_WORDS
     22 from bootleg.symbols.entity_symbols import EntitySymbols

<frozen zipimport> in get_code(self, fullname)

<frozen zipimport> in _get_module_code(self, fullname)

<frozen zipimport> in _get_data(archive, toc_entry)

ZipImportError: bad local file header: '/usr/local/lib/python3.10/dist-packages/bootleg-1.1.1.dev0-py3.10.egg'

Can you fix the repo and guideline ? maybe adding requirements.txt would be useful.