Skip to content

Instantly share code, notes, and snippets.

@yangyaofei
yangyaofei / 111.txt
Last active August 3, 2020 01:11
result.txt
另塞舆球折r番
℧S凉〔鼙h〛缅
(荞〞y危
b+贱补s款竹歉绒士抒'皂烫陨}漭
填5k=邸虎B草
盔⑮谆
犬哭t帐«东`垦t〛咽F棚鹈
仰j
t樱裂/昙坑瘟洛
@yangyaofei
yangyaofei / 词性标记.md
Created February 12, 2019 08:41 — forked from luw2007/词性标记.md
词性标记: 包含 ICTPOS3.0词性标记集、ICTCLAS 汉语词性标注集、jieba 字典中出现的词性、simhash 中可以忽略的部分词性

词的分类

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

ICTPOS3.0词性标记集

n 名词

nr 人名

@yangyaofei
yangyaofei / install.md
Created November 8, 2018 03:08
Install CUDA and Driver
  1. apt-get install nvidia-driver-390
  2. cuda.run --overide
  3. sudo vim /etc/ld.so.conf /usr/local/cuda-9.0/lib64 sudo ldconfig
  4. vim 中文乱码 .vimrc set enc=utf8
wget https://twistedmatrix.com/Releases/Twisted/17.1/Twisted-17.1.0.tar.bz2
tar -jxvf Twisted-17.1.0.tar.bz2
cd Twisted-17.1.0
python3 setup.py install
@yangyaofei
yangyaofei / install.sh
Last active April 4, 2018 00:13
Install TensorFlow in Tesla GPU Ubuntu 16.04
apt-get install python3 python3-pip
pip3 install keras tensorflow-gpu tqdm h5py
Driver wget http://cn.download.nvidia.com/tesla/384.125/nvidia-diag-driver-local-repo-ubuntu1604-384.125_1.0-1_amd64.deb
i) `dpkg -i nvidia-diag-driver-local-repo-ubuntu1604-384.125_1.0-1_amd64.deb’ for Ubuntu
ii) `apt-get update`
iii) `apt-get install cuda-drivers`
iv) `reboot`
CUDA 9.0
http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
`sudo dpkg -i cuda-repo-ubuntu1604_9.0.176-1_amd64.deb`
@yangyaofei
yangyaofei / rm_mysql.md
Created March 6, 2018 07:56 — forked from vitorbritto/rm_mysql.md
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

brew remove mysql

#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import requests
import urllib2
import sys
reload(sys)
sys.setdefaultencoding('utf8')
def getHtml(url):