Skip to content

Commit 8ea7462

Browse files
new: Feedback to console on artefact paths
1 parent 360e3f8 commit 8ea7462

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

deep_reference_parser/parse.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ def __init__(self, config_file):
3333

3434
cfg = get_config(config_file)
3535

36+
msg.info(f"Attempting to download model artefacts if they are not found locally in {cfg['build']['output_path']}. This may take some time...")
37+
3638
# Build config
3739

3840
OUTPUT_PATH = cfg["build"]["output_path"]
@@ -138,7 +140,8 @@ def parse(self, text, verbose=False):
138140
def parse(text, config_file=PARSER_CFG, outfile=None):
139141
"""
140142
Runs the default parsing model and pretty prints results to console unless
141-
--outfile is parsed with a path.
143+
--outfile is parsed with a path. Output written to the the path specified in
144+
--outfile will be a valid json.
142145
143146
NOTE: that this function is provided for examples only and should not be used
144147
in production as the model is instantiated each time the command is run. To

deep_reference_parser/split.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ def __init__(self, config_file):
3737

3838
cfg = get_config(config_file)
3939

40+
msg.info(f"Attempting to download model artefacts if they are not found locally in {cfg['build']['output_path']}. This may take some time...")
41+
4042
# Build config
4143

4244
OUTPUT_PATH = cfg["build"]["output_path"]
@@ -172,7 +174,8 @@ def split(self, text, return_tokens=False, verbose=False):
172174
def split(text, config_file=SPLITTER_CFG, tokens=False, outfile=None):
173175
"""
174176
Runs the default splitting model and pretty prints results to console unless
175-
--outfile is parsed with a path. Can output either tokens (with -t|--tokens)
177+
--outfile is parsed with a path. Files output to the path specified in
178+
--outfile will be a valid json. Can output either tokens (with -t|--tokens)
176179
or split naively into references based on the b-r tag (default).
177180
178181
NOTE: that this function is provided for examples only and should not be used

0 commit comments

Comments
 (0)