IslamQA commited on
Commit
1f9b0a9
1 Parent(s): 66ecac8

Create README.md

Browse files

A Q/A dataset from https://islamqa.info
Contains 82086 question and aswer pairs.
We provide in two separate files questions and answer embeddings.
In the questions file we provide metadata like categories, language, similar questions, etc.
In the embeddings file, we provide an embedding using bert-base-multilingual-uncased.


<code>

encoded_input = tokenizer_mutlti(answer, return_tensors='pt', truncation=True, padding='max_length', max_length=512)

with torch.no_grad():

output = model(**encoded_input)

last_hidden_states = output.last_hidden_state

last_hidden_states=torch.mean(output.last_hidden_state, dim=1)

</code>

We provide the answer embedding in addition to embeddings of every sentence in the answer. Sentences are identified using spacy xx_ent_wiki_sm model.

Files changed (1) hide show
  1. README.md +16 -0
README.md ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - fr
5
+ - ar
6
+ - fa
7
+ - tr
8
+ - ru
9
+ - id
10
+ - es
11
+ - pt
12
+ - hi
13
+ - ur
14
+ size_categories:
15
+ - 10K<n<100K
16
+ ---