Skip to content

Instantly share code, notes, and snippets.

View zhhezhhe's full-sized avatar

HeZheng zhhezhhe

View GitHub Profile
@zhhezhhe
zhhezhhe / threaded_download.py
Created December 31, 2019 06:38 — forked from chandlerprall/threaded_download.py
Small Python multi-threaded file downloader
import urllib2
import threading
from Queue import Queue
import sys, os, re
class ThreadedDownload(object):
REGEX = {
'hostname_strip':re.compile('.*\..*?/', re.I)
}
@zhhezhhe
zhhezhhe / 词性标记.md
Created July 13, 2017 08:45 — forked from luw2007/词性标记.md
词性标记: 包含 ICTPOS3.0词性标记集、ICTCLAS 汉语词性标注集、jieba 字典中出现的词性、simhash 中可以忽略的部分词性

词的分类

  • 实词:名词、动词、形容词、状态词、区别词、数词、量词、代词
  • 虚词:副词、介词、连词、助词、拟声词、叹词。

ICTPOS3.0词性标记集

n 名词

nr 人名

@zhhezhhe
zhhezhhe / # opencv3 - 2017-01-12_19-59-03.txt
Created April 2, 2017 12:40 — forked from guiyang882/# opencv3 - 2017-01-12_19-59-03.txt
opencv3 (homebrew/science/opencv3) on macOS 10.12.2 - Homebrew build logs
Homebrew build logs for homebrew/science/opencv3 on macOS 10.12.2
Build date: 2017-01-12 19:59:03
@zhhezhhe
zhhezhhe / min-char-rnn.py
Created March 30, 2016 01:51 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@zhhezhhe
zhhezhhe / digits.py
Created March 16, 2016 10:33 — forked from ilblackdragon/digits.py
Scikit Flow - Digits example
import random
from sklearn import datasets, cross_validation, metrics
import tensorflow as tf
import skflow
random.seed(42)
# Load dataset and split it into train / test subsets.