goru001 / inltk

Natural Language Toolkit for Indic Languages aims to provide out of the box support for various NLP tasks that an application developer might need
https://inltk.readthedocs.io
MIT License
818 stars 164 forks source link

Not able to use identify language for Indian languages #91

Open sumanth19k opened 1 year ago

sumanth19k commented 1 year ago

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

I am getting the following error: RuntimeError Traceback (most recent call last)

in () ----> 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