      def __init__(self, StringStore strings, transition_system, ParserModel model, int projectivize = 0):
          self.moves = transition_system
          self.model = model
  
      @classmethod
      def from_dir(cls, model_dir, strings, transition_system):
          if not os.path.exists(model_dir):
              print >> sys.stderr, "Warning: No model found at", model_dir
          elif not os.path.isdir(model_dir):
 
</s> remove     def __init__(self, StringStore strings, transition_system, ParserModel model):
 </s> add     def __init__(self, StringStore strings, transition_system, ParserModel model, int projectivize = 0): </s> remove         return cls(strings, moves, model)
 </s> add         return cls(strings, moves, model, cfg.projectivize) </s> remove     def _make_span_index(self, heads):
        # stores the direct dependents for each token
        # for searching top-down through a tree
        spans = {}
        for tokenid, head in enumerate(heads):
            if tokenid == head: # root
                continue
            if head not in spans:
                spans[head] = []
            spans[head].append(tokenid)
        return spans


    def _filter_labels(self, labeled_trees, cutoff):
 </s> add     @classmethod
    def _filter_labels(cls, gold_tuples, cutoff, freqs):
        self._projectivize = projectivize
      def __init__(self, StringStore strings, transition_system, ParserModel model, int projectivize = 0):
          self.moves = transition_system
          self.model = model
        self._projectivize = projectivize
  
      @classmethod
      def from_dir(cls, model_dir, strings, transition_system):
          if not os.path.exists(model_dir):
              print >> sys.stderr, "Warning: No model found at", model_dir
          elif not os.path.isdir(model_dir):
keep keep add keep keep keep keep keep keep
 integrated pseudo-projective parsing into parser

- nonproj.pyx holds a class PseudoProjectivity which currently holds
  all functionality to implement Nivre & Nilsson 2005's pseudo-projective
  parsing using the HEAD decoration scheme
- changed lefts/rights in Token to account for possible non-projective
  structures 
spacy/syntax/parser.pyx