@Ian - I followed the instructions to the letter, but get this error when I run it:
calibre, version 0.8.50
ERROR: Failed to calculate similarity score: <b>Failed</b>: Calculate similarity score
Calculate similarity score
Python function terminated unexpectedly: local variable 'target_TF_dict' referenced before assignment
-------------------------------
Book 1 of 1 after 0.696127
Logfile for book ID 206 (The Afghan - MOBI)
Dictionary size of 2
FAILED TO calculate Similarity Score for The Afghan
Magnitude of target book: B_dot_B = 0.000000
Traceback (most recent call last):
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 147, in main
return run_entry_point()
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 116, in run_entry_point
return getattr(pmod, func)()
File "site-packages/calibre/utils/ipc/worker.py", line 191, in main
File "site-packages/calibre/utils/ipc/worker.py", line 138, in arbitrary_n
File "calibre_plugins.similar_stories.jobs", line 143, in do_count_statistics
UnboundLocalError: local variable 'target_TF_dict' referenced before assignment
|