[logging] printing off filenames in constructing OpenAddresses training data
This commit is contained in:
@@ -392,6 +392,8 @@ class OpenAddressesFormatter(object):
|
|||||||
for file_config in config.get('files', []):
|
for file_config in config.get('files', []):
|
||||||
filename = file_config['filename']
|
filename = file_config['filename']
|
||||||
|
|
||||||
|
print('doing {}/{}'.format(country, filename))
|
||||||
|
|
||||||
path = os.path.join(base_dir, country, filename)
|
path = os.path.join(base_dir, country, filename)
|
||||||
configs = (file_config, config, self.config)
|
configs = (file_config, config, self.config)
|
||||||
for language, country, formatted_address in self.formatted_addresses(path, configs, tag_components=tag_components):
|
for language, country, formatted_address in self.formatted_addresses(path, configs, tag_components=tag_components):
|
||||||
@@ -416,6 +418,8 @@ class OpenAddressesFormatter(object):
|
|||||||
for file_config in subdir_config.get('files', []):
|
for file_config in subdir_config.get('files', []):
|
||||||
filename = file_config['filename']
|
filename = file_config['filename']
|
||||||
|
|
||||||
|
print('doing {}/{}/{}'.format(country, subdir, filename))
|
||||||
|
|
||||||
path = os.path.join(base_dir, country, subdir, filename)
|
path = os.path.join(base_dir, country, subdir, filename)
|
||||||
|
|
||||||
configs = (file_config, subdir_config, config, self.config)
|
configs = (file_config, subdir_config, config, self.config)
|
||||||
|
|||||||
Reference in New Issue
Block a user