-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor/remove access mutate (#111)
* add: fn to make unix timestamp (ms). * add: export utils. * add: fn to check unix timestamp. * update: validations, json. Set type validations for relevant attributes. A method to convert the object to dict. * update: use list for easy json. * add: prevent plugin run on condition. * refactor: types reference circular dependency. * update: remove `access` and `mutate`. * refactor: use immutable `Input` and `Output`. * refactor: remove getattr and decrease opaque code. * style: lint. * update: export from plugin.base. * style: support annotations of self. * update: export is_utterance from utils. * refactor: support `Input` `Output` we will pass `Input`, `Output` to plugins. * refactor: remove access, mutate. * test: support removal of access mutate. * fix: deecopy -> deepcopy. * fix: remove self on chain. * fix: argument collisions. * update: default output is Output. * update: reference time is optional. * update: method signature. (*args) to (Input, Output) * update: Intent is an attrs class. * update: use score for ordering. * fix: prevent argument collision. * update: clf_feature is a `List[str]`. * refactor: use method with simpler signature. * add: method to create new instances from a dict. * add: normalize utterances. * add: method to create instances from dict. * add: semi-serializer. * style: annotations support * fix: indentation. * update: reference for serializer can be optional. * add: constant entity_type. * style: embed args in method call. * refactor: support new plugin form. * test: updated for new plugin format. * refactor: supports new plugin io. * fix: lower() may have unknown side-effects. * update: make attrs class. * update: serializer. * update: entity type is one of "value" or "interval" * update: coverage requirement shifted to 90%. * refactor: new plugin format. * refactor: new plugin format. * add: export Slot. * refactor: new plugin format. * refactor: break into smaller methods. * fix: entity_type and type have same value. entity-type tells the type of the entity. type tells if the entity is one of "value" or "interval". * test: check entity_type vs type change. * fix: instantiation needs utterances. * fix: guards and signature. * refactor: fn to get operators. * fix: lb plugin must call ducklingplugin. * refactor: move fn related to dt in same mod. * update: default entity types. * test: coverage 100%. * coverage: 100% * fix: typecheck. * update: ignore type check/ * test: cov 100%. * style: lint black isort. * update: warn_unused_ignores=False * update: coverage requirement to 100. * update: merge master. * add: fn to check unix timestamp. * update: rebase master. * update: merge master. * update: rebase master. * update: merge master. * update: merge master. * fix: duplicate impl. * style: lint. * style: lint.
- Loading branch information
Showing
57 changed files
with
1,099 additions
and
1,163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from dialogy.base.entity_extractor import EntityScoringMixin | ||
from dialogy.base.input import Input | ||
from dialogy.base.output import Output | ||
from dialogy.base.plugin import Guard, Plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.