Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to use identify language for Indian languages #91

Open
sumanth19k opened this issue Feb 6, 2023 · 0 comments
Open

Not able to use identify language for Indian languages #91

sumanth19k opened this issue Feb 6, 2023 · 0 comments

Comments

@sumanth19k
Copy link

from inltk.inltk import identify_language
identify_language("ఋణం")

I am getting the following error:
RuntimeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 identify_language("ఋణం")

/local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.9/site-packages/inltk/inltk.py in identify_language(input)
71 loop = asyncio.get_event_loop()
72 tasks = [asyncio.ensure_future(check_all_languages_identifying_model())]
---> 73 done = loop.run_until_complete(asyncio.gather(*tasks))[0]
74 loop.close()
75 defaults.device = torch.device('cpu')

/usr/lib/python3.9/asyncio/base_events.py in run_until_complete(self, future)
616 """
617 self._check_closed()
--> 618 self._check_running()
619
620 new_task = not futures.isfuture(future)

/usr/lib/python3.9/asyncio/base_events.py in _check_running(self)
576 def _check_running(self):
577 if self.is_running():
--> 578 raise RuntimeError('This event loop is already running')
579 if events._get_running_loop() is not None:
580 raise RuntimeError(

RuntimeError: This event loop is already running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant