Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stanfordnlp/stanza.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'stanza/utils/training/common.py')
-rw-r--r--stanza/utils/training/common.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/stanza/utils/training/common.py b/stanza/utils/training/common.py
index b414bf56..c3635bbb 100644
--- a/stanza/utils/training/common.py
+++ b/stanza/utils/training/common.py
@@ -40,6 +40,12 @@ def build_argparse():
SHORTNAME_RE = re.compile("[a-z-]+_[a-z0-9]+")
def main(run_treebank, model_dir, model_name, add_specific_args=None):
+ """
+ A main program for each of the run_xyz scripts
+
+ It collects the arguments and runs the main method for each dataset provided.
+ It also tries to look for an existing model and not overwrite it unless --force is provided
+ """
logger.info("Training program called with:\n" + " ".join(sys.argv))
paths = default_paths.get_default_paths()