package
0.2.2
Repository: https://github.com/knights-analytics/hugot.git
Documentation: pkg.go.dev

# Functions

NewFeatureExtractionPipeline init a feature extraction pipeline.
NewTextClassificationPipeline initializes a new text classification pipeline.
NewTokenClassificationPipeline Initializes a feature extraction pipeline.
NewZeroShotClassificationPipeline create new Zero Shot Classification Pipeline.
WithHypothesisTemplate can be used to set the hypothesis template for classification.
No description provided by the author
WithLabels can be used to set the labels to classify the examples.
WithMultilabel can be used to set whether the pipeline is multilabel.
No description provided by the author
WithNormalization applies normalization to the mean pooled output of the feature pipeline.
WithoutAggregation returns the token labels.
WithOutputName if there are multiple outputs from the underlying model, which output should be returned.
No description provided by the author
WithSimpleAggregation sets the aggregation strategy for the token labels to simple It reproduces simple aggregation from the huggingface implementation.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
FeatureExtractionPipeline A feature extraction pipeline is a go version of https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/feature_extraction.py.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TokenClassificationPipeline is a go version of huggingface tokenClassificationPipeline.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author