Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Examples

Rich examples are included to demonstrate the use of Texar. The implementations of cutting-edge models/algorithms also provide references for reproducibility and comparisons.

More examples are continuously added...

Examples by Models/Algorithms

RNN / Seq2seq

Transformer (Self-attention)

  • transformer: Transformer for machine translation
  • bert: Pre-trained BERT model for text representation
  • gpt-2: Pre-trained OpenAI GPT-2 language model
  • xlnet: Pre-trained XLNet language model
  • vae_text: VAE with a transformer decoder for improved language modeling

Variational Autoencoder (VAE)

Classifier / Sequence Prediction

  • bert: Pre-trained BERT model for text representation
  • sentence_classifier: Basic CNN-based sentence classifier
  • xlnet: Pre-trained XLNet model for text classification/regression

Examples by Tasks

Language Modeling

  • gpt-2: Pre-trained OpenAI GPT-2 language model
  • vae_text: VAE language model
  • xlnet: Pre-trained XLNet language model

Machine Translation

Classification

  • bert: Pre-trained BERT model for text representation
  • sentence_classifier: Basic CNN-based sentence classifier
  • xlnet: Pre-trained XLNet model for text classification/regression