Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -21,13 +21,13 @@ 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')
|
29 |
-
|
30 |
-
outputs = onnx_model.run(input_feed=dict(
|
31 |
```
|
32 |
|
33 |
## Architecture & Training
|
|
|
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 = 'Property tax or 'house tax' is a local tax on buildings, along with appurtenant land. It is and imposed on the Possessor (not the custodian of property as per 1978, 44th amendment of constitution). It resembles the US-type wealth tax and differs from the excise-type UK rate. The tax power is vested in the states and is delegated to local bodies, specifying the valuation method, rate band, and collection procedures. The tax base is the annual rental value (ARV) or area-based rating. Owner-occupied and other properties not producing rent are assessed on cost and then converted into ARV by applying a percentage of cost, usually four percent. Vacant land is generally exempt. Central government properties are exempt. Instead a 'service charge' is permissible under executive order. Properties of foreign missions also enjoy tax exemption without requiring reciprocity. The tax is usually accompanied by service taxes, e.g., water tax, drainage tax, conservancy (sanitation) tax, lighting tax, all using the same tax base. The rate structure is flat on rural (panchayat) properties, but in the urban (municipal) areas it is mildly progressive with about 80% of assessments falling in the first two brackets.'
|
25 |
+
question = 'is house tax and property tax are same'
|
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')
|
29 |
+
inputs = {key: np.array(inputs[key], dtype=np.int64) for key in inputs}
|
30 |
+
outputs = onnx_model.run(input_feed=dict(inputs), output_names=None)
|
31 |
```
|
32 |
|
33 |
## Architecture & Training
|