Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
news
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sartika Aritonang
news
Commits
b274c071
Commit
b274c071
authored
May 29, 2020
by
Sartika Aritonang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
4fb188f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
StopWordRemoverFactory.py
...ckages/Sastrawi/StopWordRemover/StopWordRemoverFactory.py
+32
-0
No files found.
stbi/Lib/site-packages/Sastrawi/StopWordRemover/StopWordRemoverFactory.py
0 → 100644
View file @
b274c071
from
Sastrawi.Dictionary.ArrayDictionary
import
ArrayDictionary
from
Sastrawi.StopWordRemover.StopWordRemover
import
StopWordRemover
class
StopWordRemoverFactory
(
object
):
"""description of class"""
def
create_stop_word_remover
(
self
):
stopWords
=
self
.
get_stop_words
()
dictionary
=
ArrayDictionary
(
stopWords
)
stopWordRemover
=
StopWordRemover
(
dictionary
)
return
stopWordRemover
def
get_stop_words
(
self
):
return
[
'yang'
,
'untuk'
,
'pada'
,
'ke'
,
'para'
,
'namun'
,
'menurut'
,
'antara'
,
'dia'
,
'dua'
,
'ia'
,
'seperti'
,
'jika'
,
'jika'
,
'sehingga'
,
'kembali'
,
'dan'
,
'tidak'
,
'ini'
,
'karena'
,
'kepada'
,
'oleh'
,
'saat'
,
'harus'
,
'sementara'
,
'setelah'
,
'belum'
,
'kami'
,
'sekitar'
,
'bagi'
,
'serta'
,
'di'
,
'dari'
,
'telah'
,
'sebagai'
,
'masih'
,
'hal'
,
'ketika'
,
'adalah'
,
'itu'
,
'dalam'
,
'bisa'
,
'bahwa'
,
'atau'
,
'hanya'
,
'kita'
,
'dengan'
,
'akan'
,
'juga'
,
'ada'
,
'mereka'
,
'sudah'
,
'saya'
,
'terhadap'
,
'secara'
,
'agar'
,
'lain'
,
'anda'
,
'begitu'
,
'mengapa'
,
'kenapa'
,
'yaitu'
,
'yakni'
,
'daripada'
,
'itulah'
,
'lagi'
,
'maka'
,
'tentang'
,
'demi'
,
'dimana'
,
'kemana'
,
'pula'
,
'sambil'
,
'sebelum'
,
'sesudah'
,
'supaya'
,
'guna'
,
'kah'
,
'pun'
,
'sampai'
,
'sedangkan'
,
'selagi'
,
'sementara'
,
'tetapi'
,
'apakah'
,
'kecuali'
,
'sebab'
,
'selain'
,
'seolah'
,
'seraya'
,
'seterusnya'
,
'tanpa'
,
'agak'
,
'boleh'
,
'dapat'
,
'dsb'
,
'dst'
,
'dll'
,
'dahulu'
,
'dulunya'
,
'anu'
,
'demikian'
,
'tapi'
,
'ingin'
,
'juga'
,
'nggak'
,
'mari'
,
'nanti'
,
'melainkan'
,
'oh'
,
'ok'
,
'seharusnya'
,
'sebetulnya'
,
'setiap'
,
'setidaknya'
,
'sesuatu'
,
'pasti'
,
'saja'
,
'toh'
,
'ya'
,
'walau'
,
'tolong'
,
'tentu'
,
'amat'
,
'apalagi'
,
'bagaimanapun'
]
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