Closed patelrajnath closed 2 years ago
Hi,
I have no experience for implementing text classificiation models. If you want to implement the code by yourself, I have following suggestions:
[CLS]
is used by BERT for text classification. Some of the embeddings like Flair embeddings is difficult to decide text embeddings. It could be easier using the pooled/mean embeddings over tokens. You can find the implementation at embeddings.py. But personally I suggest you just implement the function at the forward function at text_classification_model.py.sentence_tensor
. Best.
Thanks @wangxinyu0922
I'll have a look at it and see how it goes.
Regards Raj
Close this issue since Xinyu's comment seems to resolve the OP question.
Hi there,
How complex it would be to use ACE for text classification. If possible, could you please add a working example for the same.
Regards Raj