/tweets

Primary LanguageJavaScript

Visualization of Topic Transitions on Twitter

Prerequirements

$ pip install -r requirements.txt
$ npm ci

Data Preparation

Twitter corpus

$ python3 scripts/create_twitter_corpus.py -o data/corpus/twitter_corvid19.ndjson --chunk=400 --window=3 path/to/twitter/data/*.ndjson

Learning Doc2Vec model

$ python3 scripts/d2v_learn.py --model data/twitter.model --vocabulary-output data/vocabulary.csv --vector-size 300 data/corpus/twitter_corvid19.ndjson

generate json file

$ python3 scripts/create_json.py -m ./data/twitter.model -o public/data.json --corpus=data/corpus/twitter_corvid19.ndjson

Development

$ npm start