Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -21,8 +21,8 @@ language:
|
|
21 |
onnx_path = hf_hub_download(repo_id='UKP-SQuARE/roberta-base-pf-boolq-onnx', filename='model.onnx') # or model_quant.onnx for quantization
|
22 |
onnx_model = InferenceSession(onnx_path, providers=['CPUExecutionProvider'])
|
23 |
|
24 |
-
context = '
|
25 |
-
question = '
|
26 |
tokenizer = AutoTokenizer.from_pretrained('UKP-SQuARE/roberta-base-pf-boolq-onnx')
|
27 |
|
28 |
inputs = tokenizer(question, context, padding=True, truncation=True, return_tensors='np')
|
|
|
21 |
onnx_path = hf_hub_download(repo_id='UKP-SQuARE/roberta-base-pf-boolq-onnx', filename='model.onnx') # or model_quant.onnx for quantization
|
22 |
onnx_model = InferenceSession(onnx_path, providers=['CPUExecutionProvider'])
|
23 |
|
24 |
+
context = 'English orthography typically represents vowel sounds with the five conventional vowel letters ⟨a, e, i, o, u⟩, as well as ⟨y⟩, which may also be a consonant depending on context. However, outside of abbreviations, there are a handful of words in English that do not have vowels, either because the vowel sounds are not written with vowel letters or because the words themselves are pronounced without vowel sounds'.
|
25 |
+
question = 'can there be a word without a vowel'
|
26 |
tokenizer = AutoTokenizer.from_pretrained('UKP-SQuARE/roberta-base-pf-boolq-onnx')
|
27 |
|
28 |
inputs = tokenizer(question, context, padding=True, truncation=True, return_tensors='np')
|