Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Carlos-Francisco Méndez-Cruz
/
automatic-extraction-growth-conditions
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Kevin Meza Landeros
2019-12-16 21:57:12 -0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a0c3a0c74a31087bd12291086d881b896142d5ca
a0c3a0c7
1 parent
61f7cb24
Update filtering_v2.py
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
CoreNLP/bin/filtering_v2.py
CoreNLP/bin/filtering_v2.py
View file @
a0c3a0c
...
...
@@ -16,7 +16,7 @@ __author__ = 'kevinml'
# --iFile Archivo a partir del cual se obtendran los 3 archivos.
#
# Examples
# 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
# 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
####################################################################################
# FUNCTIONS #
...
...
@@ -60,7 +60,7 @@ if __name__ == '__main__':
# Se abre el archivo.
with
open
(
os
.
path
.
join
(
args
.
outputPath
,
"Alphanum.txt"
),
"w+"
)
as
oFile
:
for
index
,
row
in
file
.
iterrows
():
# La bandera en 1 indica que ninguna palabra de la primer columna tiene caracteres NO alfanumericos
# La bandera en 1 indica que ninguna palabra de la primer columna tiene caracteres NO alfanumericos
# La bandera en 0 indica que al menos una palabra tienes caracteres NO alfanumericos.
bandera
=
1
# 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