Skip to content

Instantly share code, notes, and snippets.

@luw2007
luw2007 / 词性标记.md
Last active June 29, 2024 14:17
词性标记: 包含 ICTPOS3.0词性标记集、ICTCLAS 汉语词性标注集、jieba 字典中出现的词性、simhash 中可以忽略的部分词性

词的分类

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

ICTPOS3.0词性标记集

n 名词

nr 人名

@alyssaq
alyssaq / 1. Install python3.7 & pip3.md
Last active April 11, 2023 02:13
Python3.7 setup on Mac 10.14 (Mojave)
  1. Install Python 3.7.x from https://www.python.org/downloads/ or via homebrew.
$ brew install python3   # Installed at /usr/local/Cellar/python3

Check that python3 has been installed by running it at the terminal:

$ python3
>>> Python 3.7.2
  1. Download get-pip.py from https://bootstrap.pypa.io/get-pip.py and install (this should already be installed if python was installed from python.org or homebrew):
@ntuaha
ntuaha / getDateString.js
Last active September 20, 2021 21:36
Javascript 漂亮日期顯示 YYYYMMDDhhmmss or YYYY-MM-DD hh:mm:ss
'use strict'
function pad(v){
return (v<10)?'0'+v:v
}
function getDateString(d){
var year = d.getFullYear();
var month = pad(d.getMonth()+1);
var day = pad(d.getDate());
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
頻道 日期 影片ID 標題 影片長度 觀看人數 網址
ctitv 20190328 45SVf9Z-0Z0 共享經濟夯! 電動機車推自動租賃服務 60 105 https://youtu.be/45SVf9Z-0Z0
ctitv 20190328 ZSLTfNudzP0 【氣象】中午30度以上 明天北、東部轉濕涼 132 114 https://youtu.be/ZSLTfNudzP0
ctitv 20190328 986kXkhs7NA 每逢逆風就出這招? 盤點民進黨撕報 關台史 134 1256 https://youtu.be/986kXkhs7NA
ctitv 20190328 VtSVKCBfnGc 韓國瑜返小港機場 逾200警力層層維安 93 616 https://youtu.be/VtSVKCBfnGc
ctitv 20190328 Bc0PmUtXpts 「這是送給孫中山的鐘」 古董商誆女75萬 101 186 https://youtu.be/Bc0PmUtXpts
ctitv 20190328 C1bGM641TgY 韓市長長頭髮! 「禿子」創意造型盆栽超夯 91 760 https://youtu.be/C1bGM641TgY
ctitv 20190328 UEczPVajLI8 「鳳凰雲」遭NCC重罰40萬元 那這些新聞呢? 135 486 https://youtu.be/UEczPVajLI8
ctitv 20190328 6RNEV8CcPFU 戴「有色眼鏡」罰中天?! 名嘴轟NCC:東廠走狗 109 608 https://youtu.be/6RNEV8CcPFU
ctitv 20190328 aVp7R9Y1_yI 赴NCC陳述 媒體主管被問:你哪個學校畢業的 121 940 https://youtu.be/aVp7R9Y1_yI
@frieadgood
frieadgood / fugle-realtime-api.py
Created June 25, 2019 09:21
Fugle realtime API demo code(#2884)
import websocket
def on_message(ws, message):
print(message)
def on_error(ws, error):
print(error)
def on_close(ws):