How to identify multiple entities in RASA
I want to extract multiple entities from a user input.
Example- "Service httpd is not responding because of high CPU usage and DNS Error"
So here I want to identify below:
Httpd
High CPU usage
DNS Error
And I will be using this keywords to get a response from a Database.
rasa-nlu rasa-core
add a comment |
I want to extract multiple entities from a user input.
Example- "Service httpd is not responding because of high CPU usage and DNS Error"
So here I want to identify below:
Httpd
High CPU usage
DNS Error
And I will be using this keywords to get a response from a Database.
rasa-nlu rasa-core
add a comment |
I want to extract multiple entities from a user input.
Example- "Service httpd is not responding because of high CPU usage and DNS Error"
So here I want to identify below:
Httpd
High CPU usage
DNS Error
And I will be using this keywords to get a response from a Database.
rasa-nlu rasa-core
I want to extract multiple entities from a user input.
Example- "Service httpd is not responding because of high CPU usage and DNS Error"
So here I want to identify below:
Httpd
High CPU usage
DNS Error
And I will be using this keywords to get a response from a Database.
rasa-nlu rasa-core
rasa-nlu rasa-core
asked Nov 21 '18 at 1:53
SUBHOJEETSUBHOJEET
394
394
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Just annotate them accordingly, e.g.
## intent: query_error
- Service [httpd](keyword) is not responding because of [high CPU usage](keyword) and [DNS Error](keyword)
Having the sentence from above, Rasa NLU would extract 3 entities of type keyword
. You can then access these entities in a custom action and query your database.
Regarding the number of examples which are required: this depends on
- the NLU pipeline which you are using. Typically
tensorflow_embedding
requires more training examples thanspacy_sklearn
since it does not use pretrained language models. - the number of different values your entities can have. If it is only
httpd
,high CPU usage
, andDNS error
then you don't need a lot of examples. However, if you have a thousand different values for your entity, then you need more training examples
One intent is enough if you always want to trigger the same custom action. However, if you want to classify different type of problems, e.g. server problems and client problems, and trigger different databases depending on the type of problems, you might consider having multiple intents.
Sorry for the vague answers, but in machine learning most things are highly dependent on the use case and the dataset.
how many such examples do I need to train to extract the entities correctly. also is it necessary that all training example should consists of three similar entities.
– SUBHOJEET
Nov 21 '18 at 13:28
added it to my answer
– Tobias
Nov 21 '18 at 14:00
How to fill the slot in stories.md with the list of keywords, so it can be used in a custom action?
– asmaier
Nov 27 '18 at 12:26
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53404259%2fhow-to-identify-multiple-entities-in-rasa%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Just annotate them accordingly, e.g.
## intent: query_error
- Service [httpd](keyword) is not responding because of [high CPU usage](keyword) and [DNS Error](keyword)
Having the sentence from above, Rasa NLU would extract 3 entities of type keyword
. You can then access these entities in a custom action and query your database.
Regarding the number of examples which are required: this depends on
- the NLU pipeline which you are using. Typically
tensorflow_embedding
requires more training examples thanspacy_sklearn
since it does not use pretrained language models. - the number of different values your entities can have. If it is only
httpd
,high CPU usage
, andDNS error
then you don't need a lot of examples. However, if you have a thousand different values for your entity, then you need more training examples
One intent is enough if you always want to trigger the same custom action. However, if you want to classify different type of problems, e.g. server problems and client problems, and trigger different databases depending on the type of problems, you might consider having multiple intents.
Sorry for the vague answers, but in machine learning most things are highly dependent on the use case and the dataset.
how many such examples do I need to train to extract the entities correctly. also is it necessary that all training example should consists of three similar entities.
– SUBHOJEET
Nov 21 '18 at 13:28
added it to my answer
– Tobias
Nov 21 '18 at 14:00
How to fill the slot in stories.md with the list of keywords, so it can be used in a custom action?
– asmaier
Nov 27 '18 at 12:26
add a comment |
Just annotate them accordingly, e.g.
## intent: query_error
- Service [httpd](keyword) is not responding because of [high CPU usage](keyword) and [DNS Error](keyword)
Having the sentence from above, Rasa NLU would extract 3 entities of type keyword
. You can then access these entities in a custom action and query your database.
Regarding the number of examples which are required: this depends on
- the NLU pipeline which you are using. Typically
tensorflow_embedding
requires more training examples thanspacy_sklearn
since it does not use pretrained language models. - the number of different values your entities can have. If it is only
httpd
,high CPU usage
, andDNS error
then you don't need a lot of examples. However, if you have a thousand different values for your entity, then you need more training examples
One intent is enough if you always want to trigger the same custom action. However, if you want to classify different type of problems, e.g. server problems and client problems, and trigger different databases depending on the type of problems, you might consider having multiple intents.
Sorry for the vague answers, but in machine learning most things are highly dependent on the use case and the dataset.
how many such examples do I need to train to extract the entities correctly. also is it necessary that all training example should consists of three similar entities.
– SUBHOJEET
Nov 21 '18 at 13:28
added it to my answer
– Tobias
Nov 21 '18 at 14:00
How to fill the slot in stories.md with the list of keywords, so it can be used in a custom action?
– asmaier
Nov 27 '18 at 12:26
add a comment |
Just annotate them accordingly, e.g.
## intent: query_error
- Service [httpd](keyword) is not responding because of [high CPU usage](keyword) and [DNS Error](keyword)
Having the sentence from above, Rasa NLU would extract 3 entities of type keyword
. You can then access these entities in a custom action and query your database.
Regarding the number of examples which are required: this depends on
- the NLU pipeline which you are using. Typically
tensorflow_embedding
requires more training examples thanspacy_sklearn
since it does not use pretrained language models. - the number of different values your entities can have. If it is only
httpd
,high CPU usage
, andDNS error
then you don't need a lot of examples. However, if you have a thousand different values for your entity, then you need more training examples
One intent is enough if you always want to trigger the same custom action. However, if you want to classify different type of problems, e.g. server problems and client problems, and trigger different databases depending on the type of problems, you might consider having multiple intents.
Sorry for the vague answers, but in machine learning most things are highly dependent on the use case and the dataset.
Just annotate them accordingly, e.g.
## intent: query_error
- Service [httpd](keyword) is not responding because of [high CPU usage](keyword) and [DNS Error](keyword)
Having the sentence from above, Rasa NLU would extract 3 entities of type keyword
. You can then access these entities in a custom action and query your database.
Regarding the number of examples which are required: this depends on
- the NLU pipeline which you are using. Typically
tensorflow_embedding
requires more training examples thanspacy_sklearn
since it does not use pretrained language models. - the number of different values your entities can have. If it is only
httpd
,high CPU usage
, andDNS error
then you don't need a lot of examples. However, if you have a thousand different values for your entity, then you need more training examples
One intent is enough if you always want to trigger the same custom action. However, if you want to classify different type of problems, e.g. server problems and client problems, and trigger different databases depending on the type of problems, you might consider having multiple intents.
Sorry for the vague answers, but in machine learning most things are highly dependent on the use case and the dataset.
edited Nov 21 '18 at 14:00
answered Nov 21 '18 at 13:20
TobiasTobias
570311
570311
how many such examples do I need to train to extract the entities correctly. also is it necessary that all training example should consists of three similar entities.
– SUBHOJEET
Nov 21 '18 at 13:28
added it to my answer
– Tobias
Nov 21 '18 at 14:00
How to fill the slot in stories.md with the list of keywords, so it can be used in a custom action?
– asmaier
Nov 27 '18 at 12:26
add a comment |
how many such examples do I need to train to extract the entities correctly. also is it necessary that all training example should consists of three similar entities.
– SUBHOJEET
Nov 21 '18 at 13:28
added it to my answer
– Tobias
Nov 21 '18 at 14:00
How to fill the slot in stories.md with the list of keywords, so it can be used in a custom action?
– asmaier
Nov 27 '18 at 12:26
how many such examples do I need to train to extract the entities correctly. also is it necessary that all training example should consists of three similar entities.
– SUBHOJEET
Nov 21 '18 at 13:28
how many such examples do I need to train to extract the entities correctly. also is it necessary that all training example should consists of three similar entities.
– SUBHOJEET
Nov 21 '18 at 13:28
added it to my answer
– Tobias
Nov 21 '18 at 14:00
added it to my answer
– Tobias
Nov 21 '18 at 14:00
How to fill the slot in stories.md with the list of keywords, so it can be used in a custom action?
– asmaier
Nov 27 '18 at 12:26
How to fill the slot in stories.md with the list of keywords, so it can be used in a custom action?
– asmaier
Nov 27 '18 at 12:26
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53404259%2fhow-to-identify-multiple-entities-in-rasa%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown