AppleNaturalLanguageHostApi class
Registered only when the framework is available.
Constructors
- AppleNaturalLanguageHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''})
-
Constructor for AppleNaturalLanguageHostApi. The
binaryMessengernamed argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- pigeonVar_binaryMessenger → BinaryMessenger?
-
final
- pigeonVar_messageChannelSuffix → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
availableTagSchemes(
TokenUnitMessage unit, String language) → Future< List< String> > -
contextualEmbeddingResult(
int handle, String text, String? language) → Future< ContextualEmbeddingResultMessage> -
createGazetteer(
Map< String, List< entries, String? language) → Future<String> >int> -
dominantLanguage(
String text) → Future< String?> -
embeddingContains(
int handle, String text) → Future< bool> -
embeddingDistance(
int handle, String first, String second, DistanceTypeMessage distanceType) → Future< double> -
embeddingNeighbors(
int handle, String text, int maximumCount, double? maximumDistance, DistanceTypeMessage distanceType) → Future< List< NeighborMessage> > -
embeddingNeighborsForVector(
int handle, Float64List vector, int maximumCount, double? maximumDistance, DistanceTypeMessage distanceType) → Future< List< NeighborMessage> > -
embeddingVector(
int handle, String text) → Future< Float64List?> -
gazetteerLabel(
int handle, String text) → Future< String?> -
languageHypotheses(
String text, int maximumCount, Map< String, double> hints, List<String> constraints) → Future<List< LanguageHypothesisMessage> > -
liveHandleCount(
) → Future< int> -
loadContextualEmbedding(
String? modelIdentifier, String? language, String? script) → Future< ContextualEmbeddingInfoMessage> -
loadEmbeddingFromFile(
String path) → Future< EmbeddingInfoMessage> -
loadGazetteer(
String path) → Future< int> -
loadModel(
String path) → Future< ModelInfoMessage> -
loadSentenceEmbedding(
String language, int? revision) → Future< EmbeddingInfoMessage> -
loadWordEmbedding(
String language, int? revision) → Future< EmbeddingInfoMessage> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
predictedLabel(
int handle, String text) → Future< String?> -
predictedLabelHypotheses(
int handle, String text, int maximumCount) → Future< List< LabelHypothesisMessage> > -
predictedLabelsForTokens(
int handle, List< String> tokens) → Future<List< String> > -
release(
int handle) → Future< void> -
releaseAll(
) → Future< int> -
requestContextualEmbeddingAssets(
int handle) → Future< AssetsResultMessage> -
requestTaggerAssets(
String language, TagSchemeMessage scheme) → Future< AssetsResultMessage> -
tagHypotheses(
String text, int characterIndex, TagSchemeMessage scheme, TokenUnitMessage unit, int maximumCount) → Future< List< TagHypothesisMessage> > -
tokenize(
String text, TokenUnitMessage unit, String? language) → Future< List< TokenMessage> > -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
pigeonChannelCodec
→ const MessageCodec<
Object?>