Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -44,7 +44,7 @@ from nltk.corpus import stopwords | ... | @@ -44,7 +44,7 @@ from nltk.corpus import stopwords |
44 | # --trainingFile training-data-set-70.txt | 44 | # --trainingFile training-data-set-70.txt |
45 | # --testFile test-data-set-30.txt | 45 | # --testFile test-data-set-30.txt |
46 | # --outputPath /home/compu2/bionlp/conditional-random-fields | 46 | # --outputPath /home/compu2/bionlp/conditional-random-fields |
47 | -# python training-validation-v1.py --inputPath /export/space1/users/compu2/bionlp/conditional-random-fields/data-sets --trainingFile training-data-set-35.txt --testFile test-data-set-30.txt --outputPath /export/space1/users/compu2/bionlp/conditional-random-fields | 47 | +# python training-validation-v1.py --inputPath /home/compu2/bionlp/conditional-random-fields/data-sets --trainingFile training-data-set-70.txt --testFile test-data-set-30.txt --outputPath /home/compu2/bionlp/conditional-random-fields |
48 | 48 | ||
49 | ################################# | 49 | ################################# |
50 | # FUNCTIONS # | 50 | # FUNCTIONS # |
... | @@ -203,6 +203,7 @@ if __name__ == "__main__": | ... | @@ -203,6 +203,7 @@ if __name__ == "__main__": |
203 | t0 = time() | 203 | t0 = time() |
204 | 204 | ||
205 | X_train = [sent2features(s) for s in sentencesTrainingData] | 205 | X_train = [sent2features(s) for s in sentencesTrainingData] |
206 | + print(X_train) | ||
206 | y_train = [sent2labels(s) for s in sentencesTrainingData] | 207 | y_train = [sent2labels(s) for s in sentencesTrainingData] |
207 | 208 | ||
208 | X_test = [sent2features(s) for s in sentencesTestData] | 209 | X_test = [sent2features(s) for s in sentencesTestData] | ... | ... |
-
Please register or login to post a comment