Ejemplo n.º 1
0
def test7():
	model = ngramsModel()
	model.readConfusionMatrix('customKeyboard.csv')
	model.performCV(brown.words(), 6, k = 10, lastKeyOnly = False)
Ejemplo n.º 2
0
def test0():
	model = ngramsModel()
	model.generateSTDConfusionMatrix()
	model.createNgramModel(3, brown.words())
	print model.proposeCorrection("hellp", lastKeyOnly = True, printOutput=True)
Ejemplo n.º 3
0
def test6():
	model = ngramsModel()
	model.generateSTDConfusionMatrix()
	model.performCV(brown.words(), 6, k = 10, lastKeyOnly = False)
Ejemplo n.º 4
0
def test3():
	model = ngramsModel()
	model.readConfusionMatrix('customKeyboard.csv')
	model.createNgramModel(3, brown.words())
	print model.proposeCorrection("normwl", lastKeyOnly = False, printOutput=True)
Ejemplo n.º 5
0
def test7():
	model = ngramsModel()
	model.readConfusionMatrix('customKeyboard.csv')
	model.performCV(brown.words(), 6, k = 10, lastKeyOnly = False)
Ejemplo n.º 6
0
def test6():
	model = ngramsModel()
	model.generateSTDConfusionMatrix()
	model.performCV(brown.words(), 6, k = 10, lastKeyOnly = False)
Ejemplo n.º 7
0
def test0():
	model = ngramsModel()
	model.generateSTDConfusionMatrix()
	model.createNgramModel(3, brown.words())
	print model.proposeCorrection("hellp", lastKeyOnly = True, printOutput=True)
Ejemplo n.º 8
0
def test3():
	model = ngramsModel()
	model.readConfusionMatrix('customKeyboard.csv')
	model.createNgramModel(3, brown.words())
	print model.proposeCorrection("normwl", lastKeyOnly = False, printOutput=True)