(self, dictionary, lower = True)
| 1248 | |
| 1249 | # 返回词典里所有词的 map,默认转为小写 |
| 1250 | def dump_map (self, dictionary, lower = True): |
| 1251 | words = {} |
| 1252 | for _, word in dictionary: |
| 1253 | if lower: |
| 1254 | word = word.lower() |
| 1255 | words[word] = 1 |
| 1256 | return words |
| 1257 | |
| 1258 | # 字典差异导出 |
| 1259 | def discrepancy_export (self, dictionary, words, outname, opts = ''): |
no outgoing calls
no test coverage detected