GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gensim/tutorials.md at develop · charlessutton/gensim

Expand file tree

/

tutorials.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
100 lines (73 loc) · 7.33 KB
/

tutorials.md

Copy path

File metadata and controls

100 lines (73 loc) · 7.33 KB
Raw
Copy raw file
Download raw file
Edit and raw actions

###Tutorials

#####Quick-start

  • Getting Started with gensim

#####Text to Vectors

  • We first need to transform text to vectors
  • String to vectors tutorial
    • Create a dictionary first that maps words to ids
    • Transform the text into vectors through dictionary.doc2bow(texts)
  • Corpus streaming tutorial (For very large corpuses)

#####Models and Transformation

  • Models (e.g. LsiModel, Word2Vec) are built / trained from a corpus
  • Transformation interface tutorial

#####TF-IDF (Model)

  • Docs, Source
  • tf-idf scores are normalized (sum of squares of scores = 1)

#####Phrases (Model)

  • Detects words that belong in a phrase, useful for models like Word2Vec ("new", "york" -> "new york")
  • Docs, Source (uses bigram detectors underneath)
  • Phrases example on How I Met Your Mother

####Topic Modeling

#####LSI (Model)

  • Docs, Source (very standard LSI implementation)
  • How to interpret negative LSI values
  • Random Projection (used as an option to speed up LSI)

#####LDA (Model)

  • Docs, Source
  • Example with Android issue reports, Another example, Another example

#####Topic Model Tuning

  • Colouring words by topic in a document, print words in a topics
  • Topic Coherence, a metric that correlates that human judgement on topic quality.
  • [Compare topics and documents using Jaccard, Kullback-Leibler and Hellinger similarities] (https://github.com/RaRe-Technologies/gensim/blob/develop/docs/notebooks/similarity_metrics.ipynb)
  • America's Next Topic Model slides -- How to choose your next topic model, presented at Pydata London 5 July 2016 by Lev Konstantinovsky

#####Query Similarities

  • Tool to get the most similar documents for LDA, LSI
  • Similarity queries tutorial

#####Dynamic Topic Modeling

  • Model evolution of topics through time
  • Easy intro to DTM. Evolution of Voldemort topic through the 7 Harry Potter books.
  • Dynamic Topic Modeling and Dynamic Influence Model Tutorial

####Word Embeddings

#####Word2Vec (Model)

  • Docs, Source (very simple interface)
  • Simple word2vec tutorial (examples of most_similar, similarity, doesnt_match)

#####Doc2Vec (Model)

  • Doc2vec Quick Start on Lee Corpus
  • Docs, Source (Docs are not very good)
  • Doc2Vec requires a non-standard corpus (need sentiment label for each document)
  • Great illustration of corpus preparation, Code (Alternative, Alternative 2)
  • Doc2Vec on customer review (example)
  • Doc2vec to predict IMDB review star rating. Reproducing the Google paper

#####Similarity Queries

  • Similarity queries using Annoy with word2vec and doc2vec

#####Word Movers Distance

  • Tool to get the most similar documents for word2vec
  • Word Movers Distance for Yelp Reviews tutorial

#####Deep Inverse Regression

  • Document Classification using Bayesian Inversion and several word2vec models(one for each class)
  • Deep Inverse Regression with Yelp Reviews

####Other techniques

#####Summarization

  • Extract most important keywords and sentences from the text
  • Tutorial on TextRank summarisation

#####Overviews

  • Tutorial showing API for document classification with various techniques: TF-IDF, word2vec averaging, Deep IR, Word Movers Distance and doc2vec
  • Movie plots by genre

###Videos

  • Radim Řehůřek - Faster than Google? Optimization lessons in Python.
  • MLMU.cz - Radim Řehůřek - Word2vec & friends (7.1.2015)
  • Making an Impact with NLP -- Pycon 2016 Tutorial by Hobsons Lane
  • NLP with NLTK and Gensim -- Pycon 2016 Tutorial by Tony Ojeda, Benjamin Bengfort, Laura Lorenz from District Data Labs
  • Word Embeddings for Fun and Profit -- Talk at PyData London 2016 talk by Lev Konstantinovskiy. See accompanying repo

#Credits Based on wonderful resource by Jason Xie.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.