Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2023-118
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-118
2023-118
Commits
14fd99aa
Commit
14fd99aa
authored
Sep 02, 2023
by
S.T. Galappaththi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'IT20167264' into 'master'
It20167264 See merge request
!101
parents
3cb5aa19
2b04343c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
sinlingua/grammar_rule/grammar_main.py
sinlingua/grammar_rule/grammar_main.py
+5
-5
sinlingua/grammar_rule/rule_based_4.py
sinlingua/grammar_rule/rule_based_4.py
+2
-2
No files found.
sinlingua/grammar_rule/grammar_main.py
View file @
14fd99aa
...
...
@@ -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
)
# මා සතුන්ට දානයක් දෙන්න හිතන් ඉන්නවා
# මා සතුන්ට දානයක් දෙන්න හිතන් ඉන්වා
...
...
sinlingua/grammar_rule/rule_based_4.py
View file @
14fd99aa
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
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment