When saving an object with python pickle
RuntimeError: maximum recursion depth exceeded while pickling an object
What to do if
import sys
sys.setrecursionlimit(10000)
The numerical value of the argument is appropriate. In my case, when I saved the 4.4 million word trie tree, I was able to save it with the above numerical values.
Recommended Posts