File size: 1,044 Bytes
4657079
 
 
 
 
 
 
 
 
 
 
5e29d01
 
 
 
 
 
 
 
 
 
8a739e5
5e29d01
 
 
 
 
 
 
 
8a739e5
5e29d01
 
 
 
 
 
 
 
8a739e5
5e29d01
 
4657079
 
f57fa72
4657079
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
license: unknown
datasets:
- fajrikoto/id_liputan6
language:
- id
metrics:
- rouge
base_model:
- cahya/t5-base-indonesian-summarization-cased
pipeline_tag: summarization

model-index:
  - name: BERT2BERT-Summarizer
    results:
      - task:
          type: text-summarization
        dataset:
          name: liputan6
          type: canonical
        metrics:
          - name: ROUGE-1
            type: ROUGE-1
            value: 0.525
      - task:
          type: text-summarization
        dataset:
          name: liputan6
          type: canonical
        metrics:
          - name: ROUGE-2
            type: ROUGE-2
            value: 0.448
      - task:
          type: text-summarization
        dataset:
          name: liputan6
          type: canonical
        metrics:
          - name: ROUGE-L
            type: ROUGE-L
            value: 0.491
---

model_path = "kairaamilanii/T5-ExtractiveSummarizer"

summarizer = T5ForConditionalGeneration.from_pretrained(model_path)

tokenizer = T5Tokenizer.from_pretrained(model_path)