Skip to content

Instantly share code, notes, and snippets.

View katryo's full-sized avatar

katryo katryo

View GitHub Profile
@katryo
katryo / wn.py
Created January 18, 2014 10:29 — forked from yanbe/wn.py
#!/usr/bin/env python2.6
# encoding: utf-8
import sys
import sqlite3
from collections import namedtuple
conn = sqlite3.connect("wnjpn-0.9.db")
Word = namedtuple('Word', 'wordid lang lemma pron pos')
@katryo
katryo / bing_api.py
Last active September 12, 2019 10:06 — forked from ohshige15/bing_api.py
# -*- coding: utf-8 -*-
import urllib
import requests
import json
class Bing(object):
# コンストラクタ(初期化)
def __init__(self, key):
self.api_key = key