Standard names for doc embedding type.
| 22 | |
| 23 | |
| 24 | class 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 | |
| 37 | class TextRNN(Classifier): |
nothing calls this directly
no outgoing calls
no test coverage detected