- 日時
2017-07-21
- 作
@voluntas
- バージョン
0.6.0
- URL
突っ込みは Twitter @voluntas まで。
tell application "System Preferences" to activate | |
tell application "System Events" | |
get properties | |
tell application "System Preferences" | |
reveal anchor "output" of pane id "com.apple.preference.sound" | |
end tell | |
tell process "System Preferences" | |
set theRows to every row of table 1 of scroll area 1 of ¬ | |
tab group 1 of window "sound" | |
repeat with aRow in theRows |
2017-07-21
@voluntas
0.6.0
突っ込みは Twitter @voluntas まで。
# LDA collapsed Gibbs sampler implementation in R by isobe | |
bows2corpus <- function(bows) { | |
print("bows2corpus") | |
docs <- list() | |
words <- c() | |
index <- list() | |
last_index <- 0 | |
# encoding: utf-8 | |
from collections import Counter | |
def SAIS(lst, num): | |
l = len(lst) | |
if l<2: return lst+[0] | |
lst = lst + [0] | |
l += 1 | |
res = [None] * l | |
# L-type(t[i] = 0) or S-type(t[i] = 1) | |
# s{i} < s{i+1} --> iはS-type |
perl -pe 's/(?=[ドト])ゥ(?<!ー)//g;s/(?<=[キシチニヒミリィ])イ/ー/g;s/(?<=[ァゥェォ])ィ/イ/g;s/イション/ーション/g;s/ォウ/ォー/g;s/スィ/シー/g;s/ロウ/ロー/g;s/゛//g;s/ウカ/ーカ/g;s/トギャザー/トゥゲザー/g;s/ボキャビュラリー/ボキャブラリー/g;' < bep-eng.dic.txt |
for app in $(heroku apps); do heroku apps:destroy --app $app --confirm $app; done |
#!/usr/bin/python | |
# crf.py (by Graham Neubig) | |
# This script trains conditional random fields (CRFs) | |
# stdin: A corpus of WORD_POS WORD_POS WORD_POS sentences | |
# stdout: Feature vectors for emission and transition properties | |
from collections import defaultdict | |
from math import log, exp | |
import sys |