Chronogram
Diachronic Word Embedding Model based on Word2vec Skip-gram with Chebyshev approximation
Install / Use
/learn @bab2min/ChronogramREADME
Chrono-gram
.. image:: https://badge.fury.io/py/chronogram.svg :target: https://pypi.python.org/pypi/chronogram
Chrono-gram is a diachronic word embedding model based on SGNS(word2vec Skip-gram with Negative Sampling) with Chebyshev approximation.
Getting Started
- Install using pip
.. code::
$ pip install chronogram
C++11 or later requires a compilable compiler for installation on Linux or macOS.
- Compile from sources
Download this repository and run commands following:
.. code::
$ python setup.py build
Eigen 3.0 or later(http://eigen.tuxfamily.org/index.php?title=Main_Page) is needed to compile.
Python API
Here is a brief sample code. https://github.com/bab2min/chronogram/blob/master/example.py
Demo
Text Dating & Finding similar words using Chrono-gram
https://lab.bab2min.pe.kr/chronogram
