Skip to content

Commit

Permalink
Update: english_to_narsese.py: remove goal marker after sentence type…
Browse files Browse the repository at this point in the history
… is decided
  • Loading branch information
patham9 committed Oct 1, 2021
1 parent 6395d4b commit 094926e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion english_to_narsese.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def GrammarLearning(y = "", forced = False):
continue
if line.strip() != "": print("//Input sentence: " + line)
#it's a sentence, postag and bring it into canonical representation using Wordnet lemmatizer:
sentence = " " + line.replace("?", "").replace(".", "").replace(",", "").replace(" not ", " ") + " "
sentence = " " + line.replace("!", "").replace("?", "").replace(".", "").replace(",", "").replace(" not ", " ") + " "
s_and_T = sentence_and_types(sentence)
sentence = s_and_T[0] # canonical sentence (with lemmatized words)
typetext = s_and_T[1] #" DET_1 ADJ_1 NOUN_1 ADV_2 VERB_2 DET_2 ADJ_2 NOUN_2 ADP_3 DET_3 ADJ_3 NOUN_3 "
Expand Down

0 comments on commit 094926e

Please sign in to comment.