Module Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Str Str Num ListLoad Str Str Str Str Str ListLoad Str Str Str Str Str ListLoad Str Str Str Str Str ListLoad Str Str Str Str Str ListLoad ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num Assign NameStore Call NameLoad Assign ListStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Str Str Num ListLoad Str Str Str Str Str ListLoad Str Str Str Str Str ListLoad Str Str Str Str Str ListLoad Str Str Str Str Str ListLoad ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num Assign NameStore Call NameLoad keyword Num Assign ListStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Str Str Num ListLoad Str Str Str Str Str ListLoad Str Str Str Str Str ListLoad Str Str Str Str Str ListLoad Str Str Str Str Str ListLoad ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num Assign NameStore Call NameLoad keyword Num Assign ListStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A unittest marmot.features.target_token_feature_extractor TargetTokenFeatureExtractor AlignmentFeatureExtractorTests N/A N/A unittest TestCase N/A test_get_features N/A N/A self N/A N/A N/A obj N/A token index target source target_pos source_pos alignments hits 2 N/A a boy hits a dog N/A un garcon frappe un chien N/A DT NN VBZ DT NN N/A DT NN VBZ DT NN N/A N/A 0 N/A 1 N/A 3 N/A 2 N/A 4 N/A extractor N/A TargetTokenFeatureExtractor N/A N/A token left right N/A N/A extractor get_features obj N/A N/A N/A self assertEqual token hits N/A N/A N/A self assertEqual left boy N/A N/A N/A self assertEqual right a N/A test_get_features_two_words N/A N/A self N/A N/A N/A obj N/A token index target source target_pos source_pos alignments hits 2 N/A a boy hits a dog N/A un garcon frappe un chien N/A DT NN VBZ DT NN N/A DT NN VBZ DT NN N/A N/A 0 N/A 1 N/A 3 N/A 2 N/A 4 N/A extractor N/A TargetTokenFeatureExtractor context_size 2 N/A N/A token left right N/A N/A extractor get_features obj N/A N/A N/A self assertEqual token hits N/A N/A N/A self assertEqual left a boy N/A N/A N/A self assertEqual right a dog N/A test_first_el N/A N/A self N/A N/A N/A obj N/A token index target source target_pos source_pos alignments a 0 N/A a boy hits a dog N/A un garcon frappe un chien N/A DT NN VBZ DT NN N/A DT NN VBZ DT NN N/A N/A 0 N/A 1 N/A 3 N/A 2 N/A 4 N/A extractor N/A TargetTokenFeatureExtractor context_size 2 N/A N/A token left right N/A N/A extractor get_features obj N/A N/A N/A self assertEqual token a N/A N/A N/A self assertEqual left _START_ _START_ N/A N/A N/A self assertEqual right boy hits N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main