Yurii Paniv commited on
Commit
70b522e
1 Parent(s): 3a8ff8c

Add ukrainian-accentor as package

Browse files
Files changed (4) hide show
  1. .gitmodules +0 -3
  2. requirements.txt +2 -1
  3. stress_with_model.py +1 -5
  4. ukrainian-accentor +0 -1
.gitmodules DELETED
@@ -1,3 +0,0 @@
1
- [submodule "ukrainian-accentor"]
2
- path = ukrainian-accentor
3
- url = https://github.com/egorsmkv/ukrainian-accentor.git
 
 
 
requirements.txt CHANGED
@@ -1,2 +1,3 @@
1
  TTS==0.7.1
2
- ukrainian-word-stress==1.0.0
 
1
  TTS==0.7.1
2
+ ukrainian-word-stress==1.0.0
3
+ git+https://github.com/egorsmkv/ukrainian-accentor.git@5b7971c4e135e3ff3283336962e63fc0b1c80f4c
stress_with_model.py CHANGED
@@ -1,8 +1,4 @@
1
- import torch
2
-
3
- # import
4
- importer = torch.package.PackageImporter("ukrainian-accentor/accentor-lite.pt")
5
- accentor = importer.load_pickle("uk-accentor", "model")
6
 
7
  # run
8
  def stress_with_model(text: str):
1
+ import ukrainian_accentor as accentor
 
 
 
 
2
 
3
  # run
4
  def stress_with_model(text: str):
ukrainian-accentor DELETED
@@ -1 +0,0 @@
1
- Subproject commit 44f178282efd7eb3770fd082cab2b795351efe76