Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad Assign NameStore ListLoad Assign NameStore Num Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad NameLoad If BoolOpAnd CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad CompareLt NameLoad AttributeLoad AttributeLoad NameLoad attr attr body AugAssignAdd NameStore Num AugAssignAdd NameStore Num Continue Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad If CompareEq Call AttributeLoad NameLoad attr Num body Assign NameStore Str Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad AugAssignAdd NameStore Num AugAssignAdd NameStore Num If AttributeLoad AttributeLoad NameLoad attr attr body AugAssignAdd NameStore NameLoad Assign NameStore Str Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str BinOpDiv BinOpMult Call NameLoad NameLoad Num Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Global identifier Assign NameStore ListLoad Assign NameStore ListComp Call NameLoad NameLoad Str comprehension NameStore NameLoad For NameStore NameLoad body Assign NameStore Num For NameStore NameLoad body If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Break AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr Delete SubscriptDel NameLoad Slice Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Global identifier If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Num Assign NameStore BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad While Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Num Assign NameStore BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Assign NameStore Dict Assign NameStore Call NameLoad NameLoad Str TryFinally body For NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad If Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str BinOpDiv BinOpMult Call NameLoad NameLoad Num Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Str For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Global identifier Assign NameStore BinOpMult AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad Expr Call NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad
N/A N/A operator N/A os.path N/A sys N/A time N/A settings parse_CP Parse phraseTable PhraseTable refPhrases RefPhrases N/A refFiles N/A readNParse N/A N/A sent_count N/A N/A N/A Parse the sentences in the array N/A sent_indx 0 N/A coverage_cnt 0 N/A relaxed_decoding False N/A refsLst N/A N/A tot_time 0.0 N/A inF N/A open N/A N/A settings opts inFile r N/A N/A N/A N/A sys stderr write N/A Reading sentences from file      : %s ...

 N/A N/A settings opts inFile N/A sent inF N/A N/A sent N/A N/A sent strip N/A N/A N/A settings opts force_decode N/A N/A refsLst N/A getReferences sent_indx N/A N/A N/A N/A N/A settings opts skip_sents None N/A sent_indx N/A N/A settings opts skip_sents N/A N/A sent_indx 1 N/A sent_count 1 N/A N/A parse_begin N/A N/A time time N/A parse_obj N/A Parse sent_count sent relaxed_decoding refsLst N/A N/A N/A N/A sys stderr write N/A %3d Translating  :: %s
 N/A sent_count sent N/A N/A N/A N/A parse_obj parse 99 N/A N/A parse_obj N/A relaxed_decoding True N/A parse_obj N/A Parse sent_count sent relaxed_decoding refsLst N/A dec_status N/A N/A parse_obj parse N/A relaxed_decoding False N/A parse_time N/A N/A N/A time time parse_begin N/A tot_time parse_time N/A N/A N/A N/A sys stderr write N/A Translation time :: %1.3g sec

 parse_time N/A sent_count 1 N/A sent_indx 1 N/A N/A N/A settings opts force_decode N/A N/A coverage_cnt dec_status N/A parse_obj N/A 
        print 'Collecting ...'
        n = gc.collect()
        print 'Unreachable objects:', n
        print 'Remaining Garbage : '
        pprint.pprint(gc.garbage)
        print
         N/A N/A N/A inF close N/A N/A N/A N/A sys stderr write N/A Time taken for decoding the set      : %1.3g sec

 tot_time N/A N/A N/A settings opts force_decode N/A N/A N/A N/A N/A sys stderr write N/A Number of sentences covered      : %d
 coverage_cnt N/A N/A N/A N/A sys stderr write N/A %% of sentences covered           : %g
 N/A N/A N/A float coverage_cnt 100 N/A float sent_indx N/A getReferences N/A N/A sent_indx N/A N/A N/A Get the references in an array for force decoding N/A refFiles N/A refsLst N/A N/A refHLst N/A N/A open file r N/A file refFiles N/A refH refHLst N/A N/A indx 0 N/A sent refH N/A N/A N/A indx sent_indx N/A N/A sent N/A N/A sent strip N/A N/A N/A refsLst append sent N/A N/A indx 1 N/A N/A N/A refH close N/A N/A refHLst N/A N/A refsLst N/A getRefFiles N/A N/A N/A N/A N/A Get the reference files for forced decoding N/A refFiles N/A N/A N/A N/A os path exists N/A N/A settings opts refFile N/A N/A N/A N/A refFiles append N/A N/A settings opts refFile N/A N/A i 0 N/A ref_i N/A N/A N/A settings opts refFile N/A str i N/A N/A N/A N/A os path exists ref_i N/A N/A N/A N/A refFiles append ref_i N/A i 1 N/A ref_i N/A N/A N/A settings opts refFile N/A str i N/A N/A refFiles N/A N/A N/A N/A N/A sys stderr write ERROR: Forced decoding requires at least one reference file.
 N/A N/A N/A N/A sys stderr write        But, the specified reference file doesn't exist or isn't a valid prefix. Exiting!!

 N/A N/A N/A sys exit 1 N/A consolidateRules N/A N/A cntsFile N/A N/A N/A N/A N/A N/A sys stderr write N/A Consolidating rules from file : %s ...
 cntsFile N/A rulesUsedDict N/A N/A rC N/A open cntsFile r N/A N/A N/A line rC N/A N/A N/A src tgt cnts N/A N/A line split  |||  N/A rule N/A N/A src  |||  tgt N/A N/A N/A rulesUsedDict has_key rule N/A N/A N/A rulesUsedDict N/A rule N/A int cnts N/A N/A N/A rulesUsedDict N/A rule N/A int cnts N/A N/A N/A N/A rC close N/A tot_used_rules N/A len N/A N/A rulesUsedDict keys N/A tot_PT_rules N/A N/A PhraseTable getTotalRules N/A N/A N/A N/A sys stderr write N/A Total SCFG rules found for the set           : %g
 tot_PT_rules N/A N/A N/A N/A sys stderr write N/A # of unique rules used in N-best derivations : %g
 tot_used_rules N/A N/A N/A N/A sys stderr write N/A %% of rules used in the N-best list           : %g
 N/A N/A N/A float tot_used_rules 100.0 N/A float tot_PT_rules N/A wC N/A open cntsFile w N/A N/A rule r_cnt N/A sorted N/A N/A rulesUsedDict iteritems key N/A N/A operator itemgetter 1 N/A N/A N/A N/A wC write N/A %s ||| %d
 N/A rule r_cnt N/A N/A N/A wC close N/A main N/A N/A N/A N/A N/A refFiles N/A sent_count N/A N/A N/A settings opts sentindex N/A N/A settings opts sent_per_file N/A N/A N/A settings opts force_decode N/A N/A N/A getRefFiles N/A N/A RefPhrases sent_count refFiles N/A N/A PhraseTable N/A N/A readNParse sent_count N/A N/A N/A __name__ __main__ N/A N/A N/A N/A settings args N/A N/A main