Shaltiel commited on
Commit
1d09167
โ€ข
1 Parent(s): b39e253

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +29 -15
README.md CHANGED
@@ -25,7 +25,7 @@ oracle = pipeline('ner', model='dicta-il/dictabert-large-ner', aggregation_strat
25
  from tokenizers.decoders import WordPiece
26
  oracle.tokenizer.backend_tokenizer.decoder = WordPiece()
27
 
28
- sentence = 'ื”ื›ื™ ื“ืจืžื˜ื™ ืฉื™ืฉ: ืฉืขืจ ืฉืœ ืกื“ืจื™ืง ื”ืžื—ืœื™ืฃ ื”ืขื ื™ืง ืœื–ื™ื• ืืจื™ื” ื ื™ืฆื—ื•ืŸ ืฉื ื™ ื‘ืฉืœื•ืฉื” ืžืฉื—ืงื™ื ื•ืขืœื™ื™ื” ืžืขืœ ื”ืงื• ื”ืื“ื•ื.'
29
  oracle(sentence)
30
  ```
31
 
@@ -34,24 +34,38 @@ Output:
34
  [
35
  {
36
  "entity_group": "PER",
37
- "score": 0.9998621,
38
- "word": "ืกื“ืจื™ืง",
39
- "start": 22,
40
- "end": 27
41
  },
42
  {
43
- "entity_group": "PER",
44
- "score": 0.9999503,
45
- "word": "ืœื–ื™",
46
- "start": 41,
47
- "end": 44
48
  },
49
  {
50
- "entity_group": "PER",
51
- "score": 0.9998287,
52
- "word": "ืืจื™ื”",
53
- "start": 46,
54
- "end": 50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  }
56
  ]
57
  ```
 
25
  from tokenizers.decoders import WordPiece
26
  oracle.tokenizer.backend_tokenizer.decoder = WordPiece()
27
 
28
+ sentence = '''ื“ื•ื“ ื‘ืŸ-ื’ื•ืจื™ื•ืŸ (16 ื‘ืื•ืงื˜ื•ื‘ืจ 1886 - ื•' ื‘ื›ืกืœื• ืชืฉืœ"ื“) ื”ื™ื” ืžื“ื™ื ืื™ ื™ืฉืจืืœื™ ื•ืจืืฉ ื”ืžืžืฉืœื” ื”ืจืืฉื•ืŸ ืฉืœ ืžื“ื™ื ืช ื™ืฉืจืืœ.'''
29
  oracle(sentence)
30
  ```
31
 
 
34
  [
35
  {
36
  "entity_group": "PER",
37
+ "score": 0.9998988,
38
+ "word": "ื“ื•ื“ ื‘ืŸ - ื’ื•ืจื™ื•ืŸ",
39
+ "start": 0,
40
+ "end": 13
41
  },
42
  {
43
+ "entity_group": "TIMEX",
44
+ "score": 0.99989706,
45
+ "word": "16 ื‘ืื•ืงื˜ื•ื‘ืจ 1886",
46
+ "start": 15,
47
+ "end": 31
48
  },
49
  {
50
+ "entity_group": "TIMEX",
51
+ "score": 0.99991614,
52
+ "word": "ื•' ื‘ื›ืกืœื• ืชืฉืœ\"ื“",
53
+ "start": 34,
54
+ "end": 48
55
+ },
56
+ {
57
+ "entity_group": "TTL",
58
+ "score": 0.9931756,
59
+ "word": "ื•ืจืืฉ ื”ืžืžืฉืœื”",
60
+ "start": 68,
61
+ "end": 79
62
+ },
63
+ {
64
+ "entity_group": "GPE",
65
+ "score": 0.9995702,
66
+ "word": "ื™ืฉืจืืœ",
67
+ "start": 96,
68
+ "end": 101
69
  }
70
  ]
71
  ```