MCPcopy Create free account

hub / github.com/bheinzerling/pyrouge / functions

Functions56 in github.com/bheinzerling/pyrouge

↓ 17 callersMethodsplit
Splits text and returns a list of the resulting sentences.
pyrouge/utils/sentence_splitter.py:37
↓ 6 callersFunctionstr_from_file
Return file contents as string.
pyrouge/utils/file_utils.py:37
↓ 4 callersMethodevaluate
Run ROUGE to evaluate the system summaries in system_dir against the model summaries in model_dir. The summaries are assumed to
pyrouge/Rouge155.py:322
↓ 3 callersFunctionverify_dir
(path, name=None)
pyrouge/utils/file_utils.py:80
↓ 2 callersMethod__process_summaries
Helper method that applies process_func to the files in the system and model folders and saves the resulting files to new sys
pyrouge/Rouge155.py:473
↓ 2 callersFunctioncanonical
(xml_file)
pyrouge/utils/file_utils.py:53
↓ 2 callersMethodprocess
Apply function to all files in input_dir and save the resulting ouput files in output_dir.
pyrouge/utils/file_utils.py:14
↓ 2 callersMethodsave_home_dir
(self)
pyrouge/Rouge155.py:96
↓ 2 callersMethodwrite_config
Write the ROUGE configuration file, which is basically a list of system summary files and their matching model summary files.
pyrouge/Rouge155.py:294
↓ 2 callersFunctionxml_equal
Parse xml and convert to a canonical string representation so we don't have to worry about semantically meaningless differences
pyrouge/utils/file_utils.py:47
↓ 1 callersMethod__add_config_option
(self, options)
pyrouge/Rouge155.py:584
↓ 1 callersMethod__clean_rouge_args
Remove enclosing quotation marks, if any.
pyrouge/Rouge155.py:569
↓ 1 callersMethod__create_dir_property
Generate getter and setter for a directory property.
pyrouge/Rouge155.py:536
↓ 1 callersMethod__get_config_path
(self)
pyrouge/Rouge155.py:587
↓ 1 callersMethod__get_eval_string
ROUGE can evaluate several system summaries for a given text against several model summaries, i.e. there is an m-to-n relatio
pyrouge/Rouge155.py:432
↓ 1 callersMethod__get_model_filenames_for_id
(id, model_dir, model_filenames_pattern)
pyrouge/Rouge155.py:498
↓ 1 callersMethod__get_options
Get supplied command line arguments for ROUGE or use default ones.
pyrouge/Rouge155.py:509
↓ 1 callersMethod__get_rouge_home_dir_from_settings
(self)
pyrouge/Rouge155.py:420
↓ 1 callersMethod__set_dir_properties
Automatically generate the properties for directories.
pyrouge/Rouge155.py:555
↓ 1 callersMethod__set_rouge_dir
Verfify presence of ROUGE-1.5.5.pl and data folder, and set those paths.
pyrouge/Rouge155.py:401
↓ 1 callersMethod__write_summaries
(self)
pyrouge/Rouge155.py:493
↓ 1 callersFunctioncleanup
(s)
pyrouge/utils/string_utils.py:19
↓ 1 callersMethodconvert_text_to_rouge_format
Convert a text to a format ROUGE understands. The text is assumed to contain one sentence per line. text: The text to
pyrouge/Rouge155.py:208
↓ 1 callersFunctionget_console_logger
(name, level=logging.INFO)
pyrouge/utils/log.py:4
↓ 1 callersFunctionlist_files
Return a list of files in dir_path.
pyrouge/utils/file_utils.py:65
↓ 1 callersFunctionmain
()
pyrouge/tests/Rouge155_test.py:227
↓ 1 callersFunctionremove_extraneous_whitespace
(s)
pyrouge/utils/string_utils.py:13
↓ 1 callersFunctionremove_newlines
(s)
pyrouge/utils/string_utils.py:6
↓ 1 callersMethodsplit_sentences
ROUGE requires texts split into sentences. In case the texts are not already split, this method can be used.
pyrouge/Rouge155.py:178
↓ 1 callersMethodwrite_config_static
Write the ROUGE configuration file, which is basically a list of system summary files and their corresponding model summary f
pyrouge/Rouge155.py:238
Method__init__
Create a Rouge155 object. rouge_dir: Directory containing Rouge-1.5.5.pl rouge_args: Arguments to pass through to R
pyrouge/Rouge155.py:74
Method__init__
(self, language="en", punkt_data_path=None)
pyrouge/utils/sentence_splitter.py:16
Methodbin_path
The full path of the ROUGE binary (although it's technically a script), i.e. rouge_home_dir/ROUGE-1.5.5.pl
pyrouge/Rouge155.py:114
Methodconfig_file
(self)
pyrouge/Rouge155.py:169
Methodconvert_and_evaluate
Convert plain text summaries to ROUGE format and run ROUGE to evaluate the system summaries in system_dir against the model s
pyrouge/Rouge155.py:345
Methodconvert_summaries_to_rouge_format
Convert all files in input_dir into a format ROUGE understands and saves the files to output_dir. The input files are assumed
pyrouge/Rouge155.py:193
Methodfget
(self)
pyrouge/Rouge155.py:545
Methodfset
(self, path)
pyrouge/Rouge155.py:548
Functionget_global_console_logger
(level=logging.INFO)
pyrouge/utils/log.py:16
Methodget_home_from_settings
()
pyrouge/tests/Rouge155_test.py:25
Methodmodel_filename_pattern
The regular expression pattern for matching model summary filenames. The pattern needs to contain the string "#ID#", which is
pyrouge/Rouge155.py:146
Methodoutput_to_dict
Convert the ROUGE output into python dictionary for further processing.
pyrouge/Rouge155.py:370
Methodsettings_file
Path of the setttings file, which stores the ROUGE home dir.
pyrouge/Rouge155.py:106
Methodsplit_files
(input_dir, output_dir, lang="en", punkt_data_path=None)
pyrouge/utils/sentence_splitter.py:43
Methodsystem_filename_pattern
The regular expression pattern for matching system summary filenames. The regex string. E.g. "SL.P.10.R.11.SL062003-(\d+).ht
pyrouge/Rouge155.py:127
Methodtest_config_file
(self)
pyrouge/tests/Rouge155_test.py:137
Methodtest_convert_summaries
(self)
pyrouge/tests/Rouge155_test.py:119
Methodtest_evaluation
(self)
pyrouge/tests/Rouge155_test.py:150
Methodtest_get_plain_text
(self)
pyrouge/tests/Rouge155_test.py:101
Methodtest_options
(self)
pyrouge/tests/Rouge155_test.py:202
Methodtest_paths
(self)
pyrouge/tests/Rouge155_test.py:22
Methodtest_rouge_for_plain_text
(self)
pyrouge/tests/Rouge155_test.py:166
Methodtest_text_conversion
(self)
pyrouge/tests/Rouge155_test.py:90
Methodtest_write_config
(self)
pyrouge/tests/Rouge155_test.py:185
Methodtest_wrong_model_pattern
(self)
pyrouge/tests/Rouge155_test.py:72
Methodtest_wrong_system_pattern
(self)
pyrouge/tests/Rouge155_test.py:57