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
Carlos-Francisco Méndez-Cruz
2018-09-06 12:10:45 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3c71f634eeb301735cfa8842668f3a69bbeb9ef8
3c71f634
1 parent
baffab60
Extract manually tagged GCs
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
preprocessing-data/extract-manually-tagged-gcs.py
preprocessing-data/extract-manually-tagged-gcs.py
View file @
3c71f63
...
...
@@ -79,6 +79,11 @@ if __name__ == "__main__":
tag
=
m
.
group
(
'tag'
)
content
=
m
.
group
(
'content'
)
content
=
content
.
strip
()
content
=
content
.
replace
(
"&"
,
"&"
)
content
=
content
.
replace
(
"<"
,
"<"
)
content
=
content
.
replace
(
">"
,
">"
)
content
=
content
.
replace
(
"""
,
"
\"
"
)
content
=
content
.
replace
(
"'"
,
"
\'
"
)
print
(
"
\n
Serie: {}
\t
Sample: {}
\t
Tag: {}
\t
Content: {}"
.
format
(
serie
,
sample
,
tag
,
content
.
encode
(
encoding
=
'utf-8'
,
errors
=
'replace'
)))
if
tag
in
hashGcs
[
serie
][
sample
]:
if
content
in
hashGcs
[
serie
][
sample
][
tag
]:
...
...
Please
register
or
login
to post a comment