Skip to content

Instantly share code, notes, and snippets.

View fpsluozi's full-sized avatar
🎧
Simply vibin'

Yiran Lawrence Luo fpsluozi

🎧
Simply vibin'
View GitHub Profile
@fpsluozi
fpsluozi / gist:d7a7e35b8c1c87881bc74fe0325e5354
Created March 11, 2017 13:31
Distributed LDA Tutorial with Gensim
Distributed LDA Tutorial with gensim by Yiran Luo
Refs: https://radimrehurek.com/gensim/dist_lsi.html https://radimrehurek.com/gensim/distributed.html
Prerequisite
Make sure you have multiple machines in the same network segment, broadcast reachable.
1. Install and setup Pyro on each machine
@fpsluozi
fpsluozi / clf.py
Last active August 1, 2018 18:37
Chinese sentence classification w/ Doc2vec
# Title: Sentence classification w/ Doc2vec
# Author: FPSLuozi @Github
# Last updated: Aug 26, 2016
# License: MIT
import jieba
import numpy as np
import gensim
from gensim.models.doc2vec import *
@fpsluozi
fpsluozi / bilibili-dmstats.md
Last active May 19, 2016 08:07
B站弹幕文本分析计划(暂定)

利用GetDanmuAss分析用户数据

Raw List格式

[(timestamp, text) , ...]

暂定计划

  1. 弹幕密度的柱状图统计
@fpsluozi
fpsluozi / vocabulary.md
Last active October 19, 2015 13:17
学习英语单词

Tentative adj. 试探性的 Unconfirmed, provisional
Redundancy n. 冗余 Extra components for backup in case of failure
Quorum n. 法定人数 Minimum member required
Taxonomy n. 分类学 The study of classification
Impute v. 归因于 Represent something as being done by something else
Quadratic adj. 二次 Quadratic function 二次函数
Transcribe v. 转录, 誊写 To put into written textual form

@fpsluozi
fpsluozi / ASSInWindows
Created April 6, 2015 16:46
如何在Windows压制ASS字幕
s