Module Import alias Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str Str ListLoad Str Str Str Str Str TupleLoad Num Num ListLoad Str Str Str Str Str TupleLoad Num Num Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str Str ListLoad Str Str Str Str Str TupleLoad Num Num ListLoad ListLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A unittest N/A os marmot.features.phrase.alphanumeric_feature_extractor AlphaNumericFeatureExtractor AlphaNumericFeatureExtractorTests N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self extractor N/A AlphaNumericFeatureExtractor N/A test_get_features N/A N/A self N/A N/A N/A obj N/A target source token index source_token source_index N/A a boy hits 3 dogs a11i o8 www1 N/A un garcon bate 3 ou 4 chiens b2b N/A 3 dogs a11i o8 www1 N/A 3 8 N/A 3 ou 4 chiens b2b N/A 3 8 N/A N/A src_num tg_num num_ratio src_alnum tg_alnum alnum_ratio N/A N/A N/A self extractor get_features obj N/A N/A N/A self assertAlmostEqual src_num 0.4 N/A N/A N/A self assertAlmostEqual tg_num 0.2 N/A N/A N/A self assertAlmostEqual num_ratio 0.2 N/A N/A N/A self assertAlmostEqual src_alnum 0.2 N/A N/A N/A self assertAlmostEqual tg_alnum 0.6 N/A N/A N/A self assertAlmostEqual alnum_ratio 0.4 N/A test_get_features_no_src N/A N/A self N/A N/A N/A obj_no_src N/A target source token index source_token source_index N/A a boy hits 3 dogs a11i o8 www1 N/A un garcon bate 3 ou 4 chiens b2b N/A 3 dogs a11i o8 www1 N/A 3 8 N/A N/A N/A N/A src_num tg_num num_ratio src_alnum tg_alnum alnum_ratio N/A N/A N/A self extractor get_features obj_no_src N/A N/A N/A self assertAlmostEqual src_num 0 N/A N/A N/A self assertAlmostEqual tg_num 0.2 N/A N/A N/A self assertAlmostEqual num_ratio 0.2 N/A N/A N/A self assertAlmostEqual src_alnum 0 N/A N/A N/A self assertAlmostEqual tg_alnum 0.6 N/A N/A N/A self assertAlmostEqual alnum_ratio 0.6 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main