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 model for text representation

Classifier / Sequence Prediction

  • bert: Pre-trained BERT model for text representation
  • xlnet: Pre-trained XLNet model for text representation

Examples by Tasks

Language Modeling

  • gpt-2: Pre-trained OpenAI GPT-2 language model

Machine Translation

Classification

  • bert: Pre-trained BERT model for text representation
  • xlnet: Pre-trained XLNet model for text representation