AnnaStudy commited on
Commit
4045d56
·
verified ·
1 Parent(s): eb14faf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +39 -38
README.md CHANGED
@@ -1,39 +1,40 @@
1
- ---
2
- license: apache-2.0
3
- language:
4
- - en
5
- base_model:
6
- - Qwen/Qwen3-Embedding-8B
7
- ---
8
- ## LEXA-8B
9
- 👉 **LEXA-8B**: LEXA: Legal Case Retrieval via Graph Contrastive Learning with Contextualised LLM Embeddings. More information is available in [**arXiv**](https://arxiv.org/abs/2405.11791) & [**GitHub**](https://github.com/yanran-tang/CaseGNN).
10
-
11
- ## Example Usage
12
-
13
- ```python
14
- from transformers import AutoModel, AutoTokenizer
15
- model = AutoModel.from_pretrained("AnnaStudy/LEXA-8B", torch_dtype="auto", device_map="auto")
16
- tokenizer = AutoTokenizer.from_pretrained("AnnaStudy/LEXA-8B")
17
- case_txt = "The following contains key components of a legal case. Legal facts..."
18
- tokenized = tokenizer(case_txt, return_tensors='pt', padding=True, truncation=True, max_length=2048)
19
- outputs = model(**tokenized)
20
- case_embedding = outputs.last_hidden_state[:, -1]
21
- ```
22
- ## Base Model
23
-
24
- ReaKase-8B is finetuned from **Qwen3-Embedding-8B**, which provides the underlying semantic representation capability.
25
-
26
- Reference: [Qwen/Qwen3-Embedding-8B](https://huggingface.co/Qwen/Qwen3-Embedding-8B)
27
-
28
- ## Cite
29
- If you find this repo useful, please cite
30
- ```
31
- @article
32
- {LEXA-8B,
33
- author = {Yanran Tang, Ruihong Qiu, Xue Li, Zi Huang},
34
- title = {LEXA: Legal Case Retrieval via Graph Contrastive Learning with Contextualised LLM Embeddings},
35
- journal = {CoRR},
36
- volume = {abs/2405.11791},
37
- year = {2025}
38
- }
 
39
  ```
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ base_model:
6
+ - Qwen/Qwen3-Embedding-8B
7
+ ---
8
+ ## LEXA-8B
9
+ ![LEXA-8B](LEXA.jpg)
10
+ 👉 **LEXA-8B**: LEXA: Legal Case Retrieval via Graph Contrastive Learning with Contextualised LLM Embeddings. More information is available in [**arXiv**](https://arxiv.org/abs/2405.11791) & [**GitHub**](https://github.com/yanran-tang/CaseGNN).
11
+
12
+ ## Example Usage
13
+
14
+ ```python
15
+ from transformers import AutoModel, AutoTokenizer
16
+ model = AutoModel.from_pretrained("AnnaStudy/LEXA-8B", torch_dtype="auto", device_map="auto")
17
+ tokenizer = AutoTokenizer.from_pretrained("AnnaStudy/LEXA-8B")
18
+ case_txt = "The following contains key components of a legal case. Legal facts..."
19
+ tokenized = tokenizer(case_txt, return_tensors='pt', padding=True, truncation=True, max_length=2048)
20
+ outputs = model(**tokenized)
21
+ case_embedding = outputs.last_hidden_state[:, -1]
22
+ ```
23
+ ## Base Model
24
+
25
+ ReaKase-8B is finetuned from **Qwen3-Embedding-8B**, which provides the underlying semantic representation capability.
26
+
27
+ Reference: [Qwen/Qwen3-Embedding-8B](https://huggingface.co/Qwen/Qwen3-Embedding-8B)
28
+
29
+ ## Cite
30
+ If you find this repo useful, please cite
31
+ ```
32
+ @article
33
+ {LEXA-8B,
34
+ author = {Yanran Tang, Ruihong Qiu, Xue Li, Zi Huang},
35
+ title = {LEXA: Legal Case Retrieval via Graph Contrastive Learning with Contextualised LLM Embeddings},
36
+ journal = {CoRR},
37
+ volume = {abs/2405.11791},
38
+ year = {2025}
39
+ }
40
  ```