tkhangg0910 commited on
Commit
92a09a4
·
verified ·
1 Parent(s): 542f6ed

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +28 -4
README.md CHANGED
@@ -12,14 +12,38 @@ tags:
12
  - semantic_similarity
13
  ---
14
 
15
- ### ViConBERT models <a name="models2"></a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
 
 
 
18
  Model | #params | Arch. | Max length | Training data | License
19
  ---|---|---|---|---|---
20
- [`tkhangg0910/viconbert-base`](https://huggingface.co/tkhangg0910/viconbert-base) | 135M | base | 256 | ViConWSD | [MIT License](https://github.com/VinAIResearch/PhoBERT/blob/master/LICENSE)
21
- [`tkhangg0910/viconbert-large`](https://huggingface.co/tkhangg0910/viconbert-large) | 370M | large | 256 | ViConWSD | [MIT License](https://github.com/VinAIResearch/PhoBERT/blob/master/LICENSE)
22
-
23
  ### Example usage <a name="usage2"></a>
24
  SpanExtractor and text_normalize are implemented in [`Implementation`](https://github.com/tkhangg0910/ViConBERT/tree/main/utils)
25
  ```python
 
12
  - semantic_similarity
13
  ---
14
 
15
+ # ViConBERT: Context-Gloss Aligned Vietnamese Word Embedding for Polysemous and Sense-Aware Representations
16
+
17
+ This repository is official implementation of the paper: ViConBERT: Context-Gloss Aligned Vietnamese Word Embedding for Polysemous and Sense-Aware Representations
18
+
19
+ ![](https://github.com/tkhangg0910/ViConBERT/blob/main/figs/architecture.jpg?raw=true)
20
+ <p align="center"><em>Main architecture</em></p>
21
+
22
+ * **Abstract:**
23
+ Recent progress in contextualized word embeddings has significantly advanced tasks involving word semantics, such as Word Sense Disambiguation (WSD) and contextual semantic similarity. However, these developments have largely focused on high-resource languages like English, while low-resource languages such as Vietnamese remain underexplored. This paper introduces a novel training framework for Vietnamese contextualized word embeddings, which integrates contrastive learning (SimCLR) and distillation with the gloss embedding space to better model word meaning. Additionally, we introduce a new dataset specifically designed to evaluate semantic understanding tasks in Vietnamese, which we constructed as part of this work. Experimental results demonstrate that ViConBERT outperforms strong baselines on the WSD task (F1 = 0.87) and achieves competitive results on ViCon (AP = 0.88) and ViSim-400 (Spearman’s $\rho$ = 0.60), effectively modeling both binary and graded semantic relations in Vietnamese.
24
+
25
+ ### Installation <a name="install2"></a>
26
+ - Install `transformers` with pip: `pip install transformers`, or [install `transformers` from source](https://huggingface.co/docs/transformers/installation#installing-from-source). <br />
27
+ Note that we merged a slow tokenizer for PhoBERT into the main `transformers` branch. The process of merging a fast tokenizer for PhoBERT is in the discussion, as mentioned in [this pull request](https://github.com/huggingface/transformers/pull/17254#issuecomment-1133932067). If users would like to utilize the fast tokenizer, the users might install `transformers` as follows:
28
+
29
+ ```
30
+ git clone --single-branch --branch fast_tokenizers_BARTpho_PhoBERT_BERTweet https://github.com/datquocnguyen/transformers.git
31
+ cd transformers
32
+ pip3 install -e .
33
+ ```
34
+
35
+ - Install others dependencies:
36
+ ```
37
+ pip3 install -r requirements.txt
38
+ ```
39
 
40
 
41
+ ### ViConBERT models <a name="models2"></a>
42
+
43
  Model | #params | Arch. | Max length | Training data | License
44
  ---|---|---|---|---|---
45
+ [`tkhangg0910/viconbert-base`](https://huggingface.co/tkhangg0910/viconbert-base) | 135M | base | 256 | ViConWSD
46
+ [`tkhangg0910/viconbert-large`](https://huggingface.co/tkhangg0910/viconbert-large) | 370M | large | 256 | ViConWSD
 
47
  ### Example usage <a name="usage2"></a>
48
  SpanExtractor and text_normalize are implemented in [`Implementation`](https://github.com/tkhangg0910/ViConBERT/tree/main/utils)
49
  ```python