provemyself / sunpinyin

Automatically exported from code.google.com/p/sunpinyin
0 stars 0 forks source link

允许输入部分整句 #237

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
目前如果输入了一个很长的句子,但最后一两个词转换得不��
�,就必须逐个词来选择,比较麻烦。

如果能用光标键移动到错误的地方加以修正当然最直观,但��
�起来不是很容易实现。

这个patch不仅会显示当前的最佳句子,也会显示它的几个前缀
(按词来划分),这样输入的时候就可以一次选出句子中正��
�的部分,然后再逐词选择错误的部分。
https://github.com/r6144/sunpinyin/commit/d9227138b9d3e6e8ba53c19c658c9a48052f91
6b

偶尔会出现某个句子与某个词重复的情况,原来处理了一个��
�例,现在不处理,不过问题也不大。

可能最好做个相关的选项吧...

Original issue reported on code.google.com by rainy6...@gmail.com on 24 Feb 2011 at 11:29

GoogleCodeExporter commented 9 years ago
Interesting improvment.

For your problem, did you try the nbest branch?  That branch is aiming fixing 
your problem though.  If you're interest, can you make a patch based on that 
branch?  The master branch now only accept minor fix, major features are in 
difference branch now.  They'll be merged into master branch when stable.

Original comment by mikeandm...@gmail.com on 26 Feb 2011 at 4:26