Skip to content

Commit 094926e

Browse files
committed
Update: english_to_narsese.py: remove goal marker after sentence type is decided
1 parent 6395d4b commit 094926e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

english_to_narsese.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def GrammarLearning(y = "", forced = False):
240240
continue
241241
if line.strip() != "": print("//Input sentence: " + line)
242242
#it's a sentence, postag and bring it into canonical representation using Wordnet lemmatizer:
243-
sentence = " " + line.replace("?", "").replace(".", "").replace(",", "").replace(" not ", " ") + " "
243+
sentence = " " + line.replace("!", "").replace("?", "").replace(".", "").replace(",", "").replace(" not ", " ") + " "
244244
s_and_T = sentence_and_types(sentence)
245245
sentence = s_and_T[0] # canonical sentence (with lemmatized words)
246246
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 "

0 commit comments

Comments
 (0)