def addData(self, location, type): dummy_reader = DataReader.Reader(location, type) dummy_reader.readFile() dummy_reader.processContent() if type == "ON": self.rawOntoNodes_data = dummy_reader.procontent if type == "IN": for a in range(len(dummy_reader.procontent)): self.rawIndex_data.append(dummy_reader.procontent[a]) if type == "FW": for a in range(len(dummy_reader.procontent)): self.rawFunctionWord_data.append(dummy_reader.procontent[a]) if type == "TL": for a in range(len(dummy_reader.procontent)): self.rawTranslator_data.append(dummy_reader.procontent[a])