faststylometry
faststylometry copied to clipboard
Stylometry library for Burrows' Delta method
If we have train_corpus in 2 files (author1_-_title.txt, author2_-_title.txt) than calibrate(train_corpus) will drop an error: ``` calibrate(train_corpus) lib/python3.10/dist-packages/numpy/core/_methods.py:265: RuntimeWarning: Degrees of freedom 79 model.fit(np.reshape(delta_values, (-1, 1)), ground_truths) 80 81 corpus.probability_model...
## Summary Fixes #5 This PR resolves the `AttributeError: module 'pkgutil' has no attribute 'ImpImporter'` error that occurs when installing faststylometry on Python 3.12+. ## Root Cause Python 3.12 removed...
While running pip install faststylometry, I get this error (linux OS, python 3.12.3): ``` Collecting faststylometry Using cached faststylometry-1.0.4-py3-none-any.whl.metadata (11 kB) Collecting numpy=1.18 (from faststylometry) Using cached numpy-1.24.3.tar.gz (10.9 MB)...