FileNotFoundError Traceback (most recent call last)
d:\NaMo\States\Uttar Pradesh\Codes[CM][UP] - Scoping.ipynb Cell 73 line 2
1 # indictrans setup
----> 2 trn = Transliterator(source = 'eng', target = 'hin', build_lookup = True)
File ~\AppData\Roaming\Python\Python310\site-packages\indictrans\transliterator.py:82, in Transliterator.init(self, source, target, decode, build_lookup, rb)
78 raise NotImplementedError(
79 'Language pair %s-%s is not implemented.' %
80 (source, target))
81 if source == 'eng':
---> 82 ru2i = Rom2Target(source, target, decoder, build_lookup)
83 else:
84 ru2i = Urd2Target(source, target, decoder, build_lookup)
File ~\AppData\Roaming\Python\Python310\site-packages\indictrans\script_transliterate.py:60, in Rom2Target.init(self, source, target, decoder, build_lookup)
59 def init(self, source, target, decoder, build_lookup=False):
---> 60 super(Rom2Target, self).init(source,
61 target,
62 decoder,
63 build_lookup)
64 self.non_alpha = re.compile(r"([^a-z]+)")
65 self.letters = set(string.ascii_letters[:26])
File ~\AppData\Roaming\Python\Python310\site-packages\indictrans\base.py:69, in BaseTransliterator.init(self, source, target, decoder, build_lookup)
...
79 (self.dist_dir, model),
80 encoding='latin1',
81 allow_pickle=True)[0]
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Admin\AppData\Roaming\Python\Python310\site-packages\indictrans/models/eng-hin/sparse.vec'
FileNotFoundError Traceback (most recent call last)
d:\NaMo\States\Uttar Pradesh\Codes[CM][UP] - Scoping.ipynb Cell 73 line 2
1 # indictrans setup
----> 2 trn = Transliterator(source = 'eng', target = 'hin', build_lookup = True)
File ~\AppData\Roaming\Python\Python310\site-packages\indictrans\transliterator.py:82, in Transliterator.init(self, source, target, decode, build_lookup, rb)
78 raise NotImplementedError(
79 'Language pair
%s-%sis not implemented.' %80 (source, target))
81 if source == 'eng':
---> 82 ru2i = Rom2Target(source, target, decoder, build_lookup)
83 else:
84 ru2i = Urd2Target(source, target, decoder, build_lookup)
File ~\AppData\Roaming\Python\Python310\site-packages\indictrans\script_transliterate.py:60, in Rom2Target.init(self, source, target, decoder, build_lookup)
59 def init(self, source, target, decoder, build_lookup=False):
---> 60 super(Rom2Target, self).init(source,
61 target,
62 decoder,
63 build_lookup)
64 self.non_alpha = re.compile(r"([^a-z]+)")
65 self.letters = set(string.ascii_letters[:26])
File ~\AppData\Roaming\Python\Python310\site-packages\indictrans\base.py:69, in BaseTransliterator.init(self, source, target, decoder, build_lookup)
...
79 (self.dist_dir, model),
80 encoding='latin1',
81 allow_pickle=True)[0]
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Admin\AppData\Roaming\Python\Python310\site-packages\indictrans/models/eng-hin/sparse.vec'