jonathandunn / text_analytics

Basic text analytics and natural language processing in Python
GNU General Public License v3.0
120 stars 54 forks source link

Update text_analytics.py #13

Open pablobec93 opened 7 months ago

pablobec93 commented 7 months ago

This pull request addresses a compatibility issue with Python 3.9 and above, where importing Mapping directly from collections results in an ImportError. To ensure compatibility across all supported Python versions, this change updates the import statement to fetch Mapping from collections.abc instead.