This file contains hidden or 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
from sklearn.feature_extraction.text import TfidfVectorizer | |
from sklearn.model_selection import train_test_split | |
from sklearn import linear_model | |
from sklearn.metrics import accuracy_score | |
corpus = pd.Series(group_topic).apply(lambda x : ' '.join(element for element in x)) | |
df_train = pd.read_csv('/Users/kangjin/desktop/meetup_topic/training.csv') | |
df_train.columns=['index','lable','column'] | |
Y_train = df_train['lable'] |
This file contains hidden or 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
# import flask(rest api) and jwt(auth) | |
from flask import Flask | |
from flask_restful import Resource, Api | |
from flask_jwt import JWT, jwt_required | |
app = Flask(__name__) | |
app.config['SECRET_KEY'] = 'super-secret' | |
api = Api(app, prefix="/api/v1") |
NewerOlder