Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias Import alias identifier ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Str Str Str Str Assign NameStore Dict Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str Str Str Str Str Str Str ListLoad Str ListLoad Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str ClassDef bases NameLoad body Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore ListLoad Str For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index CompareNotEq SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str ListComp Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr comprehension NameStore SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str ListComp SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr Str Index Num comprehension NameStore SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad Return CompareIn NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore NameLoad body If CompareIn NameLoad SubscriptLoad NameLoad Index NameLoad body Return NameLoad Return Str decorator_list FunctionDef arguments args NameParam defaults body For NameStore NameLoad body If CompareEq NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore ListLoad For NameStore Call NameLoad Num SubscriptLoad AttributeLoad NameLoad attr Index Num body Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad attr Str Assign NameStore ListLoad Assign NameStore Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Continue If Call AttributeLoad NameLoad attr Str body Continue Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareIsNot NameLoad NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad orelse If BoolOpAnd BoolOpOr CompareEq Call NameLoad NameLoad Num Call AttributeLoad NameLoad attr Str CompareGt Call NameLoad NameLoad Num body If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str orelse If CompareGt Call NameLoad NameLoad Num body AugAssignAdd NameStore BinOpAdd Str NameLoad Assign NameStore Call AttributeLoad Str attr ListComp NameLoad comprehension NameStore NameLoad BoolOpAnd CompareGt Call NameLoad NameLoad Num CompareNotIn Str NameLoad CompareNotIn Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Str Assign NameStore Dict Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad AugAssignAdd NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad For NameStore NameLoad body If CompareNotEq Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Assign SubscriptStore NameLoad Index Num Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Assign SubscriptStore NameLoad Index Num Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr Dict Str Str SubscriptLoad NameLoad Index Num Call AttributeLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num attr orelse If CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad If CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str ImportFrom alias alias Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore DictComp NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad Assign NameStore ListLoad Assign NameStore Call NameLoad ListLoad NameLoad NameLoad ListLoad Str Str For NameStore NameLoad body Assign NameStore Call AttributeLoad Str attr Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index CompareEq SubscriptLoad NameLoad Index Str NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad For NameStore Call NameLoad Num Call NameLoad AttributeLoad NameLoad attr body Assign NameStore ListLoad For NameStore Call NameLoad Num Call NameLoad NameLoad body If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad keyword Num keyword NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num Str keyword SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num Expr Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad keyword Num keyword NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore Call NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad NameLoad Num SubscriptLoad NameLoad Index TupleLoad NameLoad Num Str keyword SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore ListLoad Str For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index CompareNotEq SubscriptLoad NameLoad Index Str NameLoad Assign NameStore ListLoad For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Continue Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Str Index Num Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str ListComp Call NameLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr Str Str comprehension NameStore NameLoad Assign SubscriptStore NameLoad Index Str ListComp Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num comprehension NameStore NameLoad Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore ListLoad For NameStore Call NameLoad Num SubscriptLoad AttributeLoad NameLoad attr Index Num body Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad attr Str Assign NameStore ListLoad Assign NameStore Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If CompareIn SubscriptLoad NameLoad Index Num NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str CompareGt Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list decorator_list
N/A __future__ division percept.tasks.base Task percept.tasks.train Train percept.fields.base Complex List Dict Float inputs.inputs SimpsonsFormats percept.utils.models RegistryCategories get_namespace N/A logging percept.tests.framework Tester percept.conf.base settings N/A re sklearn.cluster KMeans N/A os N/A json itertools chain matplotlib pyplot N/A numpy np sklearn.decomposition PCA N/A log N/A N/A logging getLogger __name__ N/A PUNCTUATION N/A ] . ! ? N/A CHARACTERS N/A Tertiary Marge Homer Burns Secondary Lisa Bart N/A Kent Ms.K Nelson Rev. Lovejoy Announcer Meyers Krusty Alien Woods Doctor Man 1 Dr. Hibbert Otto Reporter Selma Brockman Carl Wiggum Flanders Comic Book Guy Grampa Kent Brockman Advisor Man Lenny Guards Executive N/A Marge N/A Homer N/A Burns N/A Moe Ned Smithers Apu Skinner Milhouse Grimes N/A Lisa N/A Bart N/A CHARACTER_REPLACEMENT N/A H M L B G Abe Principal Skinner Ms. K Mrs. Krebappel Mr. Burns Mcclure Edna Krebappel Abraham Abe Simpson Hutz Homer Marge Lisa Bart Grampa Grampa Skinner Ms.K Ms.K Burns Troy Ms.K Grampa Grampa Lionel Hutz CleanupScriptList N/A Task N/A N/A data N/A Complex N/A data_format N/A SimpsonsFormats dataframe N/A category N/A RegistryCategories preprocessors N/A namespace N/A get_namespace __module__ N/A help_text Cleanup simpsons scripts. train N/A N/A self data target N/A kwargs N/A N/A 
        Used in the training phase.  Override.
         N/A N/A self data N/A N/A self predict data N/A predict N/A N/A self data N/A kwargs N/A N/A 
        Used in the predict phase, after training.  Override
         N/A script_removal_values N/A N/A r script_removal_values N/A N/A data N/A data N/A N/A N/A data N/A script r N/A N/A N/A log info data N/A N/A data N/A episode_name N/A N/A N/A N/A N/A N/A i split N/A 0 strip N/A i N/A data N/A episode_name N/A N/A data N/A episode_code N/A N/A N/A N/A N/A N/A N/A i split / N/A -1 split .html N/A 0 N/A i N/A data N/A url N/A N/A data index N/A range N/A N/A data shape N/A 0 N/A data N/A N/A check_if_character N/A N/A character N/A N/A N/A all_characters N/A list N/A N/A chain from_iterable N/A N/A CHARACTERS N/A k N/A k CHARACTERS N/A N/A character all_characters N/A find_replacement N/A N/A character N/A N/A N/A k CHARACTERS N/A N/A N/A character N/A CHARACTERS N/A k N/A N/A k N/A Tertiary N/A cleanup_name N/A N/A character N/A N/A N/A k CHARACTER_REPLACEMENT N/A N/A N/A k character N/A N/A character N/A CHARACTER_REPLACEMENT N/A k N/A character N/A CleanupScriptText N/A Task N/A N/A data N/A Complex N/A data_format N/A SimpsonsFormats dataframe N/A category N/A RegistryCategories preprocessors N/A namespace N/A get_namespace __module__ N/A help_text Cleanup simpsons scripts. train N/A N/A self data target N/A kwargs N/A N/A 
        Used in the training phase.  Override.
         N/A N/A self data N/A N/A self predict data N/A check_for_line_split N/A N/A self line N/A N/A N/A N/A check_if_character N/A N/A N/A line split : N/A 0 N/A predict N/A N/A self data N/A kwargs N/A N/A 
        Used in the predict phase, after training.  Override
         N/A voice_scripts N/A N/A i N/A xrange 0 N/A N/A data shape N/A 0 N/A N/A script_lines N/A N/A N/A N/A data N/A script N/A i split N/A voice_lines N/A N/A current_line N/A N/A i line N/A enumerate script_lines N/A N/A current_line N/A N/A current_line strip N/A line N/A N/A line strip N/A N/A N/A N/A line startswith [ N/A N/A line endswith ] N/A N/A N/A N/A N/A line startswith - N/A N/A N/A voice_line N/A N/A re search \w+: line N/A N/A voice_line None N/A N/A N/A N/A self check_for_line_split current_line N/A N/A N/A N/A voice_lines append current_line N/A current_line line N/A N/A N/A N/A N/A N/A len line 0 N/A N/A line startswith - N/A N/A len current_line 0 N/A N/A N/A N/A self check_for_line_split current_line N/A N/A N/A N/A voice_lines append current_line N/A current_line N/A N/A N/A voice_lines append N/A N/A N/A N/A len current_line 0 N/A N/A current_line N/A line N/A script_text N/A N/A join N/A l N/A l voice_lines N/A N/A N/A len l 0 N/A { l N/A = l N/A script_text N/A N/A re sub \[.+\] script_text N/A N/A N/A voice_scripts append N/A N/A script_text strip N/A N/A data N/A voice_script voice_scripts N/A data N/A N/A ReformatScriptText N/A Task N/A N/A data N/A Complex N/A voice_lines N/A Complex N/A data_format N/A SimpsonsFormats dataframe N/A category N/A RegistryCategories preprocessors N/A namespace N/A get_namespace __module__ N/A help_text Cleanup simpsons scripts. N/A args N/A scriptfile do_replace N/A N/A N/A os path abspath N/A N/A N/A os path join N/A settings PROJECT_PATH data/raw_scripts2.json True train N/A N/A self data target N/A kwargs N/A N/A 
        Used in the training phase.  Override.
         N/A N/A self data data N/A N/A N/A self predict N/A self data kwargs N/A predict N/A N/A self data N/A kwargs N/A N/A 
        Used in the predict phase, after training.  Override
         N/A voice_scripts N/A list N/A data N/A voice_script N/A scriptfile N/A kwargs N/A scriptfile N/A do_replace N/A kwargs N/A do_replace N/A json_scripts N/A N/A json load N/A open scriptfile N/A voice_scripts N/A N/A s N/A script N/A s json_scripts N/A script_segments N/A N/A script voice_scripts N/A N/A script N/A N/A script replace " N/A lines N/A N/A script split N/A segment N/A N/A line lines N/A N/A N/A N/A N/A line strip N/A N/A line N/A N/A line encode ascii ignore N/A line_split N/A N/A line split : N/A do_replace N/A N/A N/A line_split N/A 0 N/A find_replacement N/A N/A N/A line_split N/A 0 strip N/A N/A line_split N/A 0 N/A cleanup_name N/A N/A N/A line_split N/A 0 strip N/A N/A N/A segment append N/A speaker line N/A line_split N/A 0 N/A N/A N/A N/A : join N/A line_split N/A 1 strip N/A N/A N/A N/A len segment 0 N/A N/A N/A N/A script_segments append segment N/A segment N/A N/A N/A N/A len segment 0 N/A N/A N/A N/A script_segments append segment N/A N/A self voice_lines script_segments N/A N/A ClusterScriptText N/A Task N/A N/A data N/A Complex N/A clusters N/A Complex N/A predictions N/A Complex N/A clusters N/A List N/A cl N/A Complex N/A vec N/A Complex N/A vec1 N/A Complex N/A data_format N/A SimpsonsFormats dataframe N/A category N/A RegistryCategories preprocessors N/A namespace N/A get_namespace __module__ N/A help_text Cluster simpsons scripts. train N/A N/A self data target N/A kwargs N/A N/A 
        Used in the training phase.  Override.
         N/A N/A self data data N/A N/A N/A self predict N/A self data N/A predict N/A N/A self data N/A kwargs N/A N/A 
        Used in the predict phase, after training.  Override
         train Vectorizer make_df N/A N/A self vec N/A Vectorizer N/A reformatter N/A ReformatScriptText N/A args N/A reformatter args N/A N/A args N/A do_replace False N/A N/A N/A reformatter train data args N/A script_segments N/A list N/A N/A chain from_iterable N/A reformatter voice_lines N/A text N/A N/A s N/A line N/A s script_segments N/A speaker N/A N/A s N/A speaker N/A s script_segments N/A unique_speakers N/A list N/A set speaker N/A speaker_code_dict N/A k i N/A N/A i k N/A enumerate unique_speakers N/A speaker_codes N/A N/A speaker_code_dict N/A k N/A k unique_speakers N/A speaker_list N/A N/A speaker_frame N/A make_df N/A text speaker N/A text speaker N/A i unique_speakers N/A N/A s_text N/A N/A join N/A list N/A N/A speaker_frame N/A N/A N/A speaker_frame N/A speaker i N/A text N/A N/A N/A speaker_list append s_text N/A N/A N/A N/A self vec fit speaker_list speaker_codes 200 min_features 2 N/A features N/A N/A N/A self vec batch_get_features speaker_list N/A cl N/A KMeans N/A N/A self predictions N/A N/A cl fit_predict features N/A N/A self cl cl N/A i N/A xrange 0 N/A max N/A self predictions N/A N/A clust N/A N/A c N/A xrange 0 N/A len speaker_codes N/A N/A N/A N/A N/A self predictions N/A c i N/A N/A N/A N/A clust append N/A unique_speakers N/A c N/A N/A N/A N/A self clusters append clust N/A pca N/A N/A N/A PCA n_components 2 whiten True fit features N/A rf N/A N/A pca transform features N/A labels N/A cl labels_ N/A N/A N/A pyplot clf N/A centroids N/A cl cluster_centers_ N/A N/A N/A pyplot cla N/A i N/A range N/A max labels N/A N/A ds N/A rf N/A N/A N/A np where N/A labels i N/A N/A N/A pyplot plot N/A ds N/A N/A N/A 0 N/A ds N/A N/A N/A 1 o label N/A N/A N/A self clusters N/A i N/A 0 N/A N/A N/A pyplot legend loc 8 N/A N/A N/A pyplot savefig clusters.png N/A N/A self vec1 N/A Vectorizer N/A speaker_codes N/A N/A speaker_code_dict N/A k N/A k speaker N/A N/A N/A N/A self vec1 fit text speaker_codes 200 min_features 2 N/A features N/A N/A N/A self vec1 batch_get_features text N/A pca N/A N/A N/A PCA n_components 2 whiten True fit features N/A rf N/A N/A pca transform features N/A N/A N/A pyplot clf N/A N/A N/A pyplot cla N/A i N/A range N/A len speaker_codes N/A N/A N/A N/A pyplot plot N/A rf N/A N/A i 0 N/A rf N/A N/A i 1 o label N/A speaker N/A i N/A N/A N/A pyplot savefig all_speakers.png N/A N/A CleanupTranscriptList N/A CleanupScriptList N/A N/A help_text Cleanup simpsons transcripts. predict N/A N/A self data N/A kwargs N/A N/A 
        Used in the predict phase, after training.  Override
         N/A script_removal_values N/A N/A r script_removal_values N/A N/A data N/A data N/A N/A N/A data N/A script r N/A episode_names N/A N/A i N/A data N/A url N/A N/A match N/A N/A re search episode=\w+ i N/A N/A match None N/A N/A N/A N/A episode_names append s00e00 N/A N/A N/A N/A episode_names append N/A N/A N/A N/A N/A match group 0 split = N/A 1 N/A N/A data N/A episode_name episode_names N/A N/A data N/A season N/A N/A int N/A N/A N/A N/A N/A i split e N/A 0 replace s N/A i episode_names N/A N/A data N/A episode_number N/A N/A int N/A N/A N/A i split e N/A 1 N/A i episode_names N/A N/A data index N/A range N/A N/A data shape N/A 0 N/A data N/A N/A CleanupTranscriptText N/A CleanupScriptText N/A N/A help_text Cleanup simpsons transcripts. predict N/A N/A self data N/A kwargs N/A N/A 
        Used in the predict phase, after training.  Override
         N/A voice_scripts N/A N/A i N/A xrange 0 N/A N/A data shape N/A 0 N/A N/A script_lines N/A N/A N/A N/A data N/A script N/A i split N/A lines N/A N/A current_line N/A line script_lines N/A N/A line N/A N/A line replace - N/A line N/A N/A line replace N/A line N/A N/A line replace \ N/A line N/A N/A line strip N/A line N/A N/A line encode ascii ignore N/A current_line N/A N/A {0} {1} format current_line line N/A N/A N/A current_line N/A -1 PUNCTUATION N/A N/A N/A N/A lines append current_line N/A current_line N/A lines N/A N/A join lines N/A lines N/A N/A re sub \[.+\] lines N/A lines N/A N/A re sub [
	] lines N/A lines N/A N/A N/A l strip N/A l N/A N/A lines split N/A N/A len l 10 N/A text N/A N/A join lines N/A N/A N/A voice_scripts append text N/A N/A data N/A voice_script voice_scripts N/A data N/A N/A