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 17:44:30 -0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ef323801d6f49c2a27cb6fcff76b7423403ccac1
ef323801
1 parent
90d0b668
New terminological tagging for CRFs
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
biologicalTermTagging-CRF.py
biologicalTermTagging-CRF.py
View file @
ef32380
...
...
@@ -135,6 +135,8 @@ if __name__ == "__main__":
for
termTag
in
hashTerms
:
if
word
in
hashTerms
[
termTag
]:
wordOrig
=
word
.
replace
(
'-'
,
' '
)
print
(
"Word: {}"
.
format
(
word
))
print
(
"WordOrig: {}"
.
format
(
wordOrig
))
if
wordOrig
in
hashTermsOrig
[
termTag
]:
line
=
''
for
w
,
l
in
zip
(
word
.
split
(
'-'
),
lemma
.
split
(
'-'
)):
...
...
Please
register
or
login
to post a comment