sumehta / question-generation

Given a sentence automatically generate reading comprehension style factual questions from that sentence, such that the sentence contains answers to those questions.
MIT License
112 stars 31 forks source link

how to fix this error: "AttributeError: 'QuestionGenerator' object has no attribute 'input_file'"? #1

Closed r-baradaran closed 6 years ago

r-baradaran commented 6 years ago

I execute this code step by step but i received an error when run: python question_generator.py -s 'Handheld devices find ways to bolster U.S. homeland defense and response' Traceback (most recent call last): File "question_generator.py", line 51, in q = QuestionGenerator() File "question_generator.py", line 25, in init if self.input_file: AttributeError: 'QuestionGenerator' object has no attribute 'input_file' please help me how to fit it? thanks in advance.

sumehta commented 6 years ago

Fixed the issue.