Skip to content

POS tagging with PyTorch: GloVe embeddings + GRU for classifying tokens (noun, verb, pronoun, adjective, etc.).

Notifications You must be signed in to change notification settings

ak3zaidan/NLP-Tagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NLP-POS-Tagger

Glove Embedding + GRU + Torch. Takes an input string and classifies each token(word) into tags in a sentence, such as Noun, Verb, Pronoun, Adjectives and so on.

Model is already pretrained and stored inside of model.pt Vocab is already built and stored in vocab.pkl

  • To run simple call "python tag.py"
  • Enter a sentence and press enter
  • The model will automcatically tag each token and print the result.

Examples

Screenshot 2025-04-20 at 1 42 49 PM Screenshot 2025-04-20 at 1 43 01 PM

Training

  • Best success with Glove embeddings
  • Achieved higher train acc and val than base
Screenshot 2025-04-20 at 1 44 53 PM

About

POS tagging with PyTorch: GloVe embeddings + GRU for classifying tokens (noun, verb, pronoun, adjective, etc.).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages