GitHub - andreabac3/NLP-Named-Entity-Recognition: Named Entity Recognition with 92.5% of F1-Score, developed in Pytorch using PoS embeddings, Word2Vec | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

andreabac3/NLP-Named-Entity-Recognition

Repository files navigation

Named Entity Recognition

The experiments on NER field let me to build the following model. The model made use of two input, one the PoS embeddings (calculated starting from the SpaCy tool) and the Word embeddings (Word2Vec 300d from Google research) I also tested the model using the Conditional Random Field, as shown in the table result below, I got a more higher score without it when I started using the PoS embeddings.

ner diagram

Check the Report and the Slide Presentation for more information.

Results

Model Dev F1 (%) Test F1 (%)
Word emb (100d) + BiLSTM 78.02 78.73
Word2Vec + BiLSTM 80.25 81.04
Word2Vec + BiLSTM + CRF 88.12 89.76
Pos Emb + W2v + CRF 92.11 92.37
Pos Emb + W2v 92.20 92.66

Run

test.sh is a simple bash script. To run it:

conda create -n nlp2020-hw1 python=3.7
conda activate nlp2020-hw1
pip install -r requirements.txt
bash test.sh data/dev.tsv

Actually, you can replace data/dev.tsv to point to a different file, as far as the target file has the same format.

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.