Saripudin commited on
Commit
ff42913
1 Parent(s): 5b36232

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -9
app.py CHANGED
@@ -25,23 +25,32 @@ def zero_shot(doc, candidates):
25
 
26
  examples_text = [
27
  [
28
- "I am very happy today",
29
- "positive, negative"
30
  ],
31
  [
32
- "This is a news about Soccer",
33
- "world, politics, technology, sport"
34
- ]
 
 
 
 
35
  ]
36
  examples_ner = [
37
  [
38
- "The Moon is Earth's only natural satellite. It orbits at an average distance of 384,400 km (238,900 mi), about 30 times the diameter of Earth. Over time Earth's gravity has caused tidal locking, causing the same side of the Moon to always face Earth. Because of this, the lunar day and the lunar month are the same length, at 29.5 Earth days. The Moon's gravitational pull – and to a lesser extent, the Sun's – are the main drivers of Earth's tides.",
39
- "celestial body,quantity,physical concept",
40
  0.3
41
  ],
42
  [
43
- "test aja",
44
- "celestial body,quantity,physical concept",
 
 
 
 
 
45
  0.3
46
  ],
47
  ]
 
25
 
26
  examples_text = [
27
  [
28
+ "Pasar saham ngalaman panurunan nu signifikan akibat kateupastian global.",
29
+ "ékonomi, pulitik, bisnis, kauangan, téknologi"
30
  ],
31
  [
32
+ "I am very happy today but suddenly sad because of the recent news.",
33
+ "positive, negative, neutral"
34
+ ],
35
+ [
36
+ "I just received the best news ever! I got the job I always wanted!",
37
+ "joy, sadness, anger, surprise, fear, disgust"
38
+ ],
39
  ]
40
  examples_ner = [
41
  [
42
+ "Pada tahun 1945, Indonesia memproklamasikan kemerdekaannya dari penjajahan Belanda. Proklamasi tersebut dibacakan oleh Soekarno dan Mohammad Hatta di Jakarta.",
43
+ "tahun, negara, tokoh, lokasi",
44
  0.3
45
  ],
46
  [
47
+ "Mount Everest is the highest mountain above sea level, located in the Himalayas. It stands at 8,848 meters (29,029 ft) and attracts many climbers.",
48
+ "location, measurement, person",
49
+ 0.3
50
+ ],
51
+ [
52
+ "Perusahaan teknologi raksasa, Google, mbukak kantor cabang anyar ing Jakarta ing wulan Januari 2020 kanggo nggedhekake operasine ing Asia Tenggara",
53
+ "perusahaan, lokasi, wulan, taun",
54
  0.3
55
  ],
56
  ]