UKPLab / sentence-transformers

State-of-the-Art Text Embeddings
https://www.sbert.net
Apache License 2.0
14.97k stars 2.45k forks source link

elastic search with other language #443

Open ReySadeghi opened 4 years ago

ReySadeghi commented 4 years ago

hi, I have an arabic bert model. so I want to index my corpus sentences in arabic language by this model and use elastic search. when I give query and see semanic search results, it showes me sentences in English. why it happens?

nreimers commented 4 years ago

Because you indexed English sentences.

ReySadeghi commented 4 years ago

my corpus sentences are in arabic and I indexed them.

nreimers commented 4 years ago

Elasticsearch is / can just return what is indexed. If it returns English sentences, then English sentences are indexed.

So there is some issue with your indexing and somehow you index English sentences.

ReySadeghi commented 4 years ago

Elasticsearch is / can just return what is indexed. If it returns English sentences, then English sentences are indexed.

So there is some issue with your indexing and somehow you index English sentences.

yeah, thanks