simpleneighbors
simpleneighbors copied to clipboard
easy way to tell if an item is in the corpus without try/except
Right now you can do item in nn.corpus
, but .corpus
isn't "officially" a part of the API. Might be nice to define __getitem__
so you could just write item in nn
to do this check.