Skip to content

Commit 1227bd4

Browse files
authored
V1.5.1
1 parent ba2a1d8 commit 1227bd4

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ print(accentizer.process_yo(text))
4444
- [Датасет](https://huggingface.co/datasets/TeraTTS/open_accent) словосочетаний и предложений собранных со всего интернета
4545
- [Датасет](https://huggingface.co/datasets/TeraTTS/stress_dataset_sft) использовавшийся для обучения моделей акцентуатора
4646

47-
Файлы моделей и словарей располагаются по [ссылке](https://huggingface.co/TeraTTS/accentuator). Мы будем признательны фидбеку на [telegram аккаунт](https://t.me/chckdskeasfsd)
47+
Файлы моделей и словарей располагаются по [ссылке](https://huggingface.co/TeraTTS/accentuator). Мы будем признательны фидбеку на [telegram аккаунт](https://t.me/chckdskeasfsd)

ruaccent/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Russian accentizer"""
22

3-
__version__ = "1.5.0"
3+
__version__ = "1.5.1"
44

55

66
from .ruaccent import RUAccent

ruaccent/omograph_model.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@ def softmax(self, x):
1818
def classify(self, text, hypotheses):
1919
hypotheses_probs = []
2020
text = re.sub(r'\s+(?=(?:[,.?!:;…]))', r'', text)
21-
print(text)
22-
print(hypotheses)
21+
2322
for h in hypotheses:
2423
inputs = self.tokenizer(text, h, return_tensors="np")
2524
inputs = {k: v.astype(np.int64) for k, v in inputs.items()}
2625

2726
outputs = self.session.run(None, inputs)[0]
2827
outputs = self.softmax(outputs)
2928
prob_label_is_true = [float(p[1]) for p in outputs][0]
30-
print(prob_label_is_true)
3129
hypotheses_probs.append(prob_label_is_true)
3230
return hypotheses[hypotheses_probs.index(max(hypotheses_probs))]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='ruaccent',
5-
version='1.2.0',
5+
version='1.5.1',
66
author='Denis Petrov',
77
author_email='arduino4b@gmail.com',
88
description='A Russian text accentuation tool',

0 commit comments

Comments
 (0)