Fixed issue #4007 in nltk/nltk (PR #4064): replaced removed numpy.NINF with -numpy.inf in the MaxentClassifier GIS and IIS trainers for NumPy 2 compatibility, and added regression unit tests for unattested features.
Fixes #4007
numpy.NINF with -numpy.inf in train_maxent_classifier_with_gis and train_maxent_classifier_with_iis in nltk/classify/maxent.py for NumPy 2 compatibility.test_maxent_unattested_features in `nltk/test/unit/test_class…