python pickleでオブジェクトを保存するときに
RuntimeError: maximum recursion depth exceeded while pickling an object
が出る場合の対処
import sys
sys.setrecursionlimit(10000)
引数の数値は適当に。
なお自分の場合440万単語のトライ木を保存するときに上記数値で保存できた。
Go to list of users who liked
More than 5 years have passed since last update.
python pickleでオブジェクトを保存するときに
RuntimeError: maximum recursion depth exceeded while pickling an object
が出る場合の対処
import sys
sys.setrecursionlimit(10000)
引数の数値は適当に。
なお自分の場合440万単語のトライ木を保存するときに上記数値で保存できた。
Register as a new user and use Qiita more conveniently
Go to list of users who liked