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
#!/bin/sh | |
. /etc/rc.d/init.d/functions | |
GUNICORN="/home/anaconda/bin/gunicorn" | |
NAME="gunicorn_recommend" | |
ENV="{{env}}" | |
ROOT_DIR="/var/www/recommend" |
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
prefix = 'socket.io' | |
namespace_name = '/' | |
room_name = 'room_777' | |
channel_name = '{0}#{1}#{2}#'.format(prefix, namespace_name, room_name) |
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 -*- | |
from sklearn import svm | |
from sklearn.feature_extraction.text import TfidfVectorizer | |
from sklearn.model_selection import train_test_split | |
from sklearn.externals import joblib | |
import numpy as np | |
import pandas as pd | |
ds = { |
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 os | |
import MeCab | |
import unicodedata | |
class Wakati(): |