Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ryhan committed Mar 23, 2013
1 parent a3d377e commit df467d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 36 deletions.
11 changes: 0 additions & 11 deletions ask
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,6 @@ sys.path.append("modules")
import questionContentSelector
import questionFromSentence

# turns a declarative sentence into a question
def sentenceToQuestion(sentence):
question = sentence
if ("It is" in sentence) and (sentence[len(sentence) -1] == "."):
question = sentence[:len(sentence)-1] + str("?")
question = sentence.replace("It is", "What is")
elif " is " in question:
i = question.index("is")
question = question[i:i+2] + question[:i] + quesiton[i+2:]
return question

if __name__ == '__main__':
path_to_article = sys.argv[1]
num_questions = int(sys.argv[2])
Expand Down
3 changes: 3 additions & 0 deletions modules/extractor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# extractor.py
# named entity recognition, currently unused.

import nltk

with open('para.txt', 'r') as f:
Expand Down
25 changes: 0 additions & 25 deletions modules/question_classifier.py

This file was deleted.

0 comments on commit df467d2

Please sign in to comment.