maxent-ai / converse

Conversational text Analysis using various NLP techniques
Apache License 2.0
178 stars 19 forks source link

Updated lru_cache decorator. #9

Open AkashKhamkar opened 2 years ago

AkashKhamkar commented 2 years ago

After installing and running the library pyconverse on python-3.7 or below and using the import statement it gives error in import itself. I went through the utils file and saw that the "@lru_cache" decorator was written as per the new python(i.e. 3.8+) style hence when calling in older versions(py 3.7 and below it raises a NoneType Error) as the LRU_CACHE decorator is written as -" @lru_cache() " with paranthesis for older versions . Hence made the changes. The changes made do not cause any error on the newer versions.