TextClassifierOptions.fromAssetPath constructor
TextClassifierOptions.fromAssetPath(
- String assetPath, {
- ClassifierOptions classifierOptions = const ClassifierOptions(),
Convenience constructor that looks for the model asset at the given file system location.
Implementation
factory TextClassifierOptions.fromAssetPath(
String assetPath, {
ClassifierOptions classifierOptions = const ClassifierOptions(),
}) {
return TextClassifierOptions(
baseOptions: BaseOptions.path(assetPath),
classifierOptions: classifierOptions,
);
}