File tree Expand file tree Collapse file tree
python-processing/classification Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010from sklearn .feature_extraction .text import TfidfVectorizer , CountVectorizer
1111from nltk .corpus import stopwords
1212
13- # Get the input from a folder in C:
1413def get_example_data ():
1514
16- header_file = 'C:/Users/Federico/Desktop/test/evaluation/tensor_content_NEW/headers.txt'
17- data_file_prefix = 'C:/Users/Federico/Desktop/test/evaluation/tensor_content_NEW'
15+ # read the tensor from the folder passed by args
16+ data_file_prefix = sys .argv [1 ]
17+ header_file = data_file_prefix + '/headers.txt'
1818 data_files = [data_file_prefix + "/connection.mtx" ,
1919 data_file_prefix + "/needtype.mtx" ,
2020 data_file_prefix + "/subject.mtx" ,
Original file line number Diff line number Diff line change 1111from nltk .corpus import stopwords
1212from sklearn .multiclass import OneVsRestClassifier
1313
14- # Get the input from a folder in C:
1514def get_example_data ():
1615
17- header_file = 'C:/Users/Federico/Desktop/test/evaluation/tensor_content_NEW/headers.txt'
18- data_file_prefix = 'C:/Users/Federico/Desktop/test/evaluation/tensor_content_NEW'
16+ # read the tensor from the folder passed by args
17+ data_file_prefix = sys .argv [1 ]
18+ header_file = data_file_prefix + '/headers.txt'
1919 data_files = [data_file_prefix + "/connection.mtx" ,
2020 data_file_prefix + "/needtype.mtx" ,
2121 data_file_prefix + "/subject.mtx" ,
You can’t perform that action at this time.
0 commit comments