Word Embedding/Word Vector

One-Hot vs. Word Embedding

https://jjallaire.github.io/deep-learning-with-r-notebooks/notebooks/6.1-using-word-embeddings.nb.html

Vector for a Sentence from Word Vectors

https://stackoverflow.com/questions/29760935/how-to-get-vector-for-a-sentence-from-the-word2vec-of-tokens-in-sentence

 

R

Train a word vector using documents:

https://cran.r-project.org/web/packages/text2vec/vignettes/glove.html

 

Python

package gensim

https://textminingonline.com/getting-started-with-word2vec-and-glove-in-python

Visualize Word Vector using t-SNE

 

Classification

Most comprehensive:

http://nadbordrozd.github.io/blog/2016/05/20/text-classification-with-word2vec/

Doc2Vec:

https://www.linkedin.com/pulse/short-introduction-using-word2vec-text-classification-mike/

Naive Bayes Text Classifiers:

Machine Learning Tutorial: The Naive Bayes Text Classifier

https://www.quora.com/How-does-multinomial-Naive-Bayes-work

https://towardsdatascience.com/multinomial-naive-bayes-classifier-for-text-analysis-python-8dd6825ece67

Naive Bayes for Text Classification with Unbalanced Classes

Click to access FrankAndBouckaertPKDD06new.pdf

 

Word Embedding/Word Vector

Install CNTK on Windows

https://github.com/Microsoft/CNTK/wiki/Setup-CNTK-Python-Tools-For-Windows

https://www.microsoft.com/en-us/research/product/cognitive-toolkit/model-gallery/

  • To create a new conda environment (e.g. cntk-py34) and activate it, run the following commands from the Windows command shell:
    C:\local\Anaconda3-4.1.1-Windows-x86_64>conda env create --file D:\cntk\cntk\Scripts\install\windows\conda-windows-cntk-py34-environment.yml --name cntk-py34
    activate C:\local\Anaconda3-4.1.1-Windows-x86_64\envs\cntk-py34

Q & A:

Q: Where is vsvarsall.bat?

A: http://stackoverflow.com/questions/33323172/vcvarsall-bat-needed-for-python-to-compile-missing-from-visual-studio-2015-v-1

Q: ImportError: No module named ‘past’

A: https://github.com/Microsoft/CNTK/issues/1149

Q: ImportError: No module named ‘skimage’

A: https://github.com/dmlc/mxnet/issues/1161

Q: ImportError: No module named ‘easydict’

A: https://groups.google.com/forum/#!topic/caffe-users/k8mSzFypJW8

Q: from .utils3_win64.cython_bbox import bbox_overlaps

ImportError: DLL load failed: The specified module could not be found.

A: http://stackoverflow.com/questions/41774223/python-dll-load-failed-the-specified-module-could-not-be-found-on-microsoft-fas

Q: ImportError: No module named ‘cv2’

A: Install OpenCV (http://opencv.org/):

http://docs.opencv.org/3.0-last-rst/doc/tutorials/introduction/windows_install/windows_install.html#windowssetpathandenviromentvariable

For Anaconda:

  1. activate cntk-py34
  2. http://stackoverflow.com/questions/24400935/how-could-we-install-opencv-on-anaconda
Install CNTK on Windows