How to identify multiple entities in RASA












1















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.










share|improve this question



























    1















    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.










    share|improve this question

























      1












      1








      1








      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.










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 21 '18 at 1:53









      SUBHOJEETSUBHOJEET

      394




      394
























          1 Answer
          1






          active

          oldest

          votes


















          2














          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 than spacy_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, and DNS 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.






          share|improve this answer


























          • 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











          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
          });


          }
          });














          draft saved

          draft discarded


















          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









          2














          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 than spacy_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, and DNS 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.






          share|improve this answer


























          • 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
















          2














          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 than spacy_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, and DNS 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.






          share|improve this answer


























          • 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














          2












          2








          2







          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 than spacy_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, and DNS 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.






          share|improve this answer















          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 than spacy_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, and DNS 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.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          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



















          • 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




















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          How to change which sound is reproduced for terminal bell?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Can I use Tabulator js library in my java Spring + Thymeleaf project?