xlang-ai / instructor-embedding

[ACL 2023] One Embedder, Any Task: Instruction-Finetuned Text Embeddings
Apache License 2.0
1.79k stars 132 forks source link

Example for classification task #31

Closed jackiexue1993 closed 1 year ago

jackiexue1993 commented 1 year ago

Hi, I was wondering if you have an example code snippet to use on a text classification task. Thank you.

Harry-hash commented 1 year ago

Hi, Thanks a lot for your interest in the INSTRUCTOR model!

You may find several classification evaluators at https://github.com/HKUNLP/instructor-embedding/blob/main/evaluation/MTEB/mteb/evaluation/evaluators/ClassificationEvaluator.py.

Feel free to add any further questions or comments!

hongjin-su commented 1 year ago

Feel free to re-open the issue if you have any further questions or comments!