Add logging

This commit is contained in:
Ines Montani 2020-09-29 22:53:14 +02:00
parent 0250bcf6a3
commit ad6d40d028
2 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@ def create_docbin_reader(
limit: int = 0, limit: int = 0,
augmenter: Optional[Callable] = None, augmenter: Optional[Callable] = None,
) -> Callable[["Language"], Iterable[Example]]: ) -> Callable[["Language"], Iterable[Example]]:
util.logger.debug(f"Loading corpus from path: {path}")
return Corpus( return Corpus(
path, path,
gold_preproc=gold_preproc, gold_preproc=gold_preproc,

View File

@ -94,6 +94,7 @@ def init_vocab(
if vectors is not None: if vectors is not None:
load_vectors_into_model(nlp, vectors) load_vectors_into_model(nlp, vectors)
logger.info(f"Added vectors: {vectors}") logger.info(f"Added vectors: {vectors}")
logger.info("Finished initializing nlp object")
def load_vectors_into_model( def load_vectors_into_model(