Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Carlos-Francisco Méndez-Cruz
/
nlp-preprocessing-pipeline
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Carlos-Francisco Méndez-Cruz
2018-03-07 20:06:13 -0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
17fdfc3649bad06cd6a07e1bf29bea337a53164d
17fdfc36
1 parent
c0dad336
New terminological tagging for CRFs
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
biologicalTermTagging-CRF.py
biologicalTermTagging-CRF.py
View file @
17fdfc3
...
...
@@ -142,7 +142,9 @@ if __name__ == "__main__":
if
word
in
hashTerms
[
termTag
]:
if
word
.
find
(
'-'
)
>
-
1
:
found
=
False
for
i
in
range
(
word
.
count
(
'-'
)):
repetitions
=
word
.
count
(
'-'
)
print
(
"repetitions: {}"
.
format
(
repetitions
))
for
i
in
range
(
1
,
repetitions
):
wordOrig
=
word
.
replace
(
'-'
,
' '
,
1
)
#print("Word: {}".format(word))
if
wordOrig
in
hashTermsOrig
[
termTag
]:
...
...
Please
register
or
login
to post a comment