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:51:46 -0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
520f6a897a205c9c61441acf5c75f77083a8e3f3
520f6a89
1 parent
d042bae1
New terminological tagging for CRFs
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
biologicalTermTagging-CRF.py
biologicalTermTagging-CRF.py
View file @
520f6a8
...
...
@@ -128,10 +128,10 @@ if __name__ == "__main__":
if
len
(
listLine1
)
<
3
:
continue
word
=
listLine1
[
0
]
print
(
"Word: {}"
.
format
(
word
))
pos
=
listLine1
[
1
]
listLine2
=
listLine1
[
2
]
.
split
(
' '
)
lemma
=
listLine2
[
0
]
print
(
"Word: {}"
.
format
(
word
))
if
len
(
word
)
>
1
:
for
termTag
in
hashTerms
:
if
word
in
hashTerms
[
termTag
]:
...
...
Please
register
or
login
to post a comment