Share via


Templates.ParseFile(String, ImportResolverDelegate, ExpressionParser) Method

Definition

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.

Applies to