Giter VIP home page Giter VIP logo

anea's Introduction

ANEA

The goal of Automatic (Named) Entity Annotation is to create a small annotated dataset for NER extracted from German domain-specific texts.

To cite the related paper, please use

@inproceedings{Zhukova2021a,
  title        = {ANEA: Automated (Named) Entity Annotation for German Domain-Specific Texts},
  author       = {Zhukova, Anastasia and Hamborg, Felix and Gipp, Bela},
  year         = 2021,
  month        = {September, 30th},
  booktitle    = {Proceedings of the 2nd Workshop on Extraction and Evaluation of Knowledge Entities from Scientific Documents (EEKE 2021) co-located with JCDL 2021, Virtual Event},
  publisher    = {CEUR},
  address      = {Illinois, USA},
  doi          = {10.6084/m9.figshare.17185373.v2},
  url          = {http://ceur-ws.org/Vol-3004/paper1.pdf},
  editor       = {Zhang, Chengzhi and Mayr, Philipp and Lu, Wei and Zhang, Yi}
}

Installation and execution

Python 3.8 Required approx. 8Gb of hard memory, 16Gb RAM

Download "numberbatch_voc.txt" from https://drive.google.com/file/d/1Ag3gQUBtmqB-WAGXk67nJwUvMiZ1DdQG/view?usp=sharing and place to

resources/numberbatch

You can either use your own documents stored as a list of strings in a json file, or use a key-word for searching in Wikipedia to get articles to annotate. Place your file into data folder.

Then execute

pip install -r requirements.txt
python -m spacy download de_core_news_sm
run_anea.py

Follow the instructions to choose a folder with your topic to annotate.

anea's People

Stargazers

 avatar  avatar

Watchers

 avatar

anea's Issues

Error: The word vector model is being loaded.

Hi,

I wanted to try the model but an error occurred:

The word vector model is being loaded.
Traceback (most recent call last):
File "run_anea.py", line 141, in
run()
File "run_anea.py", line 124, in run
graph = Graph(noun_terms, topN_terms=topN)
File "/content/ANEA/category_identificator/ANEA_annotator/graph/graph.py", line 35, in init
self._domain_types_identif()
File "/content/ANEA/category_identificator/ANEA_annotator/graph/graph.py", line 247, in _domain_types_identif
self.model = get_model()
File "/content/ANEA/utils/wordvectors.py", line 39, in get_model
model = WordEmbeddings()
File "/content/ANEA/utils/wordvectors.py", line 17, in init
self._model = load_facebook_model(wordvectors[we_name])
File "/usr/local/lib/python3.7/dist-packages/gensim/models/fasttext.py", line 1142, in load_facebook_model
return _load_fasttext_format(path, encoding=encoding, full_model=True)
File "/usr/local/lib/python3.7/dist-packages/gensim/models/fasttext.py", line 1222, in _load_fasttext_format
m = gensim.models._fasttext_bin.load(fin, encoding=encoding, full_model=full_model)
File "/usr/local/lib/python3.7/dist-packages/gensim/models/_fasttext_bin.py", line 341, in load
raw_vocab, vocab_size, nwords, ntokens = _load_vocab(fin, new_format, encoding=encoding)
File "/usr/local/lib/python3.7/dist-packages/gensim/models/_fasttext_bin.py", line 194, in _load_vocab
raise NotImplementedError("Supervised fastText models are not supported")
NotImplementedError: Supervised fastText models are not supported

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.