Module ImportFrom alias ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias Import alias Import alias FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index Num If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad Str Call NameLoad NameLoad Str Call NameLoad BinOpMult BinOpDiv Call NameLoad Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Num Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad ListComp TupleLoad SubscriptLoad NameLoad Index Num NameLoad comprehension NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str Assign NameStore Num Assign NameStore Num For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareEq BinOpMod NameLoad Num Num body Expr Call NameLoad If CompareEq Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num ListLoad NameLoad body Expr Call NameLoad Str keyword Str orelse Expr Call AttributeLoad NameLoad attr ListLoad ListLoad NameLoad NameLoad Expr Call NameLoad Str keyword Str AugAssignAdd NameStore Num AugAssignAdd NameStore Num If CompareEq NameLoad Num body Assign NameStore Num Expr Call NameLoad Str BinOpMult Str Num Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad Str Expr Call NameLoad Str BinOpMult Str Num Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad Str Expr Call NameLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Dict Str Str Str Num Num Num body Assign NameStore ListLoad Assign NameStore ListLoad For TupleStore NameStore NameStore NameLoad body Assign TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore BinOpAdd BinOpAdd Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Str
N/A __future__ print_function builtins zip N/A csv N/A probablepeople parserator data_prep_utils lxml etree N/A random N/A pycrfsuite getIncorrect N/A N/A name_list correct_tag N/A N/A N/A incorrect_list N/A N/A name name_list N/A N/A labeled_sequence N/A N/A probablepeople parse name N/A N/A string label N/A labeled_sequence N/A 0 N/A N/A label correct_tag N/A N/A N/A N/A incorrect_list append N/A N/A string correct_tag N/A N/A print N/A len incorrect_list / N/A len name_list  incorrect,  N/A int N/A N/A N/A float N/A len incorrect_list N/A float N/A len name_list 100 % N/A incorrect_list N/A makeTaggedData N/A N/A filename correct_tag N/A N/A N/A N/A open filename rU f N/A N/A reader N/A N/A csv reader f N/A tagged_data N/A set N/A N/A N/A row N/A 0 correct_tag N/A row reader N/A tagged_data N/A addFailedPreds N/A N/A tagged_list train_file N/A N/A N/A N/A print adding failures N/A i 0 N/A added 0 N/A N/A index tagged_item N/A enumerate tagged_list N/A N/A N/A N/A index 20 0 N/A N/A N/A print N/A N/A N/A N/A probablepeople parse N/A tagged_item N/A 0 N/A tagged_item N/A N/A N/A print . end N/A N/A N/A N/A data_prep_utils appendListToXMLfile N/A N/A tagged_item train_file N/A N/A print * end N/A added 1 N/A i 1 N/A N/A added 10 N/A N/A added 0 N/A N/A print N/A - 50 RETRAINING  index N/A training_data N/A list N/A N/A data_prep_utils parseTrainingData training/training_data/labeled.xml N/A N/A trainModel training_data probablepeople/learned_settings.crfsuite N/A N/A print N/A - 50 RETRAINING N/A training_data N/A list N/A N/A data_prep_utils parseTrainingData training/training_data/labeled.xml N/A N/A trainModel training_data probablepeople/learned_settings.crfsuite N/A N/A print i  cases added to  train_file N/A trainModel N/A N/A training_data model_file params_to_set N/A N/A c1 c2 feature.minfreq 0.1 0.01 0 N/A N/A X N/A N/A Y N/A N/A N/A string_concat components training_data N/A N/A N/A tokens labels N/A list N/A zip components N/A N/A N/A X append N/A N/A probablepeople tokens2features tokens N/A N/A N/A Y append labels N/A trainer N/A N/A pycrfsuite Trainer verbose False params params_to_set N/A N/A xseq yseq N/A zip X Y N/A N/A N/A N/A trainer append xseq yseq N/A N/A N/A trainer train model_file N/A N/A reload probablepeople N/A N/A N/A __name__ __main__ N/A N/A surname_file training_data_prep/unlabeled_data/Top1000_census_surnames.csv N/A female_file training_data_prep/unlabeled_data/top_female_names_census.csv N/A male_file training_data_prep/unlabeled_data/top_male_names_census.csv N/A surname_list N/A makeTaggedData surname_file Surname N/A female_list N/A makeTaggedData female_file GivenName N/A male_list N/A makeTaggedData male_file GivenName N/A shuffled_list N/A N/A N/A list surname_list N/A list female_list N/A list male_list N/A N/A N/A random shuffle shuffled_list N/A N/A addFailedPreds shuffled_list training/training_data/labeled.xml