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
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Jun 18 01:37:57 2014 | |
@author: Kyunghoon Kim | |
""" | |
import urllib2 | |
import json | |
from collections import OrderedDict | |
s = "나는 밥을 먹었습니다" # input sentence |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Mon Jul 14 14:45:55 2014 | |
@author: Kyunghoon | |
""" | |
import numpy as np | |
# Original Data Matrix | |
Original = np.matrix([[1,1,0,1],[7,0,0,7],[1,1,0,1],[2,5,3,6]]) |
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
# -*- coding: utf8 -*- | |
import Umorpheme.morpheme as um | |
from collections import OrderedDict | |
s = "나는 멸치 볶음 보리 밥을 롯데리아에서 한예슬과 함께 먹었습니다. 롯데리아에는 맥도날드 해피밀이 없습니다." # input sentence | |
data = um.analyzer(s, '23485900349', "[롯데리아,맥도날드]", 1) | |
temp = {} | |
for key, value in data.items(): | |
temp[int(key)] = value | |
data = OrderedDict(sorted(temp.items())) |
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
--- networkx-1.5/networkx/drawing/nx_pylab.py 2011-06-04 09:45:38.000000000 +0900 | |
+++ nx_pylab.py 2011-10-01 01:48:06.000000000 +0900 | |
@@ -21,7 +21,8 @@ | |
# All rights reserved. | |
# BSD license. | |
-__all__ = ['draw', | |
+__all__ = ['set_fontproperties', | |
+ 'draw', | |
'draw_networkx', |
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
""" | |
********** | |
Matplotlib | |
********** | |
Draw networks with matplotlib. | |
See Also | |
-------- |
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
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
var FORMAT_ONELINE = 'One-line'; | |
var FORMAT_MULTILINE = 'Multi-line'; | |
var FORMAT_PRETTY = 'Pretty'; | |
var LANGUAGE_JS = 'JavaScript'; | |
var LANGUAGE_PYTHON = 'Python'; |
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/env python2 | |
# coding: utf-8 | |
from __future__ import print_function | |
import sys | |
import re | |
import json | |
import urllib | |
from colorama import init, Fore, Back, Style | |
URL = 'http://csearch.naver.com/dcontent/spellchecker.nhn' |
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/env python2 | |
# coding: utf-8 | |
from __future__ import print_function | |
import os | |
import sys | |
from wand.image import Image | |
DIMENSIONS = { | |
'OSX': [ | |
('icon_16x16.png', 16), |
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
# coding: utf-8 | |
import re | |
import urllib | |
from bs4 import BeautifulSoup | |
class MelonSong(object): | |
ARTIST_REGEXP = re.compile(r'.*goArtistDetail.*') | |
ALBUM_REGEXP = re.compile(r'.*goAlbumDetail.*') | |
SONG_REGEXP = re.compile(r'.*playSong.*') | |
NUMBER_PARAM_REGEXP = re.compile(r'[\'\",(\s](\d+)[\'\",)]') |
This file has been truncated, but you can view the full file.
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
"FROST, CARMILLA","AA2 35" | |
"KILLRAVEN/JONATHAN R","AA2 35" | |
"M'SHULLA","AA2 35" | |
"24-HOUR MAN/EMMANUEL","AA2 35" | |
"OLD SKULL","AA2 35" | |
"G'RATH","AA2 35" | |
"3-D MAN/CHARLES CHAN","M/PRM 35" | |
"3-D MAN/CHARLES CHAN","M/PRM 36" | |
"3-D MAN/CHARLES CHAN","M/PRM 37" | |
"HUMAN ROBOT","WI? 9" |
OlderNewer