Commit aa3f485e by qinjiaxin

相对位置代码

parent c82779c2
......@@ -3,6 +3,7 @@
import os
import sys
import codecs
import re
from sklearn.feature_extraction.text import TfidfVectorizer
......@@ -64,7 +65,8 @@ def fit_and_predicted_use_CV(x_path, y_path, test_x, penalty='l2', solver='lbfgs
def main(test_x):
corpus = split_data_with_label('/thu_data_all2')
path = os.path.abspath(sys.argv[0])
corpus = split_data_with_label('path/../thu_data_all2.txt')
input_x, y = corpus
count_vec = feature_extractor()
train_x = count_vec.fit_transform(input_x)
......
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