Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 12 lines (9 sloc) 0.265 kB
da47dc1 @crodas First commit
authored
1 import languess
2 import os
3 from glob import glob
4
5 def main():
6 for file in glob("samples/*.sam"):
7 name = os.path.basename(file).split(".")
8 languess.train(file, "knowledge/%s.lm" % name[0], name[1] == "utf8")
9
10 if __name__ == "__main__":
11 main()
Something went wrong with that request. Please try again.