Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -41,7 +41,7 @@ from nltk.corpus import stopwords | ... | @@ -41,7 +41,7 @@ from nltk.corpus import stopwords |
41 | # Examples | 41 | # Examples |
42 | # python training-validation-v1.py | 42 | # python training-validation-v1.py |
43 | # --inputPath /export/space1/users/compu2/bionlp/conditional-random-fields/data-sets | 43 | # --inputPath /export/space1/users/compu2/bionlp/conditional-random-fields/data-sets |
44 | -# --trainingFile training-data-set-35.txt | 44 | +# --trainingFile training-data-set-70.txt |
45 | # --testFile test-data-set-30.txt | 45 | # --testFile test-data-set-30.txt |
46 | # --outputPath /export/space1/users/compu2/bionlp/conditional-random-fields | 46 | # --outputPath /export/space1/users/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 /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 |
... | @@ -234,7 +234,7 @@ if __name__ == "__main__": | ... | @@ -234,7 +234,7 @@ if __name__ == "__main__": |
234 | # crf = rs.best_estimator_ | 234 | # crf = rs.best_estimator_ |
235 | nameReport = options.trainingFile.replace('.txt', '.fStopWords_' + str(options.excludeStopWords) + '.fSymbols_' + str( | 235 | nameReport = options.trainingFile.replace('.txt', '.fStopWords_' + str(options.excludeStopWords) + '.fSymbols_' + str( |
236 | options.excludeSymbols) + '.txt') | 236 | options.excludeSymbols) + '.txt') |
237 | - with open(os.path.join(options.outputPath, "reports-lp", "report_" + nameReport), mode="w") as oFile: | 237 | + with open(os.path.join(options.outputPath, "reports", "report_" + nameReport), mode="w") as oFile: |
238 | oFile.write("********** TRAINING **********\n") | 238 | oFile.write("********** TRAINING **********\n") |
239 | oFile.write("Training file: " + options.trainingFile + '\n') | 239 | oFile.write("Training file: " + options.trainingFile + '\n') |
240 | oFile.write('\n') | 240 | oFile.write('\n') | ... | ... |
-
Please register or login to post a comment