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:08:14 -0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b4b758c4ee9ac7572663fce5c1380fedb073e1b5
b4b758c4
1 parent
53a2b7fc
New terminological tagging for CRFs
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
biologicalTermTagging-CRF.py
biologicalTermTagging-CRF.py
View file @
b4b758c
...
...
@@ -144,9 +144,9 @@ if __name__ == "__main__":
found
=
False
repetitions
=
word
.
count
(
'-'
)
print
(
"repetitions: {}"
.
format
(
repetitions
))
for
i
in
range
(
1
,
repetitions
):
for
i
in
range
(
0
,
repetitions
):
wordOrig
=
word
.
replace
(
'-'
,
' '
,
1
)
print
(
"Word: {}"
.
format
(
word
))
print
(
"Word: {}"
.
format
(
word
Orig
))
if
wordOrig
in
hashTermsOrig
[
termTag
]:
print
(
"WordOrig: {}"
.
format
(
wordOrig
))
found
=
True
...
...
Please
register
or
login
to post a comment