-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Switch language formatting and parsing to use Lingua Franca #2438
Conversation
eaa06c2
to
d7f881f
Compare
cf7ef9d
to
15747d5
Compare
The coverage will drop and is acceptable. |
15747d5
to
faaba68
Compare
faaba68
to
98a3f8a
Compare
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.
I would like to see the interface between lingua_franca and mycroft_core rethought a bit. The API should be simple and the language function selection should be handled inside lingua_franca.
Yes it should but...until a major release we need to keep the core-api as is. |
Seems to revert something about extract_datetime that breaks the weather skill. To repro: "Hey Mycroft, what's the weather like?" |
Thanks for reporting @ChanceNCounter totally reproducible. will look into and fix. |
Hmm, seems like the lingua-franca behavior is the intended behavior: https://github.com/MycroftAI/mycroft-core/blob/dev/mycroft/util/parse.py#L248 |
Likely something similar to this fix: #2300 |
98a3f8a
to
ede37e1
Compare
The files are kept for backwards compatibility but these just contains imports of lingua-franca versions of variables
The functions are still there providing the docstrings but calling the lingua_franca functions. Note, there is a INTENTIONAL addition of an inconsistence. Making the extract_datetime return todays date instead of None as is documented. This needs to be removed as soon as the mycroft default skills have been added.
The functionallity of lingua franca has been verified so the language specific test cases aren't needed anymore. The base test cases for english for format.py and parse.py is left as long as those remain as part of the utils module.
ede37e1
to
f77fe9d
Compare
Description
This aims to replace the internal language parsing and formatting with the lingua franca module. It still aims to be backwards compatible so some logic remains in core along with all python modules.
How to test
Run core make sure things behaves. Do some explorative testing.
Contributor license agreement signed?
CLA [ Yes ]