Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

printing out issue #22

Open
Firas-al opened this issue Apr 23, 2024 · 0 comments
Open

printing out issue #22

Firas-al opened this issue Apr 23, 2024 · 0 comments

Comments

@Firas-al
Copy link

Firas-al commented Apr 23, 2024

`from semantic_text_similarity.models import WebBertSimilarity
from semantic_text_similarity.models import ClinicalBertSimilarity

web_model = WebBertSimilarity(device='cpu', batch_size=10) #defaults to GPU prediction

clinical_model = ClinicalBertSimilarity(device='cuda', batch_size=10) #defaults to GPU prediction

web_model.predict([("She won an olympic gold medal","The women is an olympic champion")])`

So how to print the results if I use print(web_model.predict([("She won an olympic gold medal","The women is an olympic champion")]))
it gave me 4.021563

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant