Giter Club home page Giter Club logo

ner_lstm's Introduction

ner_LSTM

Named Entity Recognition using LSTM/CRF in Keras This is a rather simple and nowadays old-school implementation of NER using a BiLST and an optional CRF layer. The project uses rather outdated packages, maybe it works with recent packages as well?

prerequisite

Download embeddings from https://cloud.devmount.de/d2bc5672c523b086/ Install requirements.

This works for Python 3.8

conda create -n ner python=3.8 conda activate ner

conda install tensorflow==2.4.3 conda install scikit-learn==0.23.2 conda install gensim==3.8.3 conda install xopen==0.9.0 conda install numpy==1.19.5 pip install tensorflow_addons==0.11.2 pip install wandb==0.12.2

This works Python 3.9

conda create -n ner2 python=3.9 conda activate ner2

conda install tensorflow-gpu==2.6.2 conda install scikit-learn==0.23.2 conda install gensim conda install xopen==0.9.0 pip install tensorflow_addons pip install wandb

##Train your model using trainGenerator.py Please use this to train a new model and not train.py! It is much faster than the train.py und leads to better results

Evaluate your model test.py

Test a NER model dataset.

testGenerator.py

Tests a model on the dataset using a generator; but there seems to be some error in the implementation...

ner_lstm's People

Contributors

erechtheus avatar

Watchers

 avatar  avatar

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.