Update README.md
Browse files
README.md
CHANGED
@@ -42,6 +42,19 @@ model = AutoModelForMaskedLM.from_pretrained("makiart/multilingual-ModernBert-la
|
|
42 |
tokenizer = AutoTokenizer.from_pretrained("makiart/multilingual-ModernBert-large")
|
43 |
fill_mask = pipeline("fill-mask", model=model, tokenizer=tokenizer)
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
results = fill_mask("Pinning our hopes on the unreliable notion of our potential is the root of all our [MASK].")
|
46 |
|
47 |
for result in results:
|
@@ -52,6 +65,18 @@ for result in results:
|
|
52 |
# {'score': 0.06005859375, 'token': 23209, 'token_str': ' fears', 'sequence': 'Pinning our hopes on the unreliable notion of our potential is the root of all our fears.'}
|
53 |
# {'score': 0.0322265625, 'token': 34565, 'token_str': ' troubles', 'sequence': 'Pinning our hopes on the unreliable notion of our potential is the root of all our troubles.'}
|
54 |
# {'score': 0.0250244140625, 'token': 18707, 'token_str': ' dreams', 'sequence': 'Pinning our hopes on the unreliable notion of our potential is the root of all our dreams.'}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
```
|
56 |
|
57 |
## Model Description
|
|
|
42 |
tokenizer = AutoTokenizer.from_pretrained("makiart/multilingual-ModernBert-large")
|
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.09716796875, 'token': 131582, 'token_str': ' 통해', 'sequence': '우리의 대부분의 고뇌는 가능했을 또 다른 인생을 통해 데서 시작된다.'}
|
52 |
+
# {'score': 0.058837890625, 'token': 61298, 'token_str': ' 한', 'sequence': '우리의 대부분의 고뇌는 가능했을 또 다른 인생을 한 데서 시작된다.'}
|
53 |
+
# {'score': 0.04296875, 'token': 128956, 'token_str': ' 하는', 'sequence': '우리의 대부분의 고뇌는 가능했을 또 다른 인생을 하는 데서 시작된다.'}
|
54 |
+
# {'score': 0.02783203125, 'token': 130039, 'token_str': ' 위해', 'sequence': '우리의 대부분의 고뇌는 가능했을 또 다른 인생을 위해 데서 시작된다.'}
|
55 |
+
# {'score': 0.026123046875, 'token': 134108, '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:
|
|
|
65 |
# {'score': 0.06005859375, 'token': 23209, 'token_str': ' fears', 'sequence': 'Pinning our hopes on the unreliable notion of our potential is the root of all our fears.'}
|
66 |
# {'score': 0.0322265625, 'token': 34565, 'token_str': ' troubles', 'sequence': 'Pinning our hopes on the unreliable notion of our potential is the root of all our troubles.'}
|
67 |
# {'score': 0.0250244140625, 'token': 18707, 'token_str': ' dreams', 'sequence': 'Pinning our hopes on the unreliable notion of our potential is the root of all our dreams.'}
|
68 |
+
|
69 |
+
|
70 |
+
results = fill_mask("我们必须[MASK],我们只能成为此时此地的那个自己,而无法成为其他任何人。")
|
71 |
+
|
72 |
+
for result in results:
|
73 |
+
print(result)
|
74 |
+
|
75 |
+
# {'score': 0.1904296875, 'token': 104953, 'token_str': '承认', 'sequence': '我们必须承认,我们只能成为此时此地的那个自己,而无法成为其他任何人。'}
|
76 |
+
# {'score': 0.1484375, 'token': 99392, 'token_str': '知道', 'sequence': '我们必须知道,我们只能成为此时此地的那个自己,而无法成为其他任何人。'}
|
77 |
+
# {'score': 0.1484375, 'token': 106836, 'token_str': '认识到', 'sequence': '我们必须认识到,我们只能成为此时此地的那个自己,而无法成为其他任何人。'}
|
78 |
+
# {'score': 0.10205078125, 'token': 101265, 'token_str': '明白', 'sequence': '我们必须明白,我们只能成为此时此地的那个自己,而无法成为其他任何人。'}
|
79 |
+
# {'score': 0.0703125, 'token': 105712, 'token_str': '记住', 'sequence': '我们必须记住,我们只能成为此时此地的那个自己,而无法成为其他任何人。'}
|
80 |
```
|
81 |
|
82 |
## Model Description
|