question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EntityMasker component

See original GitHub issue

What problem are you trying to solve?

Currently, the intent classifier doesn’t leverage the information extracted by the entity extractors. In general, entity values add noise to the training data of the intent classifier, because they vary a lot. It would be nice if entity values could be normalized to placeholders instead (that is, entity values are “masked” to the intent classifier, so it doesn’t see them but sees placeholders insted).

What’s your suggested solution?

Add a EntityMasker component that preprocesses the intent classifier input by substituting entity values with placeholders during training and inference.

Examples (if relevant)

Imagine an intent classifier that must detect the intent buy with the following examples:

  • buy an apple
  • buy a chair
  • buy me a ticket

It would be a lot easier for the intent classifier to detect the intent if the entities are masked with placeholders, like this:

  • buy an item
  • buy a item
  • buy me a item

This way, it will be a lot easier for the intent classifier to learn the intent buy, because the noise added by the entity values is removed. The only information that remains is the fact that there is an entity of type item, but the actual values are masked.

Is anything blocking this from being implemented? (if relevant)

No response

Definition of Done

Add the EntityMasker component.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
koaningcommented, Mar 17, 2022

Exalate commented:

koaning commented:

@joejuzl figured I’d ping you on this one, there may be a nice use-case for the graphical backend here. This component would need to sit between an entity extractor and DIET.

@Maxinho96 while your use-case here is valid, one thing to keep in mind: since DIET is able to detect both intents and entities they can also influence each other. This is actually by design! <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png"> 😄 </g-emoji> Sometimes we’d want the entities to influence the intent prediction! The presence of an item might exclude some intents and that has predictive power.

0reactions
sync-by-unito[bot]commented, Dec 16, 2022

➤ Maxime Verger commented:

💡 Heads up! We’re moving issues to Jira: https://rasa-open-source.atlassian.net/browse/OSS.

From now on, this Jira board is the place where you can browse (without an account) and create issues (you’ll need a free Jira account for that). This GitHub issue has already been migrated to Jira and will be closed on January 9th, 2023. Do not forget to subscribe to the corresponding Jira issue!

➡️ More information in the forum: https://forum.rasa.com/t/migration-of-rasa-oss-issues-to-jira/56569.

Read more comments on GitHub >

github_iconTop Results From Across the Web

EntityMask |
Structure for describing an entity mask. Hierarchy. EntityMask. Index. Constructors. constructor. Properties.
Read more >
Implementing Component-Entity-Systems - GameDev.net
Entities represent a game object as an aggregation of components; Systems provide the logic to operate on components and simulate the game. The ......
Read more >
Entity Documentation - Component List - Microsoft Learn
Below is a list of all the available Components within Minecraft: Bedrock Edition for use with Entity JSON files.
Read more >
HTMIMERq.c
... HTEnHd EntityMask = HTRequest_enHd(request); BOOL transfer_coding = NO; ... 2); } if (EntityMask & HT_E_CTE && entity->cte) { HTEncoding cte ...
Read more >
Helix ALM 2021.1 ERD - Documentation
version, Yes, NUMERIC(10), Yes, Part of the unique identifier for a table row. ... ENTITYMASK, No, NUMERIC(10), No, A bitmask of the entity...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found