spaCy get confidence on entity classification?

There's not a built-in method, but you can get approximate confidence using the code posted here: