Module ImportFrom alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str Str NameLoad Num body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Pass orelse Raise Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str If CompareEq NameLoad Str body If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpOr CompareNotIn Str NameLoad CompareIs SubscriptLoad NameLoad Index Str NameLoad body Raise Call NameLoad Str NameLoad Str If BoolOpOr CompareNotIn Str NameLoad CompareIs SubscriptLoad NameLoad Index Str NameLoad CompareIs SubscriptLoad NameLoad Index Str NameLoad body Raise Call NameLoad Str NameLoad Str If CompareNotIn Str NameLoad body Raise Call NameLoad Str NameLoad Str TryExcept body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Expr Call NameLoad Call AttributeLoad Str attr Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body Return ListLoad Str Call AttributeLoad Str attr ListComp Str comprehension NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad Str attr ListComp Str comprehension NameStore Call NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad Str attr Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad Str attr Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Return ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad Str Str Str decorator_list decorator_list
N/A __future__ print_function N/A os N/A sys N/A errno marmot.features.feature_extractor FeatureExtractor marmot.util.alignments train_alignments align_sentence marmot.util.ngram_window_extractor left_context right_context marmot.exceptions.no_data_error NoDataError AlignmentFeatureExtractor N/A FeatureExtractor N/A __init__ N/A N/A self align_model src_file tg_file tmp_dir context_size N/A None 1 N/A N/A N/A tmp_dir None N/A N/A tmp_dir N/A N/A os getcwd N/A N/A N/A N/A N/A os makedirs tmp_dir N/A N/A N/A OSError N/A exc N/A N/A N/A N/A N/A exc errno N/A errno EEXIST N/A N/A N/A os path isdir tmp_dir N/A N/A N/A N/A N/A N/A self tmp_dir tmp_dir N/A N/A self model N/A N/A align_model N/A N/A N/A N/A N/A N/A os path isfile src_file N/A N/A N/A os path isfile tg_file N/A N/A N/A self model N/A train_alignments src_file tg_file N/A self tmp_dir N/A N/A N/A self model align_model N/A N/A self context_size context_size N/A get_features N/A N/A self context_obj N/A N/A N/A N/A N/A source context_obj N/A N/A context_obj N/A source None N/A N/A N/A NoDataError source context_obj AlignmentFeatureExtractor N/A N/A N/A target context_obj N/A N/A context_obj N/A source None N/A N/A context_obj N/A target None N/A N/A N/A NoDataError target context_obj AlignmentFeatureExtractor N/A N/A alignments context_obj N/A N/A N/A NoDataError alignments context_obj AlignmentFeatureExtractor N/A N/A N/A align_idx N/A N/A context_obj N/A alignments N/A N/A context_obj N/A index N/A N/A N/A IndexError N/A N/A N/A print N/A N/A {} items in the alignment, needed {}-th format N/A len N/A context_obj N/A alignments N/A context_obj N/A index N/A N/A print N/A context_obj N/A alignments N/A context_obj N/A target N/A context_obj N/A source N/A N/A N/A sys exit N/A N/A align_idx None N/A N/A N/A __unaligned__ N/A N/A | join N/A __unaligned__ N/A i N/A range N/A self context_size N/A N/A | join N/A __unaligned__ N/A i N/A range N/A self context_size N/A N/A left N/A N/A | join N/A left_context N/A context_obj N/A source N/A N/A context_obj N/A source N/A align_idx context_size N/A self context_size idx align_idx N/A right N/A N/A | join N/A right_context N/A context_obj N/A source N/A N/A context_obj N/A source N/A align_idx context_size N/A self context_size idx align_idx N/A aligned_to N/A N/A context_obj N/A source N/A align_idx N/A N/A aligned_to left right N/A get_feature_names N/A N/A self N/A N/A N/A N/A aligned_token src_left_context src_right_context N/A N/A