class_docstr: A stream backed corpus view specialized for use with
  ann_segmentation.xml files in NKJP corpus.
class_docstr_tok: ["A","stream","backed","corpus","view","specialized","for","use","with","ann_segmentation.xml","files","in","NKJP","corpus","."]
code: def remove_choice(self, segm):
      ret = []
      prev_txt_end = -1
      prev_txt_nr = -1
      for word in segm:
          txt_nr = self.get_segm_id(word)
          # get increasing sequence of ids: in case of choice get first possibility
          if (
              self.get_sent_beg(word) > prev_txt_end - 1
              or prev_txt_nr != txt_nr
          ):
              ret.append(word)
              prev_txt_end = self.get_sent_end(word)
          prev_txt_nr = txt_nr
  
      return ret
  
imports: import functools
  import os
  import re
  import tempfile
  from nltk.corpus.reader.util import concat
  from nltk.corpus.reader.xmldocs import XMLCorpusReader, XMLCorpusView
label_desc: Use image node_id 6 for calling the NKJPCorpus_Segmentation_View obj's underlying member method code with example usage: obj.remove_choice(segm) and returns: ret