  from spacy.tokens cimport Tokens
  
  
  cdef class EnglishPTB(Language):
      cdef int find_split(self, unicode word, size_t length)
      
  
  cdef EnglishPTB EN_PTB
  
  cpdef Lexeme_addr lookup(unicode word) except 0
 
</s> remove     cdef int find_split(self, unicode word, size_t length)
 </s> add     cdef int find_split(self, unicode word) </s> remove     cdef int find_split(self, unicode word, size_t length):
 </s> add     cdef int find_split(self, unicode word):
        length = len(word) </s> remove     cdef int find_split(self, unicode word, size_t length):
 </s> add     cdef int find_split(self, unicode word):
        cdef size_t length = len(word) </s> remove         if word.endswith("'s"):
 </s> add         if word.endswith("'s") and length >= 3: </s> remove     cdef int find_split(self, unicode word, size_t length):
        return -1
 </s> add     cpdef list find_substrings(self, unicode word):
        substrings = []
        while word:
            split = self.find_split(word)
            if split == 0:
                substrings.append(word)
                break
            substrings.append(word[:split])
            word = word[split:]
        return substrings

    cdef int find_split(self, unicode word):
        return len(word)
    cdef int find_split(self, unicode word)
  from spacy.tokens cimport Tokens
  
  
  cdef class EnglishPTB(Language):
    cdef int find_split(self, unicode word)
      
  
  cdef EnglishPTB EN_PTB
  
  cpdef Lexeme_addr lookup(unicode word) except 0
keep keep keep keep replace keep keep keep keep keep
 * Refactor spacy so that chunks return arrays of lexemes, so that there is properly one lexeme per word. 
spacy/en_ptb.pxd