makiart commited on
Commit
10aa569
·
verified ·
1 Parent(s): 4b21069

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -6
README.md CHANGED
@@ -42,16 +42,41 @@ model = AutoModelForMaskedLM.from_pretrained("makiart/multilingual-ModernBert-ba
42
  tokenizer = AutoTokenizer.from_pretrained("makiart/multilingual-ModernBert-base")
43
  fill_mask = pipeline("fill-mask", model=model, tokenizer=tokenizer)
44
 
45
- results = fill_mask("We must learn to [MASK] that we can be nothing other than who we are here and now.")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
  for result in results:
48
  print(result)
49
 
50
- # {'score': 0.2373046875, 'token': 4411, 'token_str': ' believe', 'sequence': 'We must learn to believe that we can be nothing other than who we are here and now.'}
51
- # {'score': 0.09912109375, 'token': 4193, 'token_str': ' accept', 'sequence': 'We must learn to accept that we can be nothing other than who we are here and now.'}
52
- # {'score': 0.09912109375, 'token': 15282, 'token_str': ' recognize', 'sequence': 'We must learn to recognize that we can be nothing other than who we are here and now.'}
53
- # {'score': 0.0771484375, 'token': 13083, 'token_str': ' realize', 'sequence': 'We must learn to realize that we can be nothing other than who we are here and now.'}
54
- # {'score': 0.06005859375, 'token': 13217, 'token_str': ' ourselves', 'sequence': 'We must learn to ourselves that we can be nothing other than who we are here and now.'}
55
  ```
56
 
57
  ## Model Description
 
42
  tokenizer = AutoTokenizer.from_pretrained("makiart/multilingual-ModernBert-base")
43
  fill_mask = pipeline("fill-mask", model=model, tokenizer=tokenizer)
44
 
45
+
46
+ results = fill_mask("우리의 대부분의 고뇌는 가능했을 또 다른 인생을 [MASK] 데서 시작된다.")
47
+
48
+ for result in results:
49
+ print(result)
50
+
51
+ # {'score': 0.248046875, 'token': 128956, 'token_str': ' 하는', 'sequence': '우리의 대부분의 고뇌는 가능했을 또 다른 인생을 하는 데서 시작된다.'}
52
+ # {'score': 0.1328125, 'token': 61298, 'token_str': ' 한', 'sequence': '우리의 대부분의 고뇌는 가능했을 또 다른 인생을 한 데서 시작된다.'}
53
+ # {'score': 0.06689453125, 'token': 95002, 'token_str': ' 할', 'sequence': '우리의 대부분의 고뇌는 가능했을 또 다른 인생을 할 데서 시작된다.'}
54
+ # {'score': 0.055419921875, 'token': 130679, 'token_str': ' 위한', 'sequence': '우리의 대부분의 고뇌는 가능했을 또 다른 인생을 위한 데서 시작된다.'}
55
+ # {'score': 0.04052734375, 'token': 131582, 'token_str': ' 통해', 'sequence': '우리의 대부분의 고뇌는 가능했을 또 다른 인생을 통해 데서 시작된다.'}
56
+
57
+
58
+ results = fill_mask("Pinning our hopes on the unreliable notion of our potential is the root of all our [MASK].")
59
+
60
+ for result in results:
61
+ print(result)
62
+
63
+ # {'score': 0.20703125, 'token': 5322, 'token_str': ' problems', 'sequence': 'Pinning our hopes on the unreliable notion of our potential is the root of all our problems.'}
64
+ # {'score': 0.09765625, 'token': 27850, 'token_str': ' failures', 'sequence': 'Pinning our hopes on the unreliable notion of our potential is the root of all our failures.'}
65
+ # {'score': 0.040771484375, 'token': 34565, 'token_str': ' troubles', 'sequence': 'Pinning our hopes on the unreliable notion of our potential is the root of all our troubles.'}
66
+ # {'score': 0.03173828125, 'token': 18707, 'token_str': ' dreams', 'sequence': 'Pinning our hopes on the unreliable notion of our potential is the root of all our dreams.'}
67
+ # {'score': 0.028076171875, 'token': 23209, 'token_str': ' fears', 'sequence': 'Pinning our hopes on the unreliable notion of our potential is the root of all our fears.'}
68
+
69
+
70
+ results = fill_mask("我们必须[MASK],我们只能成为此时此地的那个自己,而无法成为其他任何人。")
71
 
72
  for result in results:
73
  print(result)
74
 
75
+ # {'score': 0.177734375, 'token': 99392, 'token_str': '知道', 'sequence': '我们必须知道,我们只能成为此时此地的那个自己,而无法成为其他任何人。'}
76
+ # {'score': 0.138671875, 'token': 104953, 'token_str': '承认', 'sequence': '我们必须承认,我们只能成为此时此地的那个自己,而无法成为其他任何人。'}
77
+ # {'score': 0.12255859375, 'token': 101265, 'token_str': '明白', 'sequence': '我们必须明白,我们只能成为此时此地的那个自己,而无法成为其他任何人。'}
78
+ # {'score': 0.07421875, 'token': 105712, 'token_str': '记住', 'sequence': '我们必须记住,我们只能成为此时此地的那个自己,而无法成为其他任何人。'}
79
+ # {'score': 0.0654296875, 'token': 106836, 'token_str': '认识到', 'sequence': '我们必须认识到,我们只能成为此时此地的那个自己,而无法成为其他任何人。'}
80
  ```
81
 
82
  ## Model Description