Metadata-Version: 2.1
Name: iftc
Version: 1.1.4
Summary: Spelling Correction for Vietnamese Informal Text
Home-page: https://gitlab.ftech.ai/nlp/research/ift-correction
Author: namph
Author-email: namph@ftech.ai
License: MIT
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: Vietnamese
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.4
Description-Content-Type: text/markdown
Requires-Dist: nltk ==3.5
Requires-Dist: pandas
Requires-Dist: xlrd
Requires-Dist: dill

# IFT Correction

IFT Correction(Informal Text Correction) is a library of spelling correction for Vietnamese informal text type(informal text is the type of text as daily communication messages)

## Installation

```
pip install iftc
```

## Example Usage

### Only spelling correction for acronyms

```python
from iftc.spelling_corrector import SpellingCorrector

corrector = SpellingCorrector()

corrected_text = corrector.acronym_correction('b ơi, món này giá bn thế')
print(corrected_text)
```

This should print:

```console
'bạn ơi, món này giá bao nhiêu thế'
```

### Spelling correction for detect spelling error

```python
from iftc.spelling_corrector import SpellingCorrector

corrector = SpellingCorrector()

text, word_candidates = corrector.detect_spelling_error('b ơi, món này giá bn thế')
print(word_candidates)
```
