JohnSnowLabs / spark-nlp

State of the Art Natural Language Processing
https://sparknlp.org/
Apache License 2.0
3.88k stars 711 forks source link

Introducing onnx and OpenVino support to Missing Annotators #14359

Closed ahmedlone127 closed 2 months ago

ahmedlone127 commented 3 months ago

This PR introduces ONNX Support to the Following Annotators :

This PR introduces OpenVino support to the Following Annotators:

This PR introduces ONNX support to the instructor Embedding, we use a slightly different approach compared to the TensorFlow implementation, however, it's similar to what the Python Instructor Library is using. In their implementation, they take the average of the token embeddings and perform a linear activation on the output tensor before normalizing. We do the exact same except we don't perform the linear activation. ( we also produce slightly different results from the average pooling implementation we have compared to theirs )