This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# | |
# ターミナル内で画像を表示するコマンド | |
# sshで作業しているときに謎の画像ファイルを確認したいけどいろいろメンドイときに便利. | |
# | |
# 仕様: 指定された画像をImagerでpnmに変換してaviewで表示するだけ. | |
# aviewを使用しているのでapt-get install aviewなどでインストールする. | |
# png,jpeg,gif等を読みたい場合にはImagerをインストールする前にlibpng-dev等を入れておく. | |
# | |
# スクリーンショット: http://www.udp.jp/g/10s.png http://www.udp.jp/g/m8.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 面接用 | |
require 'cgi' | |
require 'uri' | |
require 'strscan' | |
class TextStyle | |
def initialize(rules = nil) | |
@rules = Array.new | |
if (rules) | |
add(rules) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 近代デジタルの画像をページ分割するヤツ(page_split) | |
opencvを使う. | |
*/ | |
#if 0 | |
#include <cv.h> | |
#include <highgui.h> | |
#include <math.h> | |
#else | |
#include <opencv/cv.h> | |
#include <opencv/highgui.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'CaboCha' | |
sentence = "太郎はこの本を二郎を見た女性に渡した。" | |
c = CaboCha::Parser.new; | |
tree = c.parse(sentence) | |
chunks = [] | |
(0 ... tree.chunk_size).each do |i| | |
chunk = tree.chunk(i) | |
token = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'CaboCha' | |
module CaboCha | |
class Token | |
def base | |
if (feature_list_size > 6 && feature_list(6) != "*") | |
feature_list(6) | |
else | |
self.to_s | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$KCODE='UTF8' | |
module Zch | |
class TrigramIndex | |
class Record | |
attr_reader :key, :value, :similarity | |
def initialize(key, value, similarity) | |
@key = key | |
@value = value | |
@similarity = similarity | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ああしてはだかで餌食べてる | |
ああして餌食べてる | |
ああ餌食べてる | |
あいにく、餌食べてる | |
あくまでも餌食べてる | |
あくまで餌食べてる | |
あたかも餌食べてる | |
あたふた餌食べてる | |
あたら餌食べてる | |
あっさりして、と餌食べてる |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
あいまいに餌食べてる | |
あかあかと餌食べてる | |
あからさまに餌食べてる | |
あきらかに餌食べてる | |
あきらめるように餌食べてる | |
あこがれるように餌食べてる | |
あざやかに餌食べてる | |
あたふたと餌食べてる | |
あたりまえに餌食べてる | |
あっさりと餌食べてる |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
フバい | 19 | 19 | 4678 | 形容詞 | 自立 | * | * | 形容詞・アウオ段 | 基本形 | フバい | フバイ | フバイ | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
フバし | 23 | 23 | 4823 | 形容詞 | 自立 | * | * | 形容詞・アウオ段 | 文語基本形 | フバい | フバシ | フバシ | |
フバから | 27 | 27 | 4682 | 形容詞 | 自立 | * | * | 形容詞・アウオ段 | 未然ヌ接続 | フバい | フバカラ | フバカラ | |
フバかろ | 25 | 25 | 4682 | 形容詞 | 自立 | * | * | 形容詞・アウオ段 | 未然ウ接続 | フバい | フバカロ | フバカロ | |
フバかっ | 33 | 33 | 4682 | 形容詞 | 自立 | * | * | 形容詞・アウオ段 | 連用タ接続 | フバい | フバカッ | フバカッ | |
フバく | 35 | 35 | 4617 | 形容詞 | 自立 | * | * | 形容詞・アウオ段 | 連用テ接続 | フバい | フバク | フバク | |
フバくっ | 35 | 35 | 4682 | 形容詞 | 自立 | * | * | 形容詞・アウオ段 | 連用テ接続 | フバい | フバクッ | フバクッ | |
フバう | 31 | 31 | 4682 | 形容詞 | 自立 | * | * | 形容詞・アウオ段 | 連用ゴザイ接続 | フバい | フバウ | フバー | |
フバぅ | 31 | 31 | 4682 | 形容詞 | 自立 | * | * | 形容詞・アウオ段 | 連用ゴザイ接続 | フバい | フバゥ | フバー | |
フバき | 21 | 21 | 4682 | 形容詞 | 自立 | * | * | 形容詞・アウオ段 | 体言接続 | フバい | フバキ | フバキ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- CaboCha.i 2008-09-14 02:04:08.000000000 +0900 | |
+++ CaboCha_fix_double_free.i 2011-01-13 01:33:14.000000000 +0900 | |
@@ -4,8 +4,6 @@ | |
#include "cabocha.h" | |
%} | |
-%newobject surface; | |
- | |
%exception { | |
try { $action } |