intent.eval package

Submodules

intent.eval.AlignEval module

Created on Feb 14, 2014

@author: rgeorgi

class intent.eval.AlignEval.AlignEval(test_alignments=None, gold_alignments=None, debug=False, filter=None, reverse=False, explicit_nulls=False)[source]

Bases: object

aer(p_s=False)[source]

Return the Alignment Error Rate (AER).

all(p_s=False)[source]
all_str()[source]
fmeasure(p_s=None)[source]
classmethod header()[source]
instances
precision(p_s=None)[source]
recall(p_s=None)[source]

intent.eval.EvalException module

Created on Mar 3, 2014

@author: rgeorgi

exception intent.eval.EvalException.EvalException(msg)[source]

Bases: Exception

classdocs

exception intent.eval.EvalException.POSEvalException(msg)[source]

Bases: Exception

intent.eval.ProjectEval module

Created on Oct 2, 2014

@author: rgeorgi

class intent.eval.ProjectEval.ProjectEval(aligned_corpus, name='')[source]

Bases: object

classdocs

eval()[source]

intent.eval.pos_eval module

eval.slashtags_eval – pos tag evaluator

eval.slashtags_eval is a script to evaluate pos-tagged files.

It defines a main method that scores tag accuracy.

intent.eval.pos_eval.eval_print_helper(out_f, title, matrix, c, ansi, csv)[source]
intent.eval.pos_eval.poseval(eval_sents, gold_sents, out_f=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>, csv=True, ansi=False, greedy_1_to_1=False, greedy_n_to_1=False, matrix=False, details=False)[source]
intent.eval.pos_eval.simple_tagger_eval(eval_path, gold_path, out_f=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>, csv=True)[source]
intent.eval.pos_eval.slashtags_eval(goldpath, testpath, delimiter, out_f=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>, tagmap=None, matrix=False, details=False)[source]

Evaluate a “slashtags” format file

Parameters:
  • goldpath
  • testpath
  • delimiter
  • out_f
  • tagmap
Return type:

POSEvalDict

Module contents