White scenery @showyou, hatena

If you have any comments, you may also send twitter @shsub or @showyou.

Entries from 2008-01-17 to 1 day

昨日の

どうもいろいろ間違ってるっぽいので気にしないほうがいいです。 一応そのまま残しておきますが。

特定の要素で単語を分割

こんなのあったっけ? def splitList(list,split): retListArray = [] tmpList=[] for x in list: tmpList.append(x) if x == split: retListArray.append(tmpList) tmpList = [] retListArray.append(tmpList) return retListArray if __name__ == "__main_…

hama実装

今日はログの各文毎に、単語同士の存在確率を数えてみることにしました。 例えば「今日はいい天気ですね」という文章があった場合、 p(今日andは)++,p(今日andいい)++,・・といった集計をしています。 ただしこの方法だと頻出する文ほど多くなるので、例えば…