lj408 commited on
Commit
c959e67
·
verified ·
1 Parent(s): 7b2d0eb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +39 -3
README.md CHANGED
@@ -1,3 +1,39 @@
1
- ---
2
- license: cc-by-nc-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ language:
4
+ - en
5
+ ---
6
+
7
+ ## Introduction
8
+
9
+ The model is used to evaluate the quality of a candidate patent claim compared to the gold claim.
10
+
11
+ ## Example Usage
12
+
13
+ ```python
14
+ from transformers import AutoModel, AutoTokenizer
15
+ import torch
16
+
17
+ device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
18
+ tokenizer = AutoTokenizer.from_pretrained("lj408/PatClaimEval-Quality", trust_remote_code=True)
19
+ model = AutoModel.from_pretrained("lj408/PatClaimEval-Quality", trust_remote_code=True).to(device)
20
+ gold_claim = "1. A computer-implemented method comprising: identifying a primary code segment; ..."
21
+ candidate_claim = "1. A computer-implemented method for managing logger source code segments in a source code development platform, ..."
22
+ res = model.score_pair(gold_claim, candidate_claim , tokenizer, device)
23
+ print(res)
24
+ ```
25
+
26
+ Note that this evaluation method can serve as a reference, but it may not be accurate in all cases. Users should rely on evaluations by patent professionals for more precise results.
27
+
28
+ ## Citation
29
+
30
+ If you use this model or code, please cite our paper:
31
+
32
+ ```
33
+ @article{jiang2025towards,
34
+ title={Towards Better Evaluation for Generated Patent Claims},
35
+ author={Jiang, Lekang and Scherz, Pascal A and Goetz, Stephan},
36
+ journal={arXiv preprint arXiv:2505.11095},
37
+ year={2025}
38
+ }
39
+ ```