getcorrector: Retrieve a Java instance of SpellCorrector.

Description Usage Arguments Value

Description

Retrieve a Java instance of SpellCorrector, with the training file specified. Language model is trained before the instance is returned. The spell corrector is adapted from Peter Norvig's demonstration.

Usage

1
getcorrector(filepath = "big.txt")

Arguments

filepath

Path of the corpus.

Value

a Java instance of SpellCorrector


stephenhky/RSpellCorrection documentation built on May 30, 2019, 3:19 p.m.