public static enum BERTFeatureExtractor.OutputPooling extends Enum<BERTFeatureExtractor.OutputPooling>
Enum Constant and Description |
---|
CLS
Returns the CLS embedding.
|
CLS_AND_MEAN
Takes the average of the token embeddings and the CLS token.
|
MEAN
Takes the average of all the token embeddings
|
Modifier and Type | Method and Description |
---|---|
static BERTFeatureExtractor.OutputPooling |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BERTFeatureExtractor.OutputPooling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BERTFeatureExtractor.OutputPooling CLS
public static final BERTFeatureExtractor.OutputPooling MEAN
public static final BERTFeatureExtractor.OutputPooling CLS_AND_MEAN
public static BERTFeatureExtractor.OutputPooling[] values()
for (BERTFeatureExtractor.OutputPooling c : BERTFeatureExtractor.OutputPooling.values()) System.out.println(c);
public static BERTFeatureExtractor.OutputPooling valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.