Skip to content

Instantly share code, notes, and snippets.

Jaemin Cho j-min

Block or report user

Report or block j-min

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View hangul.py
# -*- coding: utf-8 -*-
class Hangul:
BASE_CODE = 44032
CHOSUNG = 588
JUNGSUNG = 28
# 초성 리스트. 00 ~ 18
CHOSUNG_LIST = [
'', '', '', '', '', '', '', '', '',
@j-min
j-min / tokenize_dparser.py
Last active Dec 3, 2016
Get tokenized list from dparser
View tokenize_dparser.py
import json
import requests
def tokenize_dparser(text):
dparser_link = 'http://parser.datanada.com/parse?version=1&string='
url = dparser_link+text
response = requests.get(url)
@j-min
j-min / 2_3.py
Created Nov 24, 2016
Python 2/3 compatibility
View 2_3.py
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
View CSVFileIO.py
import csv
import os
def get_csv_writer(filename, rows, delimiter):
with open(filename, 'w') as csvfile:
fieldnames = rows[0].keys()
writer = csv.DictWriter(csvfile, fieldnames=fieldnames, delimiter=delimiter)
writer.writeheader()
for row in rows:
try:
@j-min
j-min / TF_MDN.ipynb
Created Nov 15, 2016
Mixture Density Network in TensorFlow
View TF_MDN.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@j-min
j-min / AWS_Jupyter_Notebook.sh
Last active Nov 8, 2016
Jupyter Notebook setup on AWS EC2
View AWS_Jupyter_Notebook.sh
sudo apt-get upgrade
sudo apt-get update
sudo pip install jupyter notebook
jupyter notebook --generate-config
ipython
from notebook.auth import passwd
passwd()
View NLTK_Stanford_2015-12-09.md

NLTK API to Stanford NLP Tools compiled on 2015-12-09

Stanford NER

With NLTK version 3.1 and Stanford NER tool 2015-12-09, it is possible to hack the StanfordNERTagger._stanford_jar to include other .jar files that are necessary for the new tagger.

First set up the environment variables as per instructed at https://github.com/nltk/nltk/wiki/Installing-Third-Party-Software

@j-min
j-min / test_single_gpu.py
Created Nov 6, 2016
TensorFlow single GPU example
View test_single_gpu.py
from __future__ import print_function
'''
Basic Multi GPU computation example using TensorFlow library.
Author: Aymeric Damien
Project: https://github.com/aymericdamien/TensorFlow-Examples/
'''
'''
This tutorial requires your machine to have 1 GPU
"/cpu:0": The CPU of your machine.
@j-min
j-min / test_multi_gpu.py
Last active Nov 28, 2018
TensorFlow multi GPU example
View test_multi_gpu.py
from __future__ import print_function
'''
Basic Multi GPU computation example using TensorFlow library.
Author: Aymeric Damien
Project: https://github.com/aymericdamien/TensorFlow-Examples/
'''
'''
This tutorial requires your machine to have 2 GPUs
"/cpu:0": The CPU of your machine.
@j-min
j-min / install-tensorflow.sh
Last active Nov 15, 2016 — forked from erikbern/install-tensorflow.sh
TensorFlow Installation Log
View install-tensorflow.sh
# Note – this is not a bash script (some of the steps require reboot)
# I named it .sh just so Github does correct syntax highlighting.
#
# This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5
#
# The CUDA part is mostly based on this excellent blog post:
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
# Install various packages
sudo apt-get update
You can’t perform that action at this time.