In this workshop, we would learn how to automatically style ( bold , Italics, etc. ) a word according to context.
We learn styling from html files automatically and apply them to raw text.
This project is used mainly to demonstrate deep-learning implementation of named-entity-recognition (NER) models.
#####Note: in case you are not using Colab
- Make sure Python3 is installed.
- You can create you virtual environment (recommended) using
python3 -m virtualenv ner_ws
- To activate your virtual env, run:
source ner_ws/bin/activate
- Now install all of the requirements:
pip3 install -r requirements.txt
- Run
style_extract.py
to generate training files fromhtml
. - Put the
.zip
file in thedata/
folder. - Run
style_learn.py
to train an NER model. - Run
server.py
to evaluate your model in the browser.
For more details, contact me at goren.ml .