Closed JarbasAl closed 1 week ago
The changes in this pull request primarily focus on improving the handling of language tags and enhancing the intent matching logic within the ovos_padatious/opm.py
file. A new function, standardize_lang_tag
, has been introduced to standardize language tags, which is now utilized in various methods to improve consistency. Additionally, the IntentContainer
class in intent_container.py
has been modified to include a delay in the training process, and the requirements.txt
file has been updated to include new dependencies, ovos-utils
and langcodes
.
File | Change Summary |
---|---|
ovos_padatious/opm.py | - Introduced standardize_lang_tag function for language tag standardization. |
- Updated _match_level , register_intent , register_entity , and calc_intent methods to use this function. |
|
- Added _get_closest_lang method to PadatiousPipeline class. |
|
ovos_padatious/intent_container.py | - Modified train method to include a time.sleep(0.5) delay after starting the training thread. |
requirements.txt | - Added new dependencies: ovos-utils>=0.3.4,<1.0.0 and langcodes . |
tests/test_container.py | - Updated paths in setUp methods for TestFromDisk and TestIntentContainer classes to use absolute paths. |
- Removed teardown method from TestIntentContainer . |
ovos_padatious/opm.py
related to the register_intent
, register_entity
, and calc_intent
methods are directly connected to the modifications made in the same file in PR #2, which also involves these methods and their roles in intent matching.refactor
, packaging
🐇 In the code where rabbits play,
Language tags now find their way.
With functions new and logic bright,
Intent matching takes its flight!
Dependencies added, all in line,
Hopping forward, feeling fine! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
ovos-utils
andlangcodes
to support additional functionalities.Bug Fixes
Tests