MCPcopy Create free account
hub / github.com/Tencent/NeuralNLP-NeuralClassifier / DocEmbeddingType

Class DocEmbeddingType

model/classification/textrnn.py:24–34  ·  view source on GitHub ↗

Standard names for doc embedding type.

Source from the content-addressed store, hash-verified

22
23
24class DocEmbeddingType(Type):
25 """Standard names for doc embedding type.
26 """
27 AVG = 'AVG'
28 ATTENTION = 'Attention'
29 LAST_HIDDEN = 'LastHidden'
30
31 @classmethod
32 def str(cls):
33 return ",".join(
34 [cls.AVG, cls.ATTENTION, cls.LAST_HIDDEN])
35
36
37class TextRNN(Classifier):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected