Templates.ParseFile(String, ImportResolverDelegate, ExpressionParser) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Parser to turn lg content into a Templates.
public static Microsoft.Bot.Builder.LanguageGeneration.Templates ParseFile (string filePath, Microsoft.Bot.Builder.LanguageGeneration.ImportResolverDelegate importResolver = default, AdaptiveExpressions.ExpressionParser expressionParser = default);
static member ParseFile : string * Microsoft.Bot.Builder.LanguageGeneration.ImportResolverDelegate * AdaptiveExpressions.ExpressionParser -> Microsoft.Bot.Builder.LanguageGeneration.Templates
Public Shared Function ParseFile (filePath As String, Optional importResolver As ImportResolverDelegate = Nothing, Optional expressionParser As ExpressionParser = Nothing) As Templates
Parameters
- filePath
- String
Absolute path of a LG file.
- importResolver
- ImportResolverDelegate
resolver to resolve LG import id to template text.
- expressionParser
- ExpressionParser
expressionEngine Expression engine for evaluating expressions.
Returns
new Templates entity.