wtpsplit 2.2.2__tar.gz → 2.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {wtpsplit-2.2.2/wtpsplit.egg-info → wtpsplit-2.2.3}/PKG-INFO +1 -1
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/setup.py +1 -1
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/__init__.py +1 -1
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/models.py +5 -1
- {wtpsplit-2.2.2 → wtpsplit-2.2.3/wtpsplit.egg-info}/PKG-INFO +1 -1
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/LICENSE +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/README.md +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/pyproject.toml +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/setup.cfg +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/aitune_integration.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/configs.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/data/__init__.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/data/language_info.csv +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/data/punctuation.json +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/data/punctuation.txt +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/data/punctuation_xlmr.txt +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/data/punctuation_xlmr_unk.txt +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/data/sentence_stats.json +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/data_acquisition/__init__.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/data_acquisition/extract_all_data.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/data_acquisition/extract_eval_data.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/data_acquisition/extract_sentences.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/data_acquisition/extract_shared_task_data.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/evaluation/__init__.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/evaluation/adapt.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/evaluation/evaluate_sepp_nlg_subtask1.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/evaluation/extrinsic.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/evaluation/intrinsic_baselines.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/evaluation/intrinsic_baselines_multilingual.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/evaluation/intrinsic_pairwise.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/evaluation/intrinsic_ted.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/evaluation/legal_baselines.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/evaluation/llm_sentence.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/evaluation/punct_annotation.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/evaluation/punct_annotation_wtp.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/extract.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/extract_batched.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/train/__init__.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/train/adaptertrainer.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/train/evaluate.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/train/hf_compat.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/train/train.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/train/train_SM.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/train/train_lora.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/train/trainer.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/train/transformers_trainer_imports.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/train/utils.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/utils/__init__.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/utils/clean_tweets.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/utils/constraints.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/utils/create_dummy_data.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/utils/download_spacy.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/utils/priors.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit/utils/remove_unks.py +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit.egg-info/SOURCES.txt +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit.egg-info/dependency_links.txt +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit.egg-info/requires.txt +0 -0
- {wtpsplit-2.2.2 → wtpsplit-2.2.3}/wtpsplit.egg-info/top_level.txt +0 -0
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="wtpsplit",
|
|
5
|
-
version="2.2.
|
|
5
|
+
version="2.2.3",
|
|
6
6
|
packages=find_packages(),
|
|
7
7
|
description="Universal Robust, Efficient and Adaptable Sentence Segmentation",
|
|
8
8
|
long_description=open("README.md", encoding="utf-8").read(),
|
|
@@ -30,7 +30,7 @@ from wtpsplit.utils.constraints import (
|
|
|
30
30
|
)
|
|
31
31
|
from wtpsplit.utils.priors import create_prior_function
|
|
32
32
|
|
|
33
|
-
__version__ = "2.2.
|
|
33
|
+
__version__ = "2.2.3"
|
|
34
34
|
|
|
35
35
|
# suppress docopt syntax warnings (triggered in Python 3.14+)
|
|
36
36
|
warnings.filterwarnings("ignore", category=SyntaxWarning, module="docopt")
|
|
@@ -1123,6 +1123,10 @@ class SubwordXLMRobertaModel(XLMRobertaModel):
|
|
|
1123
1123
|
self.config = config
|
|
1124
1124
|
|
|
1125
1125
|
self.embeddings = XLMRobertaEmbeddings(config)
|
|
1126
|
+
# transformers 5.24 renamed the embeddings' past_key_values_length kwarg to cache_length.
|
|
1127
|
+
self._embeddings_cache_length_key = (
|
|
1128
|
+
"cache_length" if _supports_kwarg(self.embeddings.forward, "cache_length") else "past_key_values_length"
|
|
1129
|
+
)
|
|
1126
1130
|
self.encoder = SubwordXLMRobertaEncoder(config)
|
|
1127
1131
|
self.lookahead_split_layers = config.lookahead_split_layers
|
|
1128
1132
|
self.pooler = XLMRobertaPooler(config) if add_pooling_layer else None
|
|
@@ -1233,7 +1237,7 @@ class SubwordXLMRobertaModel(XLMRobertaModel):
|
|
|
1233
1237
|
position_ids=position_ids,
|
|
1234
1238
|
token_type_ids=token_type_ids,
|
|
1235
1239
|
inputs_embeds=inputs_embeds,
|
|
1236
|
-
past_key_values_length
|
|
1240
|
+
**{self._embeddings_cache_length_key: past_key_values_length},
|
|
1237
1241
|
)
|
|
1238
1242
|
|
|
1239
1243
|
# We can provide a self-attention mask of dimensions [batch_size, from_seq_length, to_seq_length]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|