Commits

Lars Yencken committed 1183fe5

Removes spurious del statements.

Comments (0)

Files changed (2)

 
     print 'PASS 1: SHORT ENTRIES'
     _resolve_entries(alignment_model, reading_model, short_entries, options)
-    del short_entries
 
     print 'PASS 2: LONG ENTRIES'
     _resolve_entries(alignment_model, reading_model, long_entries, options)
-    del long_entries
-
-    del reading_model
 
     alignment_model.finish()
-    del alignment_model
 
     if not options.edict:
         evaluate.evaluate_alignment(output_file, output_file + '.eval')
 
-    return
-
 #----------------------------------------------------------------------------#
 
 def _resolve_entries(model, reading_model, entries, options):
 
     print 'PASS 1: SHORT ENTRIES'
     _resolve_entries(alignment_model, reading_model, short_entries, options)
-    del short_entries
-
+    
     print 'PASS 2: LONG ENTRIES'
     _resolve_entries(alignment_model, reading_model, long_entries, options)
-    del long_entries
-
-    del reading_model
 
     alignment_model.finish()
-    del alignment_model
 
     okurigana_model = OkuriganaModel(kanjidic_okurigana, options)
     okurigana_model.okurigana_adjustments(output_file)
     if not options.edict:
         evaluate.main([output_file, output_file + '.eval'])
 
-    return
-
 #----------------------------------------------------------------------------#
 
 def _resolve_entries(model, reading_model, entries, options):
-    """ 
-    """
     print 'Generating possible alignments'
     unique, ambiguous = potentials.generate_alignments(entries, options)
     print '--> %d unique, %d ambiguous' % (len(unique), len(ambiguous))
 
 #----------------------------------------------------------------------------#
 
-
 #----------------------------------------------------------------------------#
 # COMMAND-LINE INTERFACE
 #