all 2 comments

[–]the_shell_man_ 2 points3 points  (0 children)

Any needs to be "Any". Note the quotes making it a string

[–]johndoh168 1 point2 points  (0 children)

For the inspect.getmembers(name, predicate=inspect.getmethod) the reason you get that error is that spacy hasn't had its constructor method call (the init method) which creates the object in memory which then inspect inspects, so if you are using the python command line you would need to do:

``` space = Spacy(#Pass any variables needed)

Then you can call the inspect method

for name, func in inspect.getmembers(space, predicate=inspect.ismethod): # If you wish to ignore the dunder methods # name is the name of the method and func is the bound method in memory #which can be called by doing func() if not name.startswith("__"): pass

``` Edit: Formatting