fillblank-1.0.1
توضیحات
Fill the blank using transformers
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fillblank-1.0.1 |
| نام | fillblank |
| نسخه کتابخانه | 1.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Sagor Sarker |
| ایمیل نویسنده | sagorhem3532@gmail.com |
| آدرس صفحه اصلی | https://github.com/sagorbrur/fillblank |
| آدرس اینترنتی | https://pypi.org/project/fillblank/ |
| مجوز | MIT |
# Fill Blank
In our early education day, while learning english one of the most important task was to fill the blanks.
Two type of question was provided:
* Cloze test with clues
* Cloze test without clues
It was totally difficult for non native English learner to fill the blanks. And cloze test without cloze was the most trickier.
But now a days machine can fill the blanks smartly. Mask Language Modeling(MLM) based language model give machine such power.
**FillBlank** is an BERT based package, can fill `cloze test without clues` type text. This package mostly build using [huggingface]() transformers.
## Installation
```
pip install fillblank
```
## Dependency
* pytorch 1.6+
## How to Fill The Blank
```py
from fillblank.fillblank import FillBlank
text = "what a <blank>! She <blank> to eat."
filltheblank = FillBlank()
output, output_dictionary = filltheblank.fill(text)
print(output)
print(output_dictionary['predict_words'])
# what a <mess>! she <needed> to eat.
#['mess', 'needed']
```
نیازمندی
| مقدار | نام |
|---|---|
| - | transformers |
| - | nltk |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl fillblank-1.0.1:
pip install fillblank-1.0.1.whl
نصب پکیج tar.gz fillblank-1.0.1:
pip install fillblank-1.0.1.tar.gz