-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor elements #57
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #57 +/- ##
==========================================
+ Coverage 97% 97.79% +0.78%
==========================================
Files 52 54 +2
Lines 1471 1452 -19
Branches 154 153 -1
==========================================
- Hits 1427 1420 -7
+ Misses 37 25 -12
Partials 7 7
Continue to review full report at Codecov.
|
79299fb
to
3ed772d
Compare
3ed772d
to
4f2554a
Compare
70c3762
to
41501f9
Compare
3fa9daa
to
4513c28
Compare
uttut/elements/datum.pxd
Outdated
cdef class Datum: # noqa: E999 | ||
|
||
cdef public str utterance | ||
cdef public object intents |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
應該是 list ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uttut/elements/datum.pxd
Outdated
|
||
cdef public str utterance | ||
cdef public object intents | ||
cdef public object entities |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
object intents=None, # : List[Intent] = None, | ||
object entities=None, # : List[Entity] = None, | ||
): | ||
self.utterance = utterance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cdef Entity entity, next_entity
cdef unsigned int idx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uttut/elements.pyx
into three scripts (datum.pyx
,intent.pyx
,entity.pyx
) and move them into an independent folderelements/
.