Skip to content
Branch: master
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
bert Polish BERT example (#229) Oct 12, 2019
gpt-2 Resolve #217: Change feature type names in `RecordData` (#219) Oct 1, 2019
sentence_classifier Resolve #217: Change feature type names in `RecordData` (#219) Oct 1, 2019
seq2seq_attn Resolve #217: Change feature type names in `RecordData` (#219) Oct 1, 2019
transformer Resolve #217: Change feature type names in `RecordData` (#219) Oct 1, 2019
vae_text Resolve #217: Change feature type names in `RecordData` (#219) Oct 1, 2019
xlnet Resolve #218: Support soft ids as inputs for BERT/GPT2/RoBERTa/XLNet (#… Oct 1, 2019
README.md

README.md

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
You can’t perform that action at this time.