PretrainedModel enum
A pretrained language identification model published by Facebook.
Both variants recognize the same 176 languages. The weights are not
shipped with this package: they are distributed under CC BY-SA 3.0 and are
fetched at run time by ModelDownloader. If you redistribute the file, see
NOTICE.md for what the licence asks of you.
Values
- compact → const PretrainedModel
-
lid.176.ftz, about 916 KB — compressed with product quantization. Gives up almost nothing on ordinary text; the sensible default.const PretrainedModel('lid.176.ftz', 938013) - full → const PretrainedModel
-
lid.176.bin, about 125 MB — the full dense model.const PretrainedModel('lid.176.bin', 131266198)
Properties
- fileName → String
-
Name of the published file, and of the file written to disk.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - publishedSize → int
-
Size of the published file as of writing.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
PretrainedModel> - A constant List of the values in this enum, in order of their declaration.