Azure Language Understanding Sentiment/Sentence similarity

Bashitha Jayathunga 21 Reputation points
2021-06-19T09:29:35.71+00:00

Using Azure LUIS (Language Understanding), how can two strings be compared and their similarity score be obtained to see if they mean the same or not when phrased differently? Like for example, "I got 10 dollars in my pocket" and "I have only 10 dollars remaining in my pocket" being the two strings. Here, how can the two strings be compared by LUIS to obtain a similarity score (to what extent their meanings match/mean the same)? Also, I'm doing a UWP project so preferably in C#.

Thanks

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,631 questions
{count} votes

Accepted answer
  1. Ramr-msft 17,826 Reputation points
    2021-06-22T15:18:29.85+00:00

    @BashithaJayathunga-8818 Thanks for the details. We don't have a pre-built offering for Sentence similarity to analyze that in TA/LUIS. The Microsoft NLP Best practices has an example using Horovod to train a genism sentence similarity model we recommend looking at it for reference.

    https://github.com/microsoft/nlp/blob/46c0658b79208763e97ae3171e9728560fe37171/examples/sentence_similarity/gensen_train.py

    You can also raise a user voice request here so the community can vote and provide their feedback, the product team then checks this feedback and implements the feature in future releases.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.