人智导第一次大作业。
基于字的二元、三元、四元输入法,最终结果为:字正确率90.62%,句正确率61.31%。
测例为data文件夹下的input.txt,标准输出为standardOutput.txt。
没有上传对语料进行处理之后的txt文件,因此现在的代码无法正常运行。需要在云盘上下载对应的txt文件放到processing/res下之后才可以运行,链接如下:
https://cloud.tsinghua.edu.cn/d/02498b84f633479fa209/
另外,没有上传bin文件夹,但这无关紧要。如果需要运行程序,在src文件夹下输入的示例如下:
python pinyin.py ./input.txt ./output.txt
其余详细的分析见README.pdf。