ilsp
/

pprokopidis commited on
Commit
9711bb6
·
verified ·
1 Parent(s): 7e72f27

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -1
README.md CHANGED
@@ -13,7 +13,14 @@ pipeline_tag: text-classification
13
  model_path = hf_hub_download(repo_id="pprokopidis/greek-admin-court-decisions-paragraph-classifier", filename="20241124-model.ftz")
14
  sample_decision = hf_hub_download(repo_id="pprokopidis/greek-admin-court-decisions-paragraph-classifier", filename="sample_data/Α2485_2023.txt")
15
  model = load_model(model_path)
16
- labels_map = {'preamble': '__label__0', '__label__0': 'preamble', 'panel': '__label__1', '__label__1': 'panel', 'litigants': '__label__2', '__label__2': 'litigants', 'justification': '__label__3', '__label__3': 'justification', 'decision': '__label__4', '__label__4': 'decision', 'post': '__label__5', '__label__5': 'post'}
 
 
 
 
 
 
 
17
  with open(sample_decision) as inf:
18
  text = NL.join([p for p in inf.read().split(NL) if p.strip()])
19
  nchars = 150
 
13
  model_path = hf_hub_download(repo_id="pprokopidis/greek-admin-court-decisions-paragraph-classifier", filename="20241124-model.ftz")
14
  sample_decision = hf_hub_download(repo_id="pprokopidis/greek-admin-court-decisions-paragraph-classifier", filename="sample_data/Α2485_2023.txt")
15
  model = load_model(model_path)
16
+ labels_map = {
17
+ 'preamble': '__label__0', '__label__0': 'preamble',
18
+ 'panel': '__label__1', '__label__1': 'panel',
19
+ 'litigants': '__label__2', '__label__2': 'litigants',
20
+ 'justification': '__label__3', '__label__3': 'justification',
21
+ 'decision': '__label__4', '__label__4': 'decision',
22
+ 'post': '__label__5', '__label__5': 'post'}
23
+
24
  with open(sample_decision) as inf:
25
  text = NL.join([p for p in inf.read().split(NL) if p.strip()])
26
  nchars = 150