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

Class EmbeddingType

model/embedding.py:27–39  ·  view source on GitHub ↗

Standard names for embedding type The following keys are defined: * `EMBEDDING`: Return the embedding after lookup. * `REGION_EMBEDDING`: Return the region embedding. Reference: A New Method of Region Embedding for Text Classification

Source from the content-addressed store, hash-verified

25
26
27class EmbeddingType(Type):
28 """Standard names for embedding type
29 The following keys are defined:
30 * `EMBEDDING`: Return the embedding after lookup.
31 * `REGION_EMBEDDING`: Return the region embedding.
32 Reference: A New Method of Region Embedding for Text Classification
33 """
34 EMBEDDING = 'embedding'
35 REGION_EMBEDDING = 'region_embedding'
36
37 @classmethod
38 def str(cls):
39 return ",".join([cls.EMBEDDING, cls.REGION_EMBEDDING])
40
41
42class EmbeddingProcessType(Type):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected