Exemple #1
0
 def __init__(self, lt, config_file, table_file):
     """
     @param table_file an open output stream.
     """
     WikipediaParser.__init__(self, lt, config_file)
     self.table_file = table_file
     self.morph_set = set()
     self.ocamorph = Ocamorph(
         self.lt.config['ocamorph_runnable'],
         self.lt.config['ocamorph_model'],
         self.lt.config.get('ocamorph_encoding', 'iso-8859-2'))
     self.morph_analyzer = OcamorphAnalyzer(self.ocamorph)