本文整理汇总了Python中lexicon.Lexicon.writeLexicon方法的典型用法代码示例。如果您正苦于以下问题:Python Lexicon.writeLexicon方法的具体用法?Python Lexicon.writeLexicon怎么用?Python Lexicon.writeLexicon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lexicon.Lexicon
的用法示例。
在下文中一共展示了Lexicon.writeLexicon方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: read_Tischendorf_WH_Matthew_compare_them
# 需要导入模块: from lexicon import Lexicon [as 别名]
# 或者: from lexicon.Lexicon import writeLexicon [as 别名]
def read_Tischendorf_WH_Matthew_compare_them():
lexicon = Lexicon()
tischrd = read_AccentedTischendorf_MT()
ma = ManualAnalyses("./manual_analyses.txt")
#whrd = read_WH_writeMQL()
whrd = read_WH_MT();
#trstephrd = read_Stephanus()
#byzrd = read_Byzantine()
#lexicon = byzrd.produceLexicon(lexicon)
#lexicon = trstephrd.produceLexicon(lexicon)
whrd.compareTischendorf(tischrd, lexicon, ma)
tischrd.applyMappings()
tischrd.writeBooks_MORPH_style(tisch_out_basedir, "TSP", kind.kBETA)
lexicon = whrd.lexicon
lexicon.writeLexicon("lexicon_nonunique.txt", False)
tischlexicon = Lexicon()
tischrd.produceLexicon(tischlexicon).writeLexicon("tischlexicon_nonunique.txt", False)
return tischrd
示例2: read_WH_write_lexicon
# 需要导入模块: from lexicon import Lexicon [as 别名]
# 或者: from lexicon.Lexicon import writeLexicon [as 别名]
def read_WH_write_lexicon():
whrd = read_WH();
lexicon = Lexicon()
lexicon = whrd.produceLexicon(lexicon)
lexicon.writeLexicon("lexicon_nonunique.txt", False)
return whrd