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
| 25 | |
| 26 | |
| 27 | class 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 | |
| 42 | class EmbeddingProcessType(Type): |
nothing calls this directly
no outgoing calls
no test coverage detected