-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5eed69
commit a0e0e21
Showing
16 changed files
with
35 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,14 +19,14 @@ The implemented methods are: | |
To install the latest stable version from PyPI use: | ||
|
||
```shell | ||
pip install language-transfer | ||
pip install langsfer | ||
``` | ||
|
||
To install the latest development version from the repository use: | ||
|
||
```shell | ||
git clone [email protected]:AnesBenmerzoug/language-transfer.git | ||
cd language-transfer | ||
git clone [email protected]:AnesBenmerzoug/langsfer.git | ||
cd langsfer | ||
pip install . | ||
``` | ||
|
||
|
@@ -38,10 +38,10 @@ without worrying too much about the package's internals. | |
For example, to instantiate the WECHSEL method, you would use: | ||
|
||
```python | ||
from language_transfer.high_level import wechsel | ||
from language_transfer.initialization import WeightedAverageEmbeddingsInitialization | ||
from language_transfer.embeddings import TransformersEmbeddings, FastTextEmbeddings | ||
from language_transfer.utils import download_file | ||
from langsfer.high_level import wechsel | ||
from langsfer.initialization import WeightedAverageEmbeddingsInitialization | ||
from langsfer.embeddings import TransformersEmbeddings, FastTextEmbeddings | ||
from langsfer.utils import download_file | ||
from transformers import AutoTokenizer | ||
|
||
source_embeddings = TransformersEmbeddings.from_model_name_or_path("roberta-base") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,13 @@ requires = ["poetry-core"] | |
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.poetry] | ||
name = "language-transfer" | ||
name = "langsfer" | ||
version = "0.0.1-dev0" | ||
description = "" | ||
authors = ["Anes Benmerzoug <[email protected]>"] | ||
license = "LGPL-2.1-only" | ||
readme = "README.md" | ||
repository = "https://github.com/AnesBenmerzoug/language-transfer" | ||
repository = "https://github.com/AnesBenmerzoug/langsfer" | ||
keywords = [""] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
|
@@ -24,7 +24,7 @@ classifiers = [ | |
"Intended Audience :: Science/Research", | ||
] | ||
packages = [ | ||
{include = "language_transfer", from = "src"} | ||
{include = "langsfer", from = "src"} | ||
] | ||
|
||
[tool.bumpversion] | ||
|
@@ -48,7 +48,7 @@ serialize = [ | |
"{major}.{minor}.{patch}", | ||
] | ||
files = [ | ||
{ filename = "src/language_transfer/__init__.py", search = '__version__ = "{current_version}"', replace = '__version__ = "{new_version}"' }, | ||
{ filename = "src/langsfer/__init__.py", search = '__version__ = "{current_version}"', replace = '__version__ = "{new_version}"' }, | ||
{ filename = "pyproject.toml", search = 'version = "{current_version}"', replace = 'version = "{new_version}"' } | ||
] | ||
|
||
|
@@ -77,7 +77,7 @@ hypothesis = {extras = ["numpy"], version = "^6.115.0"} | |
huggingface-hub = {extras = ["cli"], version = "^0.25.2"} | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "-vv --failed-first --durations=10 --profile-svg --cov=language-transfer --cov-report=term-missing --cov-report=xml" | ||
addopts = "-vv --failed-first --durations=10 --profile-svg --cov=langsfer --cov-report=term-missing --cov-report=xml" | ||
testpaths = [ | ||
"tests" | ||
] | ||
|
@@ -88,16 +88,13 @@ log_cli = true | |
log_level = "INFO" | ||
|
||
[tool.coverage.run] | ||
source_pkgs = ["language_transfer", "tests"] | ||
source_pkgs = ["langsfer", "tests"] | ||
branch = true | ||
parallel = true | ||
omit = [ | ||
"src/language_transfer/__about__.py", | ||
] | ||
|
||
[tool.coverage.paths] | ||
language_transfer = ["src/language_transfer", "*/language-transfer/src/language_transfer"] | ||
tests = ["tests", "*/language-transfer/tests"] | ||
langsfer = ["src/langsfer", "*/langsfer/src/langsfer"] | ||
tests = ["tests", "*/langsfer/tests"] | ||
|
||
[tool.coverage.report] | ||
exclude_lines = [ | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters