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
b8466e36
Commit
b8466e36
authored
Aug 24, 2023
by
W.G.G.A. Supun Sameera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated for new version
parent
94546fe0
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27203 additions
and
27198 deletions
+27203
-27198
sinlingua/preprocessor/stemmer.py
sinlingua/preprocessor/stemmer.py
+6
-0
sinlingua/src/preprocessor_resources.py
sinlingua/src/preprocessor_resources.py
+27197
-27198
No files found.
sinlingua/preprocessor/stemmer.py
View file @
b8466e36
# -*- coding: utf-8 -*-
import
os
import
functools
from
typing
import
Union
...
...
@@ -143,4 +144,9 @@ class SinhalaStemmer:
return
stemmed_list
if
__name__
==
"__main__"
:
stemmer_obj
=
SinhalaStemmer
()
input
=
"විදුලි බිල හා ජල බිල තුන් හතර ගුණයකින් වැඩිවී, වැඩි කලක් යන්නට මත්තෙන් නැවත විදුලි අර්බුදයක හා ජල අර්බුදයක බර ජනතාවගේ හිස මත කඩා වැටී ඇත. විදුලිඅර්බුද මේ ඊයේ පෙරේදා දෙවනවරටත් ජල ගාස්තු සියයට 50 කට වැඩි ගණනකින් වැඩිකර ඇත. එසේම, නුදුරු අනාගතයේම විදුලි කප්පාදුවකට රජය අර අඳින බව පෙනෙන්නට තිබේ. අමාත්ය කංචන විජේසේකරගේ කතා බහෙන්ද ඒ බව ඉඟි කෙරේ. මීට හේතුව රටට බලපා ඇති දැඩි නියං තත්ත්වයයි. මේ නිසා ජල සහ විදුලි කප්පාදුවක් ළඟ ළඟම එන බව අප සියල්ලෝම තේරුම් ගත යුතුව"
output
=
stemmer_obj
.
stemmer
(
input
)
print
(
output
)
sinlingua/src/preprocessor_resources.py
View file @
b8466e36
This diff is collapsed.
Click to expand it.
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