public static IMachineBuilder AddTextFileTextCorpus(this IMachineBuilder builder, IConfiguration config) { builder.Services.Configure <TextFileTextCorpusOptions>(config); return(builder.AddTextFileTextCorpus()); }
public static IMachineBuilder AddTextFileTextCorpus(this IMachineBuilder builder, Action <TextFileTextCorpusOptions> configureOptions) { builder.Services.Configure(configureOptions); return(builder.AddTextFileTextCorpus()); }