def read_file(self):
        self._num_true = defaultdict(int)
        self._num_false = defaultdict(int)
        for feat, label in zip(open(self._input_file),
                               open(self._label_file)):
            fields = label.split()
            label = True if int(fields[0]) > 0 else False

            sent = int(float([x.split(":")[1] for x in fields
                              if x.startswith("sent:")][0]))

            if label:
                self._num_true[sent] += 1
            else:
                self._num_false[sent] += 1

            for jj in [x for x in feat.split()
                       if not x in ":" and not "|" in x]:
                self._observations[(label, sent)][jj] += 1
dataset/ETHPy150Open Pinafore/qb/util/inspect_features.py/VwDiscreteReader.read_file/swapped operands of `in`