Skip to content

Commit

Permalink
Fixed changes for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Attieh authored and Joseph Attieh committed Feb 6, 2024
1 parent b9b6069 commit e87f39e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion mammoth/model_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def build_embeddings(opts, vocab, for_encoder=True):
freeze_word_vecs=freeze_word_vecs,
enable_embeddingless=opts.enable_embeddingless
)
if opts.enable_embeddingless: logger.info("Creating an embeddingless model.")
if opts.enable_embeddingless:
logger.info("Creating an embeddingless model.")
return emb


Expand Down
4 changes: 2 additions & 2 deletions mammoth/opts.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ def model_opts(parser):
'--enable_embeddingless',
'-enable_embeddingless',
action='store_true',
help="Enable the use of byte-based embeddingless models" + \
"(Shaham et. al, 2021) https://aclanthology.org/2021.naacl-main.17/",
help="Enable the use of byte-based embeddingless models" +
"(Shaham et. al, 2021) https://aclanthology.org/2021.naacl-main.17/",
)
group.add(
'--position_encoding',
Expand Down

0 comments on commit e87f39e

Please sign in to comment.