simpleneighbors icon indicating copy to clipboard operation
simpleneighbors copied to clipboard

easy way to tell if an item is in the corpus without try/except

Open aparrish opened this issue 5 years ago • 0 comments

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.

aparrish avatar Apr 04 '19 18:04 aparrish