Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Carlos-Francisco Méndez-Cruz
/
conditional-random-fields
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
2019-02-14 01:55:49 -0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
29ce52cd06ac4aaede5e2098e9516afc3eac3af9
29ce52cd
1 parent
f996f80a
Conditional Random Fields
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
training-validation-v1.py
training-validation-v1.py
View file @
29ce52c
...
...
@@ -53,7 +53,7 @@ from nltk.corpus import stopwords
def
word2features
(
sent
,
i
):
listElem
=
sent
[
i
]
.
split
(
'|'
)
word
=
listElem
[
0
]
print
(
"word: {}"
.
format
(
word
))
#
print("word: {}".format(word))
lemma
=
listElem
[
1
]
postag
=
listElem
[
2
]
...
...
Please
register
or
login
to post a comment