Commit 22c130e7 authored by 赵威's avatar 赵威

add word2vec packages

parent 7167cda1
......@@ -21,3 +21,5 @@ django-extensions==1.9.9
mysqlclient==2.0.1
gunicorn==19.7.1
gevent==1.2.1
gensim==3.8.3
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class WordVectorConfig(AppConfig):
name = 'word_vector'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.shortcuts import render
# Create your views here.
import os
from gensim.models import Word2Vec
base_dir = os.getcwd()
print("base_dir: " + base_dir)
model_dir = os.path.join(base_dir, "_models")
data_dir = os.path.join(base_dir, "_data")
def w2v_train():
pass
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment