Skip to content

Instantly share code, notes, and snippets.

@itsromiljain
Last active March 30, 2019 00:57
Show Gist options
  • Select an option

  • Save itsromiljain/017fafd3aecc4ed2fd7bd8e3a21bc9e8 to your computer and use it in GitHub Desktop.

Select an option

Save itsromiljain/017fafd3aecc4ed2fd7bd8e3a21bc9e8 to your computer and use it in GitHub Desktop.
Output from the NLU
{'entities': [{'confidence': 0.7756870940230542,
'end': 39,
'entity': 'category',
'extractor': 'ner_crf',
'start': 34,
'value': 'world'}],
'intent': {'confidence': 0.7036955584872587, 'name': 'news'},
'intent_ranking': [{'confidence': 0.7036955584872587, 'name': 'news'},
{'confidence': 0.08354613362606624, 'name': 'bye'},
{'confidence': 0.07291869896872455, 'name': 'fine_ask'},
{'confidence': 0.05602732000385333, 'name': 'thanks'},
{'confidence': 0.04222776782069363, 'name': 'greet'},
{'confidence': 0.04158452109340353, 'name': 'fine_normal'}],
'text': 'Share some latest news around the world?'}
{'entities': [{'confidence': 0.8300669275198649,
'end': 30,
'entity': 'category',
'extractor': 'ner_crf',
'start': 20,
'value': 'technology'}],
'intent': {'confidence': 0.7504499047195248, 'name': 'news'},
'intent_ranking': [{'confidence': 0.7504499047195248, 'name': 'news'},
{'confidence': 0.08264372426198878, 'name': 'fine_ask'},
{'confidence': 0.07334028393524249, 'name': 'bye'},
{'confidence': 0.03762657223852719, 'name': 'thanks'},
{'confidence': 0.032269516983848626, 'name': 'fine_normal'},
{'confidence': 0.023669997860867827, 'name': 'greet'}],
'text': 'What is going on in technology?'}
{'entities': [{'confidence': 0.8325527757201617,
'end': 29,
'entity': 'category',
'extractor': 'ner_crf',
'start': 20,
'value': 'education'}],
'intent': {'confidence': 0.692807076743214, 'name': 'news'},
'intent_ranking': [{'confidence': 0.692807076743214, 'name': 'news'},
{'confidence': 0.10977878328322135, 'name': 'fine_ask'},
{'confidence': 0.08535206569180623, 'name': 'bye'},
{'confidence': 0.04463048866099783, 'name': 'thanks'},
{'confidence': 0.041506566328008726, 'name': 'fine_normal'},
{'confidence': 0.025925019292751865, 'name': 'greet'}],
'text': 'What is going on in education?'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment