A personal collection of reusable code snippets in notebooks for machine learning.

Each notebook contain minimal code demonstrating usage of a library on a dummy dataset.

External Notebooks which are not written by me are marked with *.

Goal Library Colab
Commonsense Inference event2mind Open In Colab
Constituency Parsing benepar Open In Colab
  benepar in Spacy Open In Colab
  Custom CFG in NLTK Open In Colab
Custom Word Vector fasttext Open In Colab
  gensim Open In Colab
Emoji Prediction emojicloud Open In Colab
  huggingface Open In Colab
Evaluation McNemar’s test Open In Colab
Experiment Management wandb* Open In Colab
Fuzzy Matching jellyfish Open In Colab
  rapidfuzz Open In Colab
Hyperparameter optimization wandb* Open In Colab
Inter-rater Agreement Metrics Open In Colab
Image Classification efficientnet Open In Colab
Keyword Extraction pytextrank Open In Colab
  pyate Open In Colab
  rake Open In Colab
  textacy Open In Colab
Language Modeling huggingface* Open In Colab
Language Model Scoring lm_scorer Open In Colab
  DialogRPT Open In Colab
  GPT-2 LM score Open In Colab
Machine Translation easynmt Open In Colab
Multilabel Classification scikit-multilearn Open In Colab
Multimodal Search sentence-transformers(CLIP) Open In Colab
Multitask Learning Run T5 for 7 tasks Open In Colab
NER flair Open In Colab
  huggingface* Open In Colab
  spacy Open In Colab
  spacy rule-based Open In Colab
Next Sentence Prediction huggingface Open In Colab
Open-domain Chatbot huggingface Open In Colab
Paraphrase Generation Question Paraphrasing (huggingface) Open In Colab
Pytorch Serialize model in package format Open In Colab
Question Answering huggingface* Open In Colab
Question Generation doc2query Open In Colab
Record Deduplication mix Open In Colab
Sentence Embeddings DECLUTR in huggingface Open In Colab
  Quantize sentence-transformers Open In Colab
Sentiment Classification flair Open In Colab
  vader sentiment(nltk) Open In Colab
  finetune deepmoji Open In Colab
  xlm-t Open In Colab
Semantic Role Labeling allennlp Open In Colab
Semantic Search annoy Open In Colab
  faiss Open In Colab
  sentence-transformers Open In Colab
  txtai Open In Colab
Spelling Correction hunspell, jamspell, textblob Open In Colab
Synonyms spacy Open In Colab
Topic Modeling gensim(LDA) Open In Colab
Treemap Chart squarify Open In Colab
Text Classification huggingface* Open In Colab
  Huggingface Trainer Open In Colab
  spacy Open In Colab
  fastai(ULMFIT) Open In Colab
  fasttext(automl) Open In Colab
  universal sentence encoder + keras Open In Colab
Text Clustering hdbscan-umap Open In Colab
Text Generation markovify Open In Colab
  GPT-2 with simpletransformers Open In Colab
Text Preprocessing contractions+ftfy+emoji Open In Colab
Verb Conjugation nodebox-linguistics Open In Colab
Visualization word sentiment in sentence Open In Colab
  wordcloud Open In Colab
  stem and leaf plot Open In Colab
Weak Supervision snorkel* Open In Colab
Zero-shot classification huggingface* Open In Colab