def inferStructure(self):
        self.fields = [ind for (ind, f) in enumerate(self.tokens)
                       if len(f) > 1]
        # convert the token sets to list of strings
        for ind in xrange(len(self.tokens)):
            cur = self.tokens[ind]
            if len(cur) == 1:
                self.tokens[ind] = cur.pop()
            else:
                self.tokens[ind] = ""
dataset/ETHPy150Open hgascon/pulsar/pulsar/core/model.py/StructureTemplate.inferStructure/original