botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Suggestion: LuisResult.TryFindEntity Regex Support

Open rodzillarr opened this issue 10 years ago • 3 comments

Currently supports searching by a string based type name which is great. But, it would be easier if I want to search for any type that falls within the builtin.geography.* types (us_state, country, et al) to just use a regex phrase to include any entity (or a collection thereof) which satisfies the expression.

Thanks for all the work on this. It's a fun ride digging into everything.

-r

rodzillarr avatar Apr 13 '16 17:04 rodzillarr

Is this for C# or Node?

Stevenic avatar Apr 14 '16 01:04 Stevenic

C#

rodzillarr avatar Apr 14 '16 01:04 rodzillarr

@rodzillarr since Entities in the LuisResult is an IList, you can easily do any kind of filtering by writing the appropriate linq query. Thanks for your suggestion about adding another extension method for LuisResult.

msft-shahins avatar Apr 14 '16 18:04 msft-shahins