Skip to content

ULMFiT + Siamese Network for Sentence Vectors

License

Notifications You must be signed in to change notification settings

nstfk/SiameseULMFiT

 
 

Repository files navigation

SiameseULMFiT

ULMFiT + Siamese Network for Sentence Vectors

This an attempt to add an InferSent type Siamese network on top of the Fast.ai ULMFiT archecture.

Running the notebook

  • The fast.ai library must be installed and the fastai folder available in the root folder
  • Download the SNLI corpus and unzip it into the data folder.
  • Download the pretrained wikitext model into the data/aclImdb folder
  • Run the notebooks in order:
  1. ULMFiT_Tokenize
  2. ULMFiT_Pretrain
  3. ULMFiT_Classify

If you want to skip the tokenizing step, download this file and put it into the data section.

About

ULMFiT + Siamese Network for Sentence Vectors

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%