Commit e07dedee by qinjiaxin

路径

parent 89b7a942
...@@ -65,9 +65,8 @@ def fit_and_predicted_use_CV(x_path, y_path, test_x, penalty='l2', solver='lbfgs ...@@ -65,9 +65,8 @@ def fit_and_predicted_use_CV(x_path, y_path, test_x, penalty='l2', solver='lbfgs
def main(test_x): def main(test_x):
path = os.path.abspath(sys.argv[0]) path = os.path.abspath('thu_data_all2.txt')
print path corpus = split_data_with_label(path)
corpus = split_data_with_label('path/../thu_data_all2.txt')
input_x, y = corpus input_x, y = corpus
count_vec = feature_extractor() count_vec = feature_extractor()
train_x = count_vec.fit_transform(input_x) 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