Skip to content

Instantly share code, notes, and snippets.

View MasazI's full-sized avatar

Masahiro Imai MasazI

View GitHub Profile
@MasazI
MasazI / sample of under fit model
Created October 20, 2015 07:56
rnn sample result0 - generate model
wpaAuduBfrfarwowoffS'warffl
o-carAdwf
fySwyaayAr.r
prYahraprrhBycfvAfrffyKfhcyroBfwyrrfylpAfBfrAfwdwiqYrfwY-Bp.fhral-rw
odrfvpomhrhAr.
aruSuffhpraABvhphrSAYrrrooar
.oAraRprhfyryrkoraryK,prhyrAwo.forfAroGBvvrwwfrBrB.SrfgwarpTfrwIf..rwhfrNulrBwrKro
rBBa
frfwraBarYrr.rhIShLflfvr'AArarhrrBlfwdrayBff?a'pwrpRrrofArWyvd.Bffhfr'vfa
@MasazI
MasazI / word tagging sample in atis.
Created October 20, 2015 07:35
rnn sample result2 - word tagging
flights O O
from O O
san B-fromloc.city_name B-fromloc.city_name
diego I-fromloc.city_name I-fromloc.city_name
to O O
seattle B-toloc.city_name B-toloc.city_name
i O O
would O O
like O O
@MasazI
MasazI / Title: The Superman!
Created October 20, 2015 07:33
rnn sample result1 - generate model
The Superman!
ANGELO:
What us well, man
And weep my heart whesteed to beon,
To take answer a man's repabely, we can now,
Refect deible pluptory advised selder, you
come my patient's mildless of the injurate ardon,
I'll march her our joubt: friend, father! thy good
you kings! woe everies as if this?
@MasazI
MasazI / vimrc
Created October 14, 2015 09:00
python vim neobundle
" インタープリターの実行
autocmd BufNewFile,BufRead *.rb nnoremap <C-e> :!ruby %
autocmd BufNewFile,BufRead *.py nnoremap <C-e> :!python %
autocmd BufNewFile,BufRead *.pl nnoremap <C-e> :!perl %
" 表示のカスタマイズ
set number "行番号を表示する
set title "編集中のファイル名を表示
set showmatch "括弧入力時の対応する括弧を表示
@MasazI
MasazI / list_install.sh
Created August 3, 2015 00:12
lisp install
$ brew intall clisp
$ clisp [~]
i i i i i i i ooooo o ooooooo ooooo ooooo
I I I I I I I 8 8 8 8 8 o 8 8
I \ `+' / I 8 8 8 8 8 8
\ `-+-' / 8 8 8 ooooo 8oooo
`-__|__-' 8 8 8 8 8
| 8 o 8 8 o 8 8
------+------ ooooo 8oooooo ooo8ooo ooooo 8
@MasazI
MasazI / generate_rand.cpp
Created July 31, 2015 07:36
c++ generate rand
std::random_device rnd; // 非決定的な乱数生成器を生成
std::mt19937 mt(rnd());
std::uniform_int_distribution<> rand200to512(100, 512);
int preprocess_type = rand200to512(mt) % 512; // intにしたい場合
@MasazI
MasazI / argumentation_part.cpp
Created July 31, 2015 06:58
argumentation part
char* db_file_list_path = argv[2];
char* output_dir = argv[3];
vector<string> file_list;
// trainリストのロード
try {
ifstream ifs;
OpenFile(ifs, db_file_list_path);
string readline;
@MasazI
MasazI / multiplication.cpp
Last active August 29, 2015 14:23
アルゴリズム プログラム 積
//
// multiplication.cpp
// CplusplusPractice
//
// Created by masai on 2015/06/27.
// Copyright (c) 2015年 masai. All rights reserved.
//
#include <iostream>
@MasazI
MasazI / playbook.yml
Created June 21, 2015 03:28
playbook.yml
---
- hosts: all
tasks:
- name: install latest docker
shell: curl -sSL https://get.docker.com/ubuntu/ | sudo sh
- name: add vagrant user to docker group
command: gpasswd -a vagrant docker
sudo: yes
@MasazI
MasazI / vagrant_provision.sh
Created June 21, 2015 03:21
vagrant provision
#vagrant provision [~/vagrant/ubunt1404]
==> default: Running provisioner: ansible...
PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o ControlMaster=auto -o ControlPersist=60s' ansible-playbook --private-key=/Users/masai/vagrant/ubunt1404/.vagrant/machines/default/virtualbox/private_key --user=vagrant --connection=ssh --limit='default' --inventory-file=/Users/masai/vagrant/ubunt1404/.vagrant/provisioners/ansible/inventory playbook.yml
PLAY [all] ********************************************************************
GATHERING FACTS ***************************************************************
ok: [default]
TASK: [install latest docker] *************************************************