stephen-cheng / Spelling_Correction_with_Soft-Masked_BERT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Soft-Masked Bert Model

Prerequired packages

pip install -r requirements.txt

Parameters:

The length of each sentence is between 4 and 200. So,

  • max_len = 32
  • min_len = 2

How to run?

  • Prepare Data:

python data_prepare.py

  • Process Data:

python data_process.py

  • Train Models:

python train.py

  • Test Models:

python test.py

About


Languages

Language:Python 100.0%