musapeker commited on
Commit
9b58c35
·
verified ·
1 Parent(s): e631382

Update username in card

Browse files
Files changed (1) hide show
  1. README.md +124 -124
README.md CHANGED
@@ -1,124 +1,124 @@
1
- ---
2
- language:
3
- - tr
4
- - en
5
- license: cc-by-nc-4.0
6
- library_name: sentence-transformers
7
- pipeline_tag: sentence-similarity
8
- base_model: intfloat/multilingual-e5-base
9
- tags:
10
- - sentence-transformers
11
- - feature-extraction
12
- - sentence-similarity
13
- - cross-lingual-retrieval
14
- - scientific-literature
15
- - turkish
16
- datasets:
17
- - mpeker/dergipark-tr-en-abstracts
18
- ---
19
-
20
- # tr-en-sci-e5-base
21
-
22
- **Turkish → English scientific literature retrieval.** Type a query in Turkish, find the relevant English paper
23
- (title + abstract). A 278M-parameter embedding model fine-tuned from
24
- [intfloat/multilingual-e5-base](https://huggingface.co/intfloat/multilingual-e5-base) on ~380k Turkish–English
25
- abstract pairs written by the authors of articles on [DergiPark](https://dergipark.org.tr).
26
-
27
- > **Türkçe özet:** Türkçe sorguyla İngilizce bilimsel makale bulmak için eğitilmiş bir embedding modeli.
28
- > DergiPark'taki yazarların kendi yazdığı Türkçe–İngilizce başlık, özet ve anahtar kelime çiftleriyle eğitildi.
29
- > Eğitimde hiç görülmemiş dergilerden oluşan test kümesinde, kendisinin yaklaşık iki katı büyüklükteki
30
- > bge-m3 ve turkish-e5-large modellerini geçiyor.
31
-
32
- ## Results
33
-
34
- Public test set of [`mpeker/dergipark-tr-en-abstracts`](https://huggingface.co/datasets/mpeker/dergipark-tr-en-abstracts):
35
- 16,983 English documents (title + abstract) from **journals never seen in training**, 2,000 Turkish queries per
36
- query type, exactly one relevant document per query (the same article).
37
-
38
- | Model | Title nDCG@10 | Title R@1 | Title R@10 | Title nDCG@10 (no shared words) | Keywords nDCG@10 | Keywords R@1 | Keywords R@10 |
39
- |---|---|---|---|---|---|---|---|
40
- | **tr-en-sci-e5-base (this model, 278M)** | **0.979** | **0.960** | **0.995** | **0.971** | **0.927** | **0.868** | **0.981** |
41
- | bge-m3 (568M) | 0.944 | 0.908 | 0.979 | 0.922 | 0.834 | 0.743 | 0.922 |
42
- | ytu-ce-cosmos/turkish-e5-large (560M) | 0.942 | 0.907 | 0.974 | 0.927 | 0.890 | 0.826 | 0.953 |
43
- | multilingual-e5-large-instruct (560M) | 0.889 | 0.840 | 0.934 | 0.850 | 0.789 | 0.687 | 0.886 |
44
- | Qwen3-Embedding-0.6B | 0.819 | 0.749 | 0.888 | 0.752 | 0.775 | 0.680 | 0.864 |
45
- | multilingual-e5-base (base model, 278M) | 0.760 | 0.671 | 0.849 | 0.672 | 0.668 | 0.559 | 0.783 |
46
- | MT (opus-mt-tr-en) + e5-base-v2 | 0.695 | 0.649 | 0.742 | 0.660 | 0.845 | 0.771 | 0.916 |
47
- | MT (opus-mt-tr-en) + BM25 | 0.645 | 0.589 | 0.703 | 0.578 | 0.762 | 0.674 | 0.848 |
48
- | BM25 (Turkish query on English docs) | 0.292 | 0.221 | 0.370 | 0.095 | 0.462 | 0.306 | 0.641 |
49
-
50
- - **Title** queries: the Turkish title of the article. **Keywords** queries: the Turkish author keywords, joined with `; `.
51
- - **No shared words**: the subset of title queries (1,150 of 2,000) that share no content word (≥3 letters, no digits)
52
- with their target document, i.e. names, years and international terms cannot help. This is the purely
53
- cross-lingual part of the task.
54
- - R@k: share of queries whose relevant document is in the top k.
55
-
56
- ## Usage
57
-
58
- The model follows the E5 convention: prefix queries with `query: ` and documents with `passage: `.
59
-
60
- ```python
61
- from sentence_transformers import SentenceTransformer
62
-
63
- model = SentenceTransformer("mpeker/tr-en-sci-e5-base")
64
-
65
- queries = ["query: göz dibi görüntülerinde derin öğrenme ile diyabetik retinopati tespiti"]
66
- docs = [
67
- "passage: Deep learning based detection of diabetic retinopathy from fundus images using convolutional neural networks.",
68
- "passage: The effect of climate change on wheat yield in Central Anatolia: a regression analysis.",
69
- ]
70
- q_emb = model.encode(queries, normalize_embeddings=True)
71
- d_emb = model.encode(docs, normalize_embeddings=True)
72
- print(model.similarity(q_emb, d_emb)) # first document scores highest
73
- ```
74
-
75
- For best results, index documents as `passage: <English title>. <English abstract>`.
76
-
77
- ## Training
78
-
79
- | | |
80
- |---|---|
81
- | Base model | intfloat/multilingual-e5-base (XLM-RoBERTa, 278M) |
82
- | Training data | 379,792 Turkish–English article pairs from 2,222 DergiPark journals (journal-disjoint from dev/test) |
83
- | Training rows | 837,539 (Turkish title → English doc, Turkish keywords → English doc, and Turkish abstract → English doc for 30% of articles) |
84
- | Loss | CachedMultipleNegativesRankingLoss (GradCache), in-batch negatives |
85
- | Batch size | 256 (GradCache mini-batch 16), no-duplicates sampler so one article never appears twice in a batch |
86
- | Learning rate / schedule | 2e-5, 10% linear warmup, 1 epoch (3,271 steps) |
87
- | Max sequence length | 256 tokens |
88
- | Precision / hardware | fp16, one RTX 4060 8 GB, 5 h 04 min |
89
- | Seed | 42 |
90
-
91
- Development-set nDCG@10 (10,000 documents, Turkish title queries) rose from 0.812 (base model) to 0.987.
92
-
93
- ## Data and splits
94
-
95
- Pairs were harvested from DergiPark's public OAI-PMH interface (843,394 records, October 2026). Both language
96
- sides were checked with a language heuristic, mis-tagged sides were swapped, copied titles removed, and pairs
97
- filtered by length, length ratio and exact duplicates, leaving 447,244 pairs. Splits are **by journal**:
98
- train 2,222 journals / dev 146 / test 417, stratified by subject area, so test journals and their topics are
99
- never seen in training.
100
-
101
- ## Limitations
102
-
103
- - **Known-item evaluation.** Each query has exactly one relevant document: its own article. Real searches can
104
- have many relevant papers; scores here measure how well the model links a Turkish description to the right
105
- English paper, not full topical relevance.
106
- - **Query style.** Training and test queries are titles, keyword lists and abstracts, not natural-language
107
- questions. Conversational queries may perform worse.
108
- - **Domain.** Documents are abstracts of Turkish journals across all fields (education, health, engineering,
109
- social sciences, humanities). Performance on other English corpora (e.g. PubMed) has not been measured yet.
110
- - **Truncation.** Trained with a 256-token limit; about 65% of English title+abstract documents are longer and
111
- were truncated during training.
112
- - **Baselines' training data.** Some baselines (e.g. turkish-e5-large, whose training data is not documented) may
113
- have seen DergiPark text during their own training.
114
-
115
- ## License and data provenance
116
-
117
- The model is released under **CC BY-NC 4.0** (non-commercial). It was trained on abstracts from all harvested
118
- DergiPark journals, including journals that publish under non-commercial licenses or state no license. The model
119
- weights do not redistribute these texts. The companion dataset contains only pairs from journals with a
120
- Creative Commons license that allows derivatives (CC BY, BY-SA, BY-NC, BY-NC-SA); every row has a `license` column.
121
-
122
- ## Citation
123
-
124
- A paper is in preparation. Until then, please cite this repository.
 
1
+ ---
2
+ language:
3
+ - tr
4
+ - en
5
+ license: cc-by-nc-4.0
6
+ library_name: sentence-transformers
7
+ pipeline_tag: sentence-similarity
8
+ base_model: intfloat/multilingual-e5-base
9
+ tags:
10
+ - sentence-transformers
11
+ - feature-extraction
12
+ - sentence-similarity
13
+ - cross-lingual-retrieval
14
+ - scientific-literature
15
+ - turkish
16
+ datasets:
17
+ - musapeker/dergipark-tr-en-abstracts
18
+ ---
19
+
20
+ # tr-en-sci-e5-base
21
+
22
+ **Turkish → English scientific literature retrieval.** Type a query in Turkish, find the relevant English paper
23
+ (title + abstract). A 278M-parameter embedding model fine-tuned from
24
+ [intfloat/multilingual-e5-base](https://huggingface.co/intfloat/multilingual-e5-base) on ~380k Turkish–English
25
+ abstract pairs written by the authors of articles on [DergiPark](https://dergipark.org.tr).
26
+
27
+ > **Türkçe özet:** Türkçe sorguyla İngilizce bilimsel makale bulmak için eğitilmiş bir embedding modeli.
28
+ > DergiPark'taki yazarların kendi yazdığı Türkçe–İngilizce başlık, özet ve anahtar kelime çiftleriyle eğitildi.
29
+ > Eğitimde hiç görülmemiş dergilerden oluşan test kümesinde, kendisinin yaklaşık iki katı büyüklükteki
30
+ > bge-m3 ve turkish-e5-large modellerini geçiyor.
31
+
32
+ ## Results
33
+
34
+ Public test set of [`musapeker/dergipark-tr-en-abstracts`](https://huggingface.co/datasets/musapeker/dergipark-tr-en-abstracts):
35
+ 16,983 English documents (title + abstract) from **journals never seen in training**, 2,000 Turkish queries per
36
+ query type, exactly one relevant document per query (the same article).
37
+
38
+ | Model | Title nDCG@10 | Title R@1 | Title R@10 | Title nDCG@10 (no shared words) | Keywords nDCG@10 | Keywords R@1 | Keywords R@10 |
39
+ |---|---|---|---|---|---|---|---|
40
+ | **tr-en-sci-e5-base (this model, 278M)** | **0.979** | **0.960** | **0.995** | **0.971** | **0.927** | **0.868** | **0.981** |
41
+ | bge-m3 (568M) | 0.944 | 0.908 | 0.979 | 0.922 | 0.834 | 0.743 | 0.922 |
42
+ | ytu-ce-cosmos/turkish-e5-large (560M) | 0.942 | 0.907 | 0.974 | 0.927 | 0.890 | 0.826 | 0.953 |
43
+ | multilingual-e5-large-instruct (560M) | 0.889 | 0.840 | 0.934 | 0.850 | 0.789 | 0.687 | 0.886 |
44
+ | Qwen3-Embedding-0.6B | 0.819 | 0.749 | 0.888 | 0.752 | 0.775 | 0.680 | 0.864 |
45
+ | multilingual-e5-base (base model, 278M) | 0.760 | 0.671 | 0.849 | 0.672 | 0.668 | 0.559 | 0.783 |
46
+ | MT (opus-mt-tr-en) + e5-base-v2 | 0.695 | 0.649 | 0.742 | 0.660 | 0.845 | 0.771 | 0.916 |
47
+ | MT (opus-mt-tr-en) + BM25 | 0.645 | 0.589 | 0.703 | 0.578 | 0.762 | 0.674 | 0.848 |
48
+ | BM25 (Turkish query on English docs) | 0.292 | 0.221 | 0.370 | 0.095 | 0.462 | 0.306 | 0.641 |
49
+
50
+ - **Title** queries: the Turkish title of the article. **Keywords** queries: the Turkish author keywords, joined with `; `.
51
+ - **No shared words**: the subset of title queries (1,150 of 2,000) that share no content word (≥3 letters, no digits)
52
+ with their target document, i.e. names, years and international terms cannot help. This is the purely
53
+ cross-lingual part of the task.
54
+ - R@k: share of queries whose relevant document is in the top k.
55
+
56
+ ## Usage
57
+
58
+ The model follows the E5 convention: prefix queries with `query: ` and documents with `passage: `.
59
+
60
+ ```python
61
+ from sentence_transformers import SentenceTransformer
62
+
63
+ model = SentenceTransformer("musapeker/tr-en-sci-e5-base")
64
+
65
+ queries = ["query: göz dibi görünt��lerinde derin öğrenme ile diyabetik retinopati tespiti"]
66
+ docs = [
67
+ "passage: Deep learning based detection of diabetic retinopathy from fundus images using convolutional neural networks.",
68
+ "passage: The effect of climate change on wheat yield in Central Anatolia: a regression analysis.",
69
+ ]
70
+ q_emb = model.encode(queries, normalize_embeddings=True)
71
+ d_emb = model.encode(docs, normalize_embeddings=True)
72
+ print(model.similarity(q_emb, d_emb)) # first document scores highest
73
+ ```
74
+
75
+ For best results, index documents as `passage: <English title>. <English abstract>`.
76
+
77
+ ## Training
78
+
79
+ | | |
80
+ |---|---|
81
+ | Base model | intfloat/multilingual-e5-base (XLM-RoBERTa, 278M) |
82
+ | Training data | 379,792 Turkish–English article pairs from 2,222 DergiPark journals (journal-disjoint from dev/test) |
83
+ | Training rows | 837,539 (Turkish title → English doc, Turkish keywords → English doc, and Turkish abstract → English doc for 30% of articles) |
84
+ | Loss | CachedMultipleNegativesRankingLoss (GradCache), in-batch negatives |
85
+ | Batch size | 256 (GradCache mini-batch 16), no-duplicates sampler so one article never appears twice in a batch |
86
+ | Learning rate / schedule | 2e-5, 10% linear warmup, 1 epoch (3,271 steps) |
87
+ | Max sequence length | 256 tokens |
88
+ | Precision / hardware | fp16, one RTX 4060 8 GB, 5 h 04 min |
89
+ | Seed | 42 |
90
+
91
+ Development-set nDCG@10 (10,000 documents, Turkish title queries) rose from 0.812 (base model) to 0.987.
92
+
93
+ ## Data and splits
94
+
95
+ Pairs were harvested from DergiPark's public OAI-PMH interface (843,394 records, October 2026). Both language
96
+ sides were checked with a language heuristic, mis-tagged sides were swapped, copied titles removed, and pairs
97
+ filtered by length, length ratio and exact duplicates, leaving 447,244 pairs. Splits are **by journal**:
98
+ train 2,222 journals / dev 146 / test 417, stratified by subject area, so test journals and their topics are
99
+ never seen in training.
100
+
101
+ ## Limitations
102
+
103
+ - **Known-item evaluation.** Each query has exactly one relevant document: its own article. Real searches can
104
+ have many relevant papers; scores here measure how well the model links a Turkish description to the right
105
+ English paper, not full topical relevance.
106
+ - **Query style.** Training and test queries are titles, keyword lists and abstracts, not natural-language
107
+ questions. Conversational queries may perform worse.
108
+ - **Domain.** Documents are abstracts of Turkish journals across all fields (education, health, engineering,
109
+ social sciences, humanities). Performance on other English corpora (e.g. PubMed) has not been measured yet.
110
+ - **Truncation.** Trained with a 256-token limit; about 65% of English title+abstract documents are longer and
111
+ were truncated during training.
112
+ - **Baselines' training data.** Some baselines (e.g. turkish-e5-large, whose training data is not documented) may
113
+ have seen DergiPark text during their own training.
114
+
115
+ ## License and data provenance
116
+
117
+ The model is released under **CC BY-NC 4.0** (non-commercial). It was trained on abstracts from all harvested
118
+ DergiPark journals, including journals that publish under non-commercial licenses or state no license. The model
119
+ weights do not redistribute these texts. The companion dataset contains only pairs from journals with a
120
+ Creative Commons license that allows derivatives (CC BY, BY-SA, BY-NC, BY-NC-SA); every row has a `license` column.
121
+
122
+ ## Citation
123
+
124
+ A paper is in preparation. Until then, please cite this repository.