Skip to content

Encoder-only transformer for POS tagging implemented from scratch in MATLAB.

Notifications You must be signed in to change notification settings

emreonal11/Transformer-encoder-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Part of Speech Tagging Transformer from Scratch

This repo contains an implementation of an encoder-only transformer model for part-of-speech tagging. We have implemented this from scratch in both Matlab and Pytorch (Pytorch version to be added soon). The most important part of the code is the implementation of the transformer backpropagation from scratch.

Dataset

To run POS taggin on the conll 2003 dataset, first download the data:

We use word2vec word embeddings which you can downlaod from here:

Results

Number of Parameters : 202351

Training Accuracy : 93.59%

Testing Accuracy : 89.62%

About

Encoder-only transformer for POS tagging implemented from scratch in MATLAB.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages