Skip to content

Releases: xhluca/dl-translate

v0.3.1

12 Apr 19:39
27c5e9d
Compare
Choose a tag to compare

What's Changed

  • Update README.md by @xhluca in #60
  • Make tqdm optional cause it interferes with thread monkey patching in gevent by @ddorian in #61
  • Update setup.py by @xhluca in #62

New Contributors

Full Changelog: v0.3.0...v0.3.1

dl-translate v0.3.0

18 Jul 05:38
66b63b4
Compare
Choose a tag to compare

New

  • NLLB is now available, allowing you to translate up to 200 languages. It is also much faster.
  • Notebook demo for nllb

Changed

  • New minimum version of transformers (4.30+) and PyTorch (2.0+)
  • Modify behavior of _resolve_lang_codes
  • Moved certain hidden functions to utils

Fixed

  • dlt.utils: Changed default for available_languages, get_lang_code_map, available_codes. Previously was incorrectly set to mbart50.

Docs

  • Improved Readme with examples for nllb
  • Removed mentions of readthedocs.io
  • Change language reference to table (previously bullet points)

dl-translate v0.2.6

13 Jul 21:28
4b2c6f2
Compare
Choose a tag to compare

Update readme with link to new docs

dl-translate v0.2.5

21 Aug 19:15
Compare
Choose a tag to compare
Correct name of citation.cff file

dl-translate v0.2.4

21 Aug 19:13
Compare
Choose a tag to compare
Update readme to link to latest zenodo DOI

dl-translate v0.2.3

21 Aug 19:10
Compare
Choose a tag to compare
Add citations.cff and update readme with badges

dl-translate v0.2.2.post1

21 Aug 18:50
45f8d86
Compare
Choose a tag to compare

Enable Zenodo Archiving

This will allow this repo to obtain a DOI. No changes to this repo was made

dl-translate v0.2.2

09 Apr 01:13
a6f7410
Compare
Choose a tag to compare

Change languages available in dlt.lang

Changed

  • Docs: Available languages now include "Khmer" (which maps to central khmer)

Fixed

  • dlt.lang will now have all the languages corresponding to m2m100 instead of mbart50

dl-translate v0.2.1

08 Apr 19:37
cfa6f9e
Compare
Choose a tag to compare

Fix dlt.TranslationModel.load_obj

Added

  • New tests for saving and loading.

Fixed

  • dlt.TranslationModel.load_obj: Will now work without having to explicitly give the model family.

dl-translate v0.2.0

08 Apr 15:29
6279c4c
Compare
Choose a tag to compare

Add m2m100 as the new default model to support 100 languages

Added

  • dlt.lang.m2m100 module: Now has variables for over 100 languages, also auto-complete ready. Example: dlt.lang.m2m100.ENGLISH.
  • dlt.utils.available_languages, dlt.utils.available_codes: Now supports argument "m2m100"
  • Available languages for each model family
  • Script and template to generate available languages

Changed

  • [BREAKING] dlt.lang.TranslationModel: A new model parameter called model_family in the initialization function. Either "mbart50" or "m2m100". By default, it will be inferred based on model_or_path. Needs to be explicitly set if model_or_path is a path.
  • [BREAKING] Default model changed to m2m100
  • Docs and readme about mbart50 were reframed to take into account the new model
  • dlt.TranslationModel.translate: Improved docstring to be more general.
  • Tests pertaining to m2m100
  • scripts/generate_langs.py: Renamed, mechanism now changed to loading from json files
  • docs/index.md: Expand the "Usage" and "Advanced" sections
  • README.md: Add acknowledgement about m2m100, significantly trim "Advanced" section, make "Usage" more concise

Fixed

  • dlt.TranslationModel.available_codes() was returning the languages instead of the codes. It will now correctly return the code.

Removed

  • Output type hints for TranslationModel.get_transformers_model and TranslationModel.get_tokenizer
  • [BREAKING] dlt.TranslationModel.bart_model and dlt.TranslationModel.tokenizer are no longer available to be used directly. Please use dlt.TranslationModel.get_transformers_model and dlt.TranslationModel.get_tokenizer instead.