{"id":18149,"date":"2019-03-04T07:00:45","date_gmt":"2019-03-04T07:00:45","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?post_type=docs&#038;p=16989"},"modified":"2023-06-26T13:05:24","modified_gmt":"2023-06-26T12:05:24","slug":"nlp-detection","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/nlp-detection\/","title":{"rendered":"Ranking and Resolver"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p><span style=\"font-weight: 400\">The Kore.ai NLP engine uses Machine Learning, Fundamental Meaning, and Knowledge Graph (if any) models to match intents. All the three Kore.ai engines finally deliver their findings to the Kore.ai Ranking and Resolver component as either exact matches or probable matches. <\/span><strong>Ranking and Resolver<\/strong><span style=\"font-weight: 400\"> determines the final winner of the entire NLP computation.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The Ranking &amp; Resolver engine receives the outputs from the above engines and further processes them.<\/span><\/p>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<table style=\"width: 100%;border-collapse: collapse;background-color: #dffbea\">\n<tbody>\n<tr>\n<td style=\"width: 100%\">\n<h1><span class=\"ez-toc-section\" id=\"Notes_on_Ranking_and_Resolver_Version_2\"><span style=\"font-weight: 400\">Notes on Ranking and Resolver Version 2<\/span><\/span><\/h1>\n<p>With the introduction of Few-shot models in ML and KG engines, rescoring by Ranking &amp; Resolver is no longer required for intent identification. Therefore, we have introduced a new version of Ranking &amp; Resolver (Version 2) for Few-shot models that only ranks intents based on scores from ML and KG engines. The version significantly improves the accuracy of intent identification.<span style=\"font-weight: 400\">You can <\/span><span style=\"font-weight: 400\">choose one of the following versions of the Ranker and Resolver to define how to rank matched intents from NLP engines and determine the winning intent:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><em><span style=\"font-weight: 400\">Version 1<\/span><\/em><span style=\"font-weight: 400\"> rescores the intents matched by the NLP engines and ranks them based on the rescored results to identify the winning intent in the user input.&nbsp;<\/span><\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The latest<\/span><em><span style=\"font-weight: 400\"> Version 2<\/span><\/em><span style=\"font-weight: 400\"> for the Few-shot ML Model only ranks the scores of the definitive matches from ML and KG engines (not the FM engine) without intent rescoring to ensure the best intent identification accuracy.<\/span><\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Important_Considerations\"><span style=\"font-weight: 400\">Important Considerations<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">Before selecting this feature, please consider the following:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Changing to Version 2 of R&amp;R will change how the winning intent is determined for user input. If Version 1 works best for your NLP engine(s), please do not change it.&nbsp;<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Version 2 of R&amp;R works best when the ML and KG engines use the Few-shot ML model. For the other models, choosing the appropriate R&amp;R version is recommended.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Since the FM engine does not identify intents based on task names, configurations for this feature are disabled in Version 2 by default.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Version 2 of R&amp;R works solely by eliminating the intents with lower <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/nlp-detection\/#Thresholds_Configuration\"><span style=\"font-weight: 400\">proximity of probable matches<\/span><\/a><span style=\"font-weight: 400\">. It does not eliminate intents with semantic similarity to user input, matched utterances, or questions.<\/span><\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Enable_Ranking_Resolver_Version_2\"><span style=\"font-weight: 400\">Enable Ranking &amp; Resolver Version 2<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">To enable Version 2 of R&amp;R for the Few-shot Model, follow the steps below:<\/span><\/p>\n<ol>\n<li><span style=\"font-weight: 400\">Navigate to <\/span><strong>Build<\/strong><span style=\"font-weight: 400\"> &gt; <\/span><strong>Natural Language<\/strong><span style=\"font-weight: 400\"> &gt; <\/span><strong>Thresholds &amp; Configurations<\/strong><span style=\"font-weight: 400\"> &gt; <\/span><strong>Ranking and Resolver Engine<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li><span style=\"font-weight: 400\">Select <\/span><strong><em>Version 2<\/em><\/strong><span style=\"font-weight: 400\"> for <\/span><strong>Rank and Resolver Version<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li><span style=\"font-weight: 400\">Click <\/span><strong>Enable Now<\/strong><span style=\"font-weight: 400\"> in the confirmation window<\/span><\/li>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419170737\/enable-v2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419170737\/enable-v2.png\" alt=\"\" width=\"1817\" height=\"691\" class=\"alignnone size-full wp-image-56782\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419170737\/enable-v2.png 1817w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419170737\/enable-v2-300x114.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419170737\/enable-v2-1024x389.png 1024w\" sizes=\"auto, (max-width: 1817px) 100vw, 1817px\" \/><\/a><span style=\"font-weight: 400\">Once enabled, you can use Utterance Testing to see your bot&rsquo;s behavior with R&amp;R V2. <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/test-your-bot\/testing-your-bot-with-nlp\/#Ranking_and_Resolver\"><span style=\"font-weight: 400\">Learn more<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Ranking_and_Resolver_Overview\"><span style=\"font-weight: 400\">Ranking and Resolver Overview<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">Here is a short overview of the various parameters that the R&amp;R engine works with:<\/span><\/p>\n<ul>\n<li><strong>The output of the ML Engine: for a given utterance:<\/strong>\n<ul>\n<li><em><span style=\"font-weight: 400\">Deterministic match<\/span><\/em><span style=\"font-weight: 400\">: fuzzy score match of &gt;= 95% match against user input.<\/span><\/li>\n<li><em><span style=\"font-weight: 400\">Probable matches<\/span><\/em><span style=\"font-weight: 400\">: Confidence scores for each intent<\/span><\/li>\n<li><em><span style=\"font-weight: 400\">Top 5 utterances <\/span><\/em><span style=\"font-weight: 400\">(from ML training dataset) of each intent whose confidence score is &gt; threshold (default is 0.3)<\/span><\/li>\n<li><span style=\"font-weight: 400\">Top 5 utterances are found by ML engine which are close to the user inpu<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400\"><strong>The output of the KG Engine:<\/strong>\n<ul>\n<li style=\"font-weight: 400\"><em><span style=\"font-weight: 400\">Deterministic Match<\/span><\/em><span style=\"font-weight: 400\">: Fuzzy score if Deterministic (fuzzy match of &gt;= 95% match against user input).<\/span><\/li>\n<li style=\"font-weight: 400\"><em><span style=\"font-weight: 400\">Probable matches<\/span><\/em><span style=\"font-weight: 400\">: Confidence scores of Questions that matched minimum threshold(&gt;=50% match of path terms &amp; &gt;=60% word match)<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Synonyms matched, Nodes matched, Path terms matched, Class\/Traits matched<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Original Question, Modified question(replaced with synonyms which matched)<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Alternate questions of each matched question<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400\"><strong>The output of the FM Engine:<\/strong>\n<ul>\n<li style=\"font-weight: 400\"><em><span style=\"font-weight: 400\">Deterministic Match<\/span><\/em><span style=\"font-weight: 400\">: Intents that matched deterministically (Pattern match or input is exactly the same as the task name)<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Probable matches: Partial label matches including synonyms.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Working_Processes\"><span style=\"font-weight: 400\">Working Processes<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">The NLP engine uses a hybrid approach using Machine Learning, Fundamental Meaning, and Knowledge Graph (if the assistant has one) models to score the matching intents on relevance. The model classifies user utterances as either being <\/span><em><span style=\"font-weight: 400\">Probable Matches<\/span><\/em><span style=\"font-weight: 400\"> or <\/span><em><span style=\"font-weight: 400\">Definitive Matche<\/span><\/em><span style=\"font-weight: 400\">s.<\/span><\/p>\n<p><em><span style=\"font-weight: 400\">Definitive Matches<\/span><\/em><span style=\"font-weight: 400\"> get high confidence scores and are assumed to be perfect matches for the user utterance. In published assistants , if user input matches with a single <\/span><em><span style=\"font-weight: 400\">Definitive Match<\/span><\/em><span style=\"font-weight: 400\">, the VA directly executes the task. If the utterances match with multiple <\/span><em><span style=\"font-weight: 400\">Definitive Matches<\/span><\/em><span style=\"font-weight: 400\">, they are sent as options for the end-user to choose one.<\/span><\/p>\n<p><span style=\"font-weight: 400\">On the other hand, <\/span><em><span style=\"font-weight: 400\">Probable Matches<\/span><\/em><span style=\"font-weight: 400\"> are intents that score reasonably well against the user input but do not inspire enough confidence to be termed as exact matches. Internally the system further classifies probable matches into good and unsure matches based on their scores. If the end-user utterances were generating probable matches in a published assistant, the VA sends these matches as <\/span><em><span style=\"font-weight: 400\">Did you mean? <\/span><\/em><span style=\"font-weight: 400\">suggestions for the end-user.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Based on the ranking and resolver, the winning intent between the engines is ascertained. If the Platform finds ambiguity, then an ambiguity dialog is initiated. The Platform initiates one of these two system dialogs when it cannot ascertain a single winning intent for a user utterance:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>Disambiguation Dialog<\/strong><span style=\"font-weight: 400\">: Initiated when there are more than one <\/span><em><span style=\"font-weight: 400\">Definitive <\/span><\/em><span style=\"font-weight: 400\">matches returned across engines. In this scenario, the VA asks the user to choose a <\/span><em><span style=\"font-weight: 400\">Definitive <\/span><\/em><span style=\"font-weight: 400\">match to execute. You can customize the message shown to the user from the NLP Standard Responses.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Did You Mean Dialog<\/strong><span style=\"font-weight: 400\">: Initiated if the Ranking and Resolver returns more than one winner or the only winning intent is an FAQ whose KG engine score is between lower and upper thresholds. This dialog lets the user know that the VA found a match to an intent that it is not entirely sure about and would like the user to select to proceed further. In this scenario, the developer should identify these utterances and train the assistant further. You can customize the message shown to the user from the NLP Standard Responses.<\/span><\/li>\n<\/ul>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Deciding_the_Winning_Intent\"><span style=\"font-weight: 400\">Deciding the Winning Intent<\/span><\/span><\/h2>\n<p>The wining intent is decided by the Ranking &amp; Resolver as follows:<\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>Definitive match(es) found:<\/strong><\/li>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">If any engine has found an Intent Definitively, that&rsquo;s the winning Intent<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">If more than one engine found different intents but Deterministically, then consider them as ambiguous and present the found intents as choices to the user to choose the intent which user felt is right.<\/span><\/li>\n<\/ul>\n<li style=\"font-weight: 400\"><strong>Probable match(es) found:<\/strong>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Score each of the 5 utterances given by the ML engine and find the highest scoring utterance against each probable Intent.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Score each of the alternate questions, modified questions given by the KG engine, and find the highest scoring question against each intent.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Rank the scores and choose the Top scoring intent as the winning intent.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">If Topper and the immediate next intent are within the range of 2% then consider them as ambiguous.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">If a deterministic Intent is found, ignore all probable matches.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">If only FM or ML engines found an Intent but probable, that&rsquo;s the winning intent.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">If only the KG engine found a probable intent and its score is &gt; higher threshold(80%) then that&rsquo;s the winning intent.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">If only the KG engine found a probable Intent and its score is &gt;60% but &lt;80% then that&rsquo;s the winning intent, but since the confidence is low, show it as a suggestion (user will see &ldquo;Did you mean&rdquo;)<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">If more than one probable intents were found,&nbsp;<\/span><\/li>\n<\/ul>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/test-your-bot\/testing-your-bot-with-nlp\/#Analyzing_the_Test_Results\"><span style=\"font-weight: 400\">Learn more about model scores and resolver<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/p>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Thresholds_Configuration\"><span style=\"font-weight: 400\">Thresholds &amp; Configuration<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">To set up Thresholds &amp; Configuration for the Ranking and Resolver Engine, follow the below steps:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Open the vA for which you want to configure thresholds.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select the <\/span><strong>Build<\/strong><span style=\"font-weight: 400\"> tab from the top menu.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">From the left navigation click <\/span><strong>Natural Language<\/strong><span style=\"font-weight: 400\"> &gt; <\/span><strong>Thresholds &amp; Configurations<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The <\/span><strong>Ranking &amp; Resolver Engine<\/strong><span style=\"font-weight: 400\"> section allows you to set the threshold:<\/span><\/li>\n<ul>\n<li style=\"font-weight: 400\"><strong>Prefer Definitive Matches<\/strong><span style=\"font-weight: 400\"> can be used to prioritize definitive matches over probable matches so that all the matches are considered for rescoring and the end-user gets to choose the right intent in case of any ambiguity. This setting is enabled by default and you can disable it. If enabled (default behavior), definitive matches will win and the probable matches would be discarded, in case of no definitive match, then probable matches would get rescored. If disabled, all the matches &ndash; definitive and probable, would be rescored.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Rescoring of Intents<\/strong><span style=\"font-weight: 400\"> can be turned off so that all the qualified intents from the different intent engines are assumed winning intents and are sent to the end-users to choose the required intent. If only one intent is qualified, then it is considered a winner, if more than one is qualified then the user will be presented with results for disambiguation.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Negative Patterns<\/strong><span style=\"font-weight: 400\"> When enabled, uses negative patterns to eliminate intents detected by Fundamental Meaning or Machine Learning models.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Proximity of Probable Matches<\/strong><span style=\"font-weight: 400\"> which defines the maximum difference to be allowed between top-scoring and immediate next probable intents to consider them as equally important. Before v7.3 of the Platform, this setting was under the Fundamental Meaning section.<\/span><\/li>\n<\/ul>\n<\/ul>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230626130223\/rankingandresolver-2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230626130223\/rankingandresolver-2.png\" alt=\"\" width=\"800\" height=\"600\" class=\"alignnone size-full wp-image-57548\" \/><\/a><\/p>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Dependency_Parsing_Model\"><span style=\"font-weight: 400\">Dependency Parsing Model<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">The Platform has two models for scoring intents by the Fundamental Meaning Engine and the Ranking &amp; Resolver Engine:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The first model predominantly relies on the presence of words, the position of words in the utterance, etc. to determine the intents and is scored solely by the Fundamental Meaning Engine. This is the default setting.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The second model is based on the <\/span><em><span style=\"font-weight: 400\">dependency matrix<\/span><\/em><span style=\"font-weight: 400\"> where the intent detection is based on the words, their relative position, and most importantly the dependency between the keywords in the sentence. Under this model, intents are scored by the Fundamental Meaning Engine and then rescored by the Ranking and Resolver Engine.<\/span><\/li>\n<\/ol>\n<p><strong>Dependency Parsing Model<\/strong><span style=\"font-weight: 400\"> can be enabled and configured from the Ranking and Resolver section under <\/span><strong>Build &gt; Natural Language &gt;<\/strong> <strong>Training &gt; Thresholds &amp; Configurations<\/strong><span style=\"font-weight: 400\">.<\/span><\/p>\n<table style=\"width: 100%;border-collapse: collapse;background-color: #fffbea\">\n<tbody>\n<tr>\n<td style=\"width: 100%\"><strong><em>Note<\/em><\/strong><em><span style=\"font-weight: 400\">: This feature is supported only in select languages, <\/span><\/em><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/how-tos\/multi-lingual-bot-behavior\/#Feature_Support\"><em><span style=\"font-weight: 400\">see here for supported languages<\/span><\/em><\/a><em><span style=\"font-weight: 400\">.<\/span><\/em><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">The Dependency Parsing Model can be configured as follows:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>Minimum Match Score<\/strong><span style=\"font-weight: 400\"> to define the minimum score to qualify an intent as a probable match. It can be set to a value between 0.0 to 1.0 with the default set to 0.5.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Advanced Configurations<\/strong><span style=\"font-weight: 400\"> are used to customize the model by changing the weights and scores associated with various parameters. This opens a JSON editor where you can enter the valid code. You can click the <\/span><strong>restore to default configurations<\/strong><span style=\"font-weight: 400\"> to get the default threshold settings in a JSON structure, you can change the settings provided you are aware of the consequences.<br \/><\/span><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929165421\/dependency-parsing.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46462\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929165421\/dependency-parsing-1024x576.png\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929165421\/dependency-parsing-1024x576.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929165421\/dependency-parsing-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929165421\/dependency-parsing.png 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/li>\n<\/ul>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h1><span class=\"ez-toc-section\" id=\"NLP_Detection\"><span style=\"font-weight: 400\">NLP Detection<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">The Natural Language Analysis will result in the following scenarios, which will be discussed below:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">NLP Analysis identifying a <\/span><em><span style=\"font-weight: 400\">Definitive<\/span><\/em><span style=\"font-weight: 400\"> match with FM or ML or KG engines.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">NLP Analysis with multiple engines returning a probable match and selecting a single match.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">NLP Analysis with multiple engines returning a probable match and resolver returning multiple results.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">NLP Analysis with no match.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">To understand NLP detection, let us use the example of a Travel Planning assistant with the following details:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The assistant consists of several dialog tasks and its intents are trained with Synonyms, Patterns, and ML utterances.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The Knowledge Graph is defined with 86 FAQs distributed across 4 top-level terms.<\/span><\/li>\n<\/ul>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Scenario_1_FM_Identifying_a_Definitive_Match\"><span style=\"font-weight: 400\">Scenario 1 &ndash; FM Identifying a <\/span><em><span style=\"font-weight: 400\">Definitive Match<\/span><\/em><\/span><\/h2>\n<p><span style=\"font-weight: 400\">In this example, the following occurs:&nbsp;<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The Fundamental Meaning (FM) model identified the utterance as a <\/span><em><span style=\"font-weight: 400\">Definitive match<\/span><\/em><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The Machine Learning (ML) model did not identify a <\/span><em><span style=\"font-weight: 400\">&nbsp;match.<\/span><\/em><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">An intent using the same verb form has been eliminated. , so the FM model termed it a <\/span><em><span style=\"font-weight: 400\">Definitive match<\/span><\/em><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The Knowledge Graph engine has also considered the utterance as a Probable match to the question: <\/span><em><span style=\"font-weight: 400\">How do I book my flight?.<\/span><\/em><\/li>\n<\/ul>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164437\/fm-definite.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46450\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164437\/fm-definite-1024x456.png\" alt=\"\" width=\"640\" height=\"285\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164437\/fm-definite-1024x456.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164437\/fm-definite-300x134.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164437\/fm-definite.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Scenario_2_ML_Identifying_a_Definitive_Match\"><span style=\"font-weight: 400\">Scenario 2 &ndash; ML Identifying a <\/span><em><span style=\"font-weight: 400\">Definitive Match<\/span><\/em><\/span><\/h2>\n<p><span style=\"font-weight: 400\">In this example, both the FM and ML models show this intent as a match &#8211; Definitive and Probable respectively.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164447\/ml-definite.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46456\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164447\/ml-definite-1024x456.png\" alt=\"\" width=\"640\" height=\"285\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164447\/ml-definite-1024x456.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164447\/ml-definite-300x134.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164447\/ml-definite.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/p>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Scenario_3_KG_Identifying_a_Definitive_Match\"><span style=\"font-weight: 400\">Scenario 3 &ndash; KG Identifying a <\/span><em><span style=\"font-weight: 400\">Definitive Match<\/span><\/em><\/span><\/h2>\n<p><span style=\"font-weight: 400\">This scenario can be explained as follows:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The user utterance is <\/span><em><span style=\"font-weight: 400\">How do I book a flight?<\/span><\/em><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The user utterance contains all the terms required to match it to the <\/span><em><span style=\"font-weight: 400\">How do I book my flight <\/span><\/em><span style=\"font-weight: 400\">question.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">As 100% path term matched the path was qualified. As part of confidence scoring, the terms in the user query are similar to that of the actual Knowledge Graph question. Thus, it returns a score of 100. As such, the intent is marked as <\/span><em><span style=\"font-weight: 400\">a Definitive match<\/span><\/em><span style=\"font-weight: 400\"> and selected.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The ML and FM models also found a Probable Match to the Book Flight intent.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164442\/kg-definite.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46453\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164442\/kg-definite-1024x456.png\" alt=\"\" width=\"640\" height=\"285\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164442\/kg-definite-1024x456.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164442\/kg-definite-300x134.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164442\/kg-definite.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/p>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Scenario_4_Multiple_Engines_Returning_a_Probable_Match\"><span style=\"font-weight: 400\">Scenario 4 &ndash; Multiple Engines Returning a Probable Match<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">In this scenario, we can see that:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">All the 3 engines returned a probable match and no definitive match.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Each engine has found one probable match. All probable matches identified are re-ranked in the Ranking and Resolver.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The Ranking and Resolver component returned the highest score for the single match (Task name &ndash; Book Flight ) from the FM engine. The score for this match is highest, which is why it is the winning intent that is presented to the user.&nbsp;<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Though most of the keywords in the user utterance map to the keywords in the KG query, still this is not a definitive match because the number of path terms is not 100%.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164452\/multiple-probable-match.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46459\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164452\/multiple-probable-match.png\" alt=\"\" width=\"523\" height=\"451\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164452\/multiple-probable-match.png 897w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164452\/multiple-probable-match-300x259.png 300w\" sizes=\"auto, (max-width: 523px) 100vw, 523px\" \/><\/a><\/span><\/p>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Scenario_5_Resolver_Returning_Multiple_Results\"><span style=\"font-weight: 400\">Scenario 5 &ndash; Resolver Returning Multiple Results<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">This example shows the following:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The FM Engine detected probable matches. The ML and KG engines each returned one probable match.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Ranking and resolver found the 2 queries with close scores. .<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Both intents are selected and presented to the user as <\/span><em><span style=\"font-weight: 400\">Did-you-mean.<\/span><\/em><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Both the intents were selected as terms in both matches and the score for both the paths is more than 60%.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164419\/multiple-rr-results.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-46440\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164419\/multiple-rr-results.png\" alt=\"\" width=\"568\" height=\"560\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164419\/multiple-rr-results.png 874w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164419\/multiple-rr-results-300x296.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164419\/multiple-rr-results-100x100.png 100w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/a><\/span><\/p>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Scenario_6_No_Match_Identified\"><span style=\"font-weight: 400\">Scenario 6 &ndash; No Match Identified<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">In this final example, there is no match for the utterance:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">None of the engines could identify any trained intent or Knowledge Graph intent.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The default intent is triggered.<\/span><\/li>\n<\/ul>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164424\/no-match-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46443\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164424\/no-match-1-1024x456.png\" alt=\"\" width=\"802\" height=\"357\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164424\/no-match-1-1024x456.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164424\/no-match-1-300x134.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929164424\/no-match-1.png 1922w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/a><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_medium with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>[vc_raw_html]JTNDZGl2JTIwY2xhc3MlM0QlMjJ3LXBvc3QtZWxtJTIwcG9zdF9uYXZpZ2F0aW9uJTIwbGF5b3V0X3NpbXBsZSUyMGludl9mYWxzZSUyMiUzRSUwQSUzQ2ElMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtJTIwb3JkZXJfZmlyc3QlMjB0b19wcmV2JTIyJTIwaHJlZiUzRCUyMiUyRmRvY3MlMkZib3RzJTJGbmxwJTJGdHJhaW5pbmctdmFsaWRhdGlvbnMlMkYlMjIlM0UlM0MlMkZwJTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbS1hcnJvdyUyMiUzRSUzQyUyRmRpdiUzRSUwQSUzQ2RpdiUyMGNsYXNzJTNEJTIycG9zdF9uYXZpZ2F0aW9uLWl0ZW0tbWV0YSUyMiUzRVByZXZpb3VzJTIwUG9zdCUzQyUyRmRpdiUzRSUwQSUzQ2RpdiUyMGNsYXNzJTNEJTIycG9zdF9uYXZpZ2F0aW9uLWl0ZW0tdGl0bGUlMjIlM0UlM0NzcGFuJTNFVHJhaW5pbmclMjBWYWxpZGF0aW9ucyUzQyUyRnNwYW4lM0UlM0MlMkZkaXYlM0UlMEElM0NwJTNFJTNDJTJGYSUzRSUzQ2JyJTIwJTJGJTNFJTBBJTNDYSUyMGNsYXNzJTNEJTIycG9zdF9uYXZpZ2F0aW9uLWl0ZW0lMjBvcmRlcl9zZWNvbmQlMjB0b19uZXh0JTIyJTIwaHJlZiUzRCUyMiUyRmRvY3MlMkZib3RzJTJGbmxwJTJGYWR2YW5jZWQtbmxwLWNvbmZpZ3VyYXRpb25zJTJGJTIyJTNFJTNDJTJGcCUzRSUwQSUzQ2RpdiUyMGNsYXNzJTNEJTIycG9zdF9uYXZpZ2F0aW9uLWl0ZW0tYXJyb3clMjIlM0UlM0MlMkZkaXYlM0UlMEElM0NkaXYlMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtLW1ldGElMjIlM0VOZXh0JTIwUG9zdCUzQyUyRmRpdiUzRSUwQSUzQ2RpdiUyMGNsYXNzJTNEJTIycG9zdF9uYXZpZ2F0aW9uLWl0ZW0tdGl0bGUlMjIlM0UlM0NzcGFuJTNFQWR2YW5jZWQlMjBOTFAlMjBDb25maWd1cmF0aW9ucyUzQyUyRnNwYW4lM0UlM0MlMkZkaXYlM0UlMEElM0NwJTNFJTNDJTJGYSUzRSUzQyUyRmRpdiUzRQ==[\/vc_raw_html]<div class=\"w-separator size_medium with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"The Kore.ai NLP engine uses Machine Learning, Fundamental Meaning, and Knowledge Graph (if any) models to match intents. All the three Kore.ai engines finally deliver their findings to the Kore.ai Ranking and Resolver component as either exact matches or probable matches. Ranking and Resolver determines the final winner of the entire NLP computation. The Ranking...","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-18149","post","type-post","status-publish","format-standard","hentry","category-nlp"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/18149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/comments?post=18149"}],"version-history":[{"count":26,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/18149\/revisions"}],"predecessor-version":[{"id":57554,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/18149\/revisions\/57554"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=18149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=18149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=18149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}