Migrate `LanguageModelFeaturizer` to GraphComponent interface
See original GitHub issueOverview of the Solution:
Adapt the LanguageModelFeaturizer
to the new GraphComponent
interface.
See the implementation proposal for further details.
- adapt
create
~andload
~ functions new signatures - implement
required_packages
andsupported_languages
- ~adapt persistence~
- rename
train
toprocess_training_data
(this featurizer only adds features but doesn’t require training) - support multiple messages in
process
(make sure to handle empty messages)
Definition of Done:
- LanguageModelFeaturizer adapted to the new GraphComponent interface
- Unit tests are adapted to adapted component
- Other tests (integration tests, etc.) don’t break (because they’d (for now) still use the old component implementation)
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Version Migration Guide
This page contains information about changes between major versions and how you can migrate from one version to another.
Read more >Migrate `CRFEntityExtractor` to `GraphComponent` interface
Overview of the Solution: Adapt the CRFEntityExtractor to the new GraphComponent interface. See the implementation proposal for further details.
Read more >Using German GPT-2 in Rasa
GraphComponentException: Error initializing graph component for node run_LanguageModelFeaturizer1.``` rasa · rasa-nlu · language-model · Share.
Read more >Rasa面试系列之: Rasa NLU意图和实体-特征提取器- ...
密集特征:由许多预先训练的嵌入词向量组成。通常来自SpacyFeatureizers或来自huggingface及LanguageModelFeaturizers,应在管道中包含适当的标记器。
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The featurizer doesn’t need persisting, so you can omit the
persist
method. Only components which train themselves need apersist
methodNo, that’s not needed