引越し遍歴パートⅡ 2018年に「上京して10年で引越しを6回した」というブログを書いた。 月日は流れ、あれから6年…さらに2回の引越しをした。ホテル暮らしも含めると3回かもしれない。 前回の記事では主に神奈川〜千葉〜東京の引越し事情を書いた。関東の浅瀬でちゃぷちゃぷ遊んでいたに過…
知らないところからリンクされてるなぁと開いてみると,この前はてなブックマークで無駄に盛り上がっていた*1おっぱい画像ネタだった.ぱっと見,Yahooの検索API使っているだけなのでスルーしてたけど,よくよく考えるとリンク先で指摘しているとおりYahooのAPIって1000件までしか(画像にしろ,Webにしろ)取得できないので8000個の画像を取ってくるのは難しいように思える.ちなみに,この制限はyahoo.comのAPIでも同じ. Kawasaq通信 - FC2 BLOG パスワード認証 検索:画像検索API - Yahoo!デベロッパーネットワーク Yahoo! Search BOSS - YDN PythonのXML操作に使えるライブラリlxmlの練習ついでにちょっと遊んでみた.objectifyを使う場合は特に問題なかったけど,XPathを使う場合は単純にタグ名を指定しただけでは空配
Pythonではまだなさそうだったので、作った。 # -*- coding: utf-8 -*- from urllib import urlopen, urlencode from lxml import etree from formencode import Schema import formencode.validators as validators ADJECTIVE = 1 # 形容詞 ADJECTIVAL_NOUN = 2 # 形容動詞 INTERJECTION = 3 # 感動詞 ADVERB = 4 # 副詞 ADNOMIAL = 5 # 連体詞 CONJUNCTION = 6 # 接続詞 PREFIX = 7 # 接頭辞 SUFFIX = 8 # 接尾辞 NOUN = 9 # 名詞 VERB = 10 # 動詞 PARTICLE = 11 # 助詞 AUX_VERB
趣味プログラマやってるわけですが、最近はずっとC言語を書いています。やっぱCはいいですね。あと3Dモデリングに手を出し始めました。目指せ最強の器用貧乏。 というのは置いといて、Yahooのテキスト解析API出ましたね。これは便利そう。というわけで、Pythonのライブラリ置いておきます。 ダウンロード 使い方 ソースに書いてあるんですが、こんな感じです。 [python] import yahooapi.jlp as jlp client = jlp.MAServiceAPI("your_appid") result = client.parse(sentence=u"庭には二羽ニワトリがいる。", results= jlp.MA+jlp.UNIQ, filter = jlp.VERB + jlp.NOUN) print result.ma_result.word_list.word[0
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く