kelas-ai 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
kelas_ai-0.1.1/LICENSE ADDED
File without changes
@@ -0,0 +1,11 @@
1
+ Metadata-Version: 2.4
2
+ Name: kelas-ai
3
+ Version: 0.1.1
4
+ Summary: Python library for AI and data processing utilities
5
+ Author: Kelas AI
6
+ License: MIT
7
+ Keywords: machine-learning,artificial-intelligence,text-processing,image-processing,data-science
8
+ Requires-Python: >=3.9
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Dynamic: license-file
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,40 @@
1
+ class Stopword:
2
+ def __init__(self):
3
+ self._default_stopwords = set([
4
+ "ada","adalah","agar","aja","aj","akan","atau","ataupun","ato","awal",
5
+ "bahkan","bahwa","bakal","banget","beberapa","begitu","belum","bener","berdasarkan","bila","bkn","blm","bngt","buat",
6
+ "dah","dalam","dan","dapat","dari","daripada","datang","deh","demikian","dengan","di","dll","dr","drpd","dulu","dunk",
7
+ "ga","gak",
8
+ "hanya","hanyalah","hingga",
9
+ "ialah","ini","itu",
10
+ "jadi","jangan","jd","jgn","jika","jikalau","juga","justru",
11
+ "kalau","kalo","karena","karenanya","karn","karna","ke","kecuali","ketika","kok","krn",
12
+ "lah","lho","loh",
13
+ "maka","makanya","maupun","masih","melainkan","memang","meski","meskipun","mesti","misalnya",
14
+ "nah","namun","nya",
15
+ "oleh",
16
+ "pada","padahal","paling","per","pun",
17
+ "saja","sbg","sbagai","sebab","sebagai","sebagaimana","sebuah","secara","segala","sehingga","sejak","sekalian","sekarang","sekitar","selain","selalu","selama","selanjutnya","seluruh","semacam","sementara","semua","semuanya","sendiri","seolah","seperti","serta","sesudah","setelah","setiap","setiapnya","sesuai","sesungguhnya","sesuatu","saat","sampai","sangat","sang","saya","sdh","sdg","segera","si","siapa","sih","supaya",
18
+ "tadi","tah","tak","tanpa","tapi","telah","tentang","tentu","terhadap","termasuk","tersebut","terus","tetapi","tiap","toh","trs",
19
+ "udah","untuk","utk",
20
+ "waktu","walau","walaupun","wong",
21
+ "ya","yaitu","yakni","yang","yg"
22
+ ])
23
+
24
+ self.stopwords = self._default_stopwords.copy()
25
+
26
+ def get(self):
27
+ return self.stopwords
28
+
29
+ def remove(self, text):
30
+ words = text.lower().split()
31
+ return " ".join(word for word in words if word not in self.stopwords)
32
+
33
+ def add(self, words):
34
+ if isinstance(words, str):
35
+ self.stopwords.add(words.lower())
36
+ else:
37
+ self.stopwords.update(word.lower() for word in words)
38
+
39
+ def reset(self):
40
+ self.stopwords = self._default_stopwords.copy()
@@ -0,0 +1,11 @@
1
+ Metadata-Version: 2.4
2
+ Name: kelas-ai
3
+ Version: 0.1.1
4
+ Summary: Python library for AI and data processing utilities
5
+ Author: Kelas AI
6
+ License: MIT
7
+ Keywords: machine-learning,artificial-intelligence,text-processing,image-processing,data-science
8
+ Requires-Python: >=3.9
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Dynamic: license-file
@@ -0,0 +1,12 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ kelas_ai/__init__.py
5
+ kelas_ai.egg-info/PKG-INFO
6
+ kelas_ai.egg-info/SOURCES.txt
7
+ kelas_ai.egg-info/dependency_links.txt
8
+ kelas_ai.egg-info/top_level.txt
9
+ kelas_ai/images/__init__.py
10
+ kelas_ai/text/__init__.py
11
+ kelas_ai/text/preprocessing/__init__.py
12
+ kelas_ai/text/preprocessing/stopword.py
@@ -0,0 +1 @@
1
+ kelas_ai
@@ -0,0 +1,21 @@
1
+ [project]
2
+ name = "kelas-ai"
3
+ version = "0.1.1"
4
+ description = "Python library for AI and data processing utilities"
5
+ readme = "README.md"
6
+ requires-python = ">=3.9"
7
+ license = { text = "MIT" }
8
+ authors = [
9
+ { name = "Kelas AI" }
10
+ ]
11
+ keywords = [
12
+ "machine-learning",
13
+ "artificial-intelligence",
14
+ "text-processing",
15
+ "image-processing",
16
+ "data-science"
17
+ ]
18
+
19
+ [tool.setuptools.packages.find]
20
+ where = ["."]
21
+ include = ["kelas_ai*"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+