我想转换由PTB-style生成的语素数组分词器:["The","house","is","n't","on","fire","."]一句话:"Thehouseisn'tonfire."实现此目标的明智方法是什么? 最佳答案 如果我们采纳@sawa关于撇号的建议并将您的数组设为:["The","house","isn't","on","fire","."]你可以得到你要找的东西(有标点符号支持!):defsentence(array)str=""array.each_with_indexdo|w,i|casewwhen'.','!'