Commit 14fd99aa authored by S.T. Galappaththi's avatar S.T. Galappaththi

Merge branch 'IT20167264' into 'master'

It20167264

See merge request !101
parents 3cb5aa19 2b04343c
......@@ -159,11 +159,11 @@ class GrammarMain:
# if function returns any correct output is displayed
# if __name__ == "__main__":
# obj = GrammarMain()
# sent = "මා සතුන්ට දානයක් දෙන්න හිතන් ඉන්නවා"
# out = obj.mapper(sentence=sent)
# print(out)
if __name__ == "__main__":
obj = GrammarMain()
sent = "තොපි ආහාර ලෑස්ති කරාද"
out = obj.mapper(sentence=sent)
print(out)
# මා සතුන්ට දානයක් දෙන්න හිතන් ඉන්නවා
# මා සතුන්ට දානයක් දෙන්න හිතන් ඉන්වා
......
from fuzzywuzzy import fuzz
from sinlingua.grammar_rule.grammar_rules import GrammarRules
from sinlingua.src.grammar_rule_resources import verbs
from sinlingua.src.grammar_rule_resources import question_verbs
class FourthPerson(GrammarRules):
......@@ -8,7 +8,7 @@ class FourthPerson(GrammarRules):
global conjugated_sentence
grammar_obj = GrammarRules()
conjugated_verb = ''
returned_string_verb = grammar_obj.find_similar_words(verbs, sentence)
returned_string_verb = grammar_obj.find_similar_words(question_verbs, sentence)
# call the function find verb of sentence
verb_checked = returned_string_verb[0]
actual_word = returned_string_verb[1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment