Skip to content

Instantly share code, notes, and snippets.

View ShigekiKarita's full-sized avatar
🌴
I may be slow to respond.

Shigeki Karita ShigekiKarita

🌴
I may be slow to respond.
View GitHub Profile
"""
unofficial Paderborn university's wide residual BLSTM acoustic model.
no warranty at all.
This implementation is raughly based on
http://spandh.dcs.shef.ac.uk/chime_workshop/papers/CHiME_2016_paper_11.pdf
http://spandh.dcs.shef.ac.uk/chime_workshop/presentations/CHiME_2016_Menne_oral.pdf
# w/ BLSTM
python ./chime4.py 9.87s user 2.27s system 104% cpu 11.636 total
@ShigekiKarita
ShigekiKarita / config.py
Created November 27, 2016 18:47
accumulate config of attention-lvcsr
import six
from os.path import basename
import yaml
root = "/home/karita/tool/attention-lvcsr"
cfgs = []
def recursive_update(original, update):
"""
"""
just WIP unable to run
1. TIMIT: https://arxiv.org/pdf/1506.07503v1.pdf
2. WSJ: https://arxiv.org/pdf/1508.04395.pdf (section 4.2 for details)
3. Task-loss-estimation: http://arxiv.org/pdf/1511.06456.pdf
"""
import six
import numpy
"""
just WIP unable to run fully
Referrences
1. TIMIT: https://arxiv.org/pdf/1506.07503v1.pdf
2. WSJ: https://arxiv.org/pdf/1508.04395.pdf (section 4.2 for details)
3. Task-loss-estimation: http://arxiv.org/pdf/1511.06456.pdf
4. source of 2&3: https://github.com/rizar/attention-lvcsr
"""
open Batteries
let zip_string a b =
let of_enum = Text.enum % Text.of_string in
let ea = of_enum a in
let eb = of_enum b in
let append2 x y = Text.append_char x %> Text.append_char y in
let zip_text = Enum.fold2 append2 Text.empty in
zip_text ea eb |> Text.to_string
<spc> 0
<noise> 1
- 2
. 3
' 4
A 5
B 6
C 7
D 8
E 9
@ShigekiKarita
ShigekiKarita / config.mk
Created December 19, 2016 14:43
mxnet config
#-------------------------------------------------------------------------------
# Template configuration for compiling mxnet
#
# If you want to change the configuration, please use the following
# steps. Assume you are on the root directory of mxnet. First copy the this
# file so that any local changes will be ignored by git
#
# $ cp make/config.mk .
#
# Next modify the according entries, and then compile by
#include <future>
#include <thread>
#include <map>
#include <vector>
#include <stdio.h>
const int N = 1 << 20;
__global__ void kernel(float *x, int n)
{
@ShigekiKarita
ShigekiKarita / file0.txt
Last active December 26, 2016 17:38
CUDA8のマルチストリーム/スレッド処理にC++11のfuture/threadを使う ref: http://qiita.com/ShigekiKarita/items/a3891f13f3acc3575c08
$ nvcc ./stream_test.cu -o ./stream_legacy
$ nvvp ./stream_legacy
@ShigekiKarita
ShigekiKarita / opencl_test.dats
Created December 29, 2016 06:56
ATS2 with OpenCL
#include "share/atspre_define.hats"
#include "share/atspre_staload.hats"
(* README
original :
https://github.com/smistad/OpenCL-Getting-Started
compile with CUDA devices:
patscc -o test ./opencl_test.dats -L/usr/local/cuda/lib64 -lOpenCL