Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -16,7 +16,7 @@ __author__ = 'kevinml' | ... | @@ -16,7 +16,7 @@ __author__ = 'kevinml' |
16 | # --iFile Archivo a partir del cual se obtendran los 3 archivos. | 16 | # --iFile Archivo a partir del cual se obtendran los 3 archivos. |
17 | # | 17 | # |
18 | # Examples | 18 | # Examples |
19 | -# python filtering.py --inputPath /home/kevinml/automatic-extraction-growth-conditions/CoreNLP/input --outputPath /home/kevinml/automatic-extraction-growth-conditions/CoreNLP/input --iFile NER_words.txt | 19 | +# python filtering_v2.py --inputPath /home/kevinml/automatic-extraction-growth-conditions/CoreNLP/input --outputPath /home/kevinml/automatic-extraction-growth-conditions/CoreNLP/input --iFile NER_words.txt |
20 | 20 | ||
21 | #################################################################################### | 21 | #################################################################################### |
22 | # FUNCTIONS # | 22 | # FUNCTIONS # |
... | @@ -60,7 +60,7 @@ if __name__ == '__main__': | ... | @@ -60,7 +60,7 @@ if __name__ == '__main__': |
60 | # Se abre el archivo. | 60 | # Se abre el archivo. |
61 | with open (os.path.join(args.outputPath,"Alphanum.txt"), "w+") as oFile: | 61 | with open (os.path.join(args.outputPath,"Alphanum.txt"), "w+") as oFile: |
62 | for index, row in file.iterrows(): | 62 | for index, row in file.iterrows(): |
63 | - # La bandera en 1 indica que ninguna palabra de la primer columna tiene caracteres NO alfanumericos | 63 | + # La bandera en 1 indica que ninguna palabra de la primer columna tiene caracteres NO alfanumericos |
64 | # La bandera en 0 indica que al menos una palabra tienes caracteres NO alfanumericos. | 64 | # La bandera en 0 indica que al menos una palabra tienes caracteres NO alfanumericos. |
65 | bandera = 1 | 65 | bandera = 1 |
66 | # Con el for se va a verificando la presencia de caracteres alfanumericos en cada palabra de la primera columna | 66 | # Con el for se va a verificando la presencia de caracteres alfanumericos en cada palabra de la primera columna | ... | ... |
-
Please register or login to post a comment