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

Class RegionEmbeddingType

model/embedding.py:130–138  ·  view source on GitHub ↗

Standard names for region embedding type

Source from the content-addressed store, hash-verified

128
129
130class RegionEmbeddingType(Type):
131 """Standard names for region embedding type
132 """
133 WC = 'word_context'
134 CW = 'context_word'
135
136 @classmethod
137 def str(cls):
138 return ",".join([cls.WC, cls.CW])
139
140
141class RegionEmbeddingLayer(torch.nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected