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