Is there a simple way to tell SpaCy to ignore stop words when using .similarity method?
问题 So right now I have a really simple program that will take a sentence and find the sentence in a given book that is most semantically similar and prints out that sentence along with the next few sentences. import spacy nlp = spacy.load('en_core_web_lg') #load alice in wonderland from gutenberg.acquire import load_etext from gutenberg.cleanup import strip_headers text = strip_headers(load_etext(11)).strip() alice = nlp(text) sentences = list(alice.sents) mysent = nlp(unicode("example sentence,