Description:
This pull request includes the implementation of foundational translation methods and enhancements to handle local, remote (cloud) translation, and offline and online model usage. The changes involve the creation of new classes and updates to existing ones to support these functionalities.
Key Changes:
Translation Methods:
Implemented base translation methods.
Future implementations of getLocalTranslator and getRemoteTranslator will be added after related classes are created.
Model Classes for Offline Use:
Created MLLocalModel class for handling local ML models.
Created MLLocalModelManager class for managing local models, with remote model fields and methods to be added later.
Added MLException class for handling ML-related exceptions.
Model Classes for Online Use:
Created MLRemoteModel class for handling local ML models.
Created MLRemoteModelManager class for managing local models, with remote model fields and methods to be added later.
Code Updates:
Updated MLModelDownloadStrategy.cs to fix a bug in the Factory constructor.
Modified MLLocalTranslator.cs to use TaskPrimitive<string> instead of TaskStringWrapper in the TranslateAsync method.
Related Issues and Tickets:
[HUP-855]: Add download model classes for offline use and local translation(main)
[HUP-856]: Create base translation methods
[HUP-857]: Implement download model classes and local translation classes
[HUP-858]: Implement remote translation classes
[HUP-859]: Update translation methods and model handling
Contributor:
@Andronovo-bit, @emineinan
Commit History:
[HUP-856] Created base translation methods; will implement local and remote functions after creating related classes.
[HUP-857, HUP-859] Created download model classes for offline use and local translation classes.
[HUP-857, HUP-859] Updated MLModelDownloadStrategy.cs and MLLocalTranslator.cs.
[HUP-855] Added download model classes for offline use and local translation.
[HUP-858] Create ML remote classes, Create MLRemoteModel class, Update MLLocalModelManager class and Update MLTranslatorFactory class
Description: This pull request includes the implementation of foundational translation methods and enhancements to handle local, remote (cloud) translation, and offline and online model usage. The changes involve the creation of new classes and updates to existing ones to support these functionalities.
Key Changes:
Translation Methods:
getLocalTranslator
andgetRemoteTranslator
will be added after related classes are created.Model Classes for Offline Use:
MLLocalModel
class for handling local ML models.MLLocalModelManager
class for managing local models, with remote model fields and methods to be added later.MLException
class for handling ML-related exceptions.Model Classes for Online Use:
MLRemoteModel
class for handling local ML models.MLRemoteModelManager
class for managing local models, with remote model fields and methods to be added later.Code Updates:
MLModelDownloadStrategy.cs
to fix a bug in the Factory constructor.MLLocalTranslator.cs
to useTaskPrimitive<string>
instead ofTaskStringWrapper
in theTranslateAsync
method.Related Issues and Tickets:
Contributor:
Commit History:
MLModelDownloadStrategy.cs
andMLLocalTranslator.cs
.