-
Notifications
You must be signed in to change notification settings - Fork 41
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
IntentContainer.instantiate_from_disk() method does not load data for padaos regex patterns #23
Comments
repodiac
added a commit
to repodiac/padatious
that referenced
this issue
Mar 28, 2020
Merged
repodiac
added a commit
to repodiac/padatious
that referenced
this issue
Mar 30, 2020
forslund
pushed a commit
to repodiac/padatious
that referenced
this issue
May 25, 2020
forslund
pushed a commit
that referenced
this issue
May 25, 2020
done (merged) |
clrpackages
pushed a commit
to clearlinux-pkgs/padatious
that referenced
this issue
May 28, 2020
… 0.4.8 Kris Gesling (1): Update README for repo restructure Matthew D. Scholefield (1): Fix docstring for add_entity repodiac (3): support for persisting models via utilizing cached versions of resources adapted code to comply with PEP8 via `autopep8 --in-place --aggressive --aggressive <file.py>` fix and tests for issue #23 (MycroftAI/padatious#23) stratus-ss (4): Adds support for handling apostrophes in utterances Added a test for match_data.py to make sure apostrophes are handled properly check for words that end in an apostrophe and correct spacing add test for 's' + apostrophe possessive
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I contributed the instantiate_from_disk() functionality some time ago (short recap: you can reuse and load trained models from disk via utilizing cached contents which have been stored externally).
Unfortunately, there is a bug I found out recently. I fixed it already with some kind of workaround. In the following I describe the details/background.
Background:
instantiate_from_disk()
does. Another code change and pull request for this project might be necessary here but that can be discussed on the padaos repo website.self.padaos.add_entity(name, lines)
in methodadd_entity
ofintent_container.py
contained emptylines
- I provided an empty list viainstantiate_from_disk()
since for reloading/instantiating from disk no training data is (usually) necessary! In this case it is, unfortunately (due to the need to recompile patterns withpadaos
)Implications: If no contents for entities and intents are provided to the padas compiler, most entities embedded in intents are not detected and some intents tend to be completely wrong most of the time. So it is rather severe.
Solution: As said before, I would like to contribute the fix via another pull request. The fixed functionality has also been considered in an improved unit test (in
test_container.test_instantiate_from_disk()
)The text was updated successfully, but these errors were encountered: