TeraSpace commited on
Commit
328b51c
1 Parent(s): 9fd1e6b

Update ruaccent/ruaccent.py

Browse files
Files changed (1) hide show
  1. ruaccent/ruaccent.py +3 -3
ruaccent/ruaccent.py CHANGED
@@ -9,9 +9,9 @@ import re
9
 
10
 
11
  class RUAccent:
12
- def __init__(self, workdir=None):
13
- self.omograph_model = OmographModel()
14
- self.accent_model = AccentModel()
15
  if not workdir:
16
  self.workdir = str(pathlib.Path(__file__).resolve().parent)
17
  else:
 
9
 
10
 
11
  class RUAccent:
12
+ def __init__(self, workdir=None, allow_cuda=True):
13
+ self.omograph_model = OmographModel(allow_cuda=allow_cuda)
14
+ self.accent_model = AccentModel(allow_cuda=allow_cuda)
15
  if not workdir:
16
  self.workdir = str(pathlib.Path(__file__).resolve().parent)
17
  else: