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
2018-03-08 12:36:07 -0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b7133bc25005323a79a6d30bd2f6a083adec4785
b7133bc2
1 parent
d759990c
Training validation script
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
training-validation-v1.py
training-validation-v1.py
View file @
b7133bc
...
...
@@ -78,7 +78,6 @@ def word2features(sent, i):
'word[:1]'
:
word
[:
1
],
'endsConLow()={}'
.
format
(
endsConLow
(
word
)):
endsConLow
(
word
),
}
'''
if
i
>
0
:
listElem
=
sent
[
i
-
1
]
.
split
(
'|'
)
word1
=
listElem
[
0
]
...
...
@@ -98,7 +97,8 @@ def word2features(sent, i):
'+1:word'
:
word1
,
'+1:lemma'
:
lemma1
,
})
'''
if i > 1:
listElem = sent[i - 2].split('|')
word2 = listElem[0]
...
...
Please
register
or
login
to post a comment