PerSent 0.2.4__tar.gz → 1.0.2__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.
persent-1.0.2/PKG-INFO ADDED
@@ -0,0 +1,121 @@
1
+ Metadata-Version: 2.4
2
+ Name: PerSent
3
+ Version: 1.0.2
4
+ Summary: Persian Sentiment Analysis Toolkit
5
+ Home-page: https://github.com/RezaGooner/PerSent
6
+ Author: RezaGooner
7
+ Author-email: RezaAsadiProgrammer@Gmail.com
8
+ Keywords: persian sentiment analysis nlp
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.8
13
+ Description-Content-Type: text/markdown
14
+ Requires-Dist: hazm>=0.7.0
15
+ Requires-Dist: gensim>=4.0.0
16
+ Requires-Dist: scikit-learn>=1.0.0
17
+ Requires-Dist: pandas>=1.3.0
18
+ Requires-Dist: tqdm>=4.62.0
19
+ Requires-Dist: joblib>=1.1.0
20
+ Dynamic: author
21
+ Dynamic: author-email
22
+ Dynamic: classifier
23
+ Dynamic: description
24
+ Dynamic: description-content-type
25
+ Dynamic: home-page
26
+ Dynamic: keywords
27
+ Dynamic: requires-dist
28
+ Dynamic: requires-python
29
+ Dynamic: summary
30
+
31
+ # PerSent - Persian Sentiment Analyzer
32
+ [![فارسی](https://img.shields.io/badge/Persian-فارسی-blue.svg)](README.fa.md)
33
+
34
+
35
+ ![PerSent Logo](https://github.com/user-attachments/assets/6bb1633b-6ed3-47fa-aae2-f97886dc4e22)
36
+
37
+ ## Introduction
38
+ PerSent is a Python library designed for Persian sentiment analysis. The name stands for "Persian Sentiment Analyzer". Currently in its early testing phase, PerSent provides tools for analyzing sentiment in Persian text, particularly useful for product reviews and service feedback.
39
+
40
+ ## Features
41
+ - Sentiment classification into three categories:
42
+ - `recommended`
43
+ - `not_recommended`
44
+ - `no_idea`
45
+ - Single text analysis
46
+ - Batch processing from CSV files
47
+ - Summary report generation
48
+
49
+ ## Installation
50
+ Install the latest version using pip:
51
+
52
+ ```bash
53
+ pip install PerSent
54
+ ```
55
+ For a specific version:
56
+
57
+ ``` bash
58
+ pip install PerSent==<VERSION_NUMBER>
59
+ ```
60
+
61
+ ## Basic Usage
62
+ ### Single Text Analysis
63
+ ``` bash
64
+ from PerSent import CommentAnalyzer
65
+
66
+ # Initialize analyzer
67
+ analyzer = CommentAnalyzer()
68
+
69
+ # Load pre-trained model
70
+ analyzer.load_model()
71
+
72
+ # Analyze text
73
+ text = "کیفیت عالی داشت"
74
+ result = analyzer.predict(text)
75
+ print(f"Sentiment: {result}")
76
+ # Output: Sentiment: recommended
77
+ ```
78
+
79
+ ### Training Your Own Model
80
+ ``` bash
81
+ '''
82
+ Train the model using a CSV file containing:
83
+ - Comments
84
+ - Recommendation status (recommended/not_recommended/no_idea)
85
+ '''
86
+ analyzer.train("train.csv")
87
+ ```
88
+
89
+ ## Batch Processing
90
+ ### CSV Processing
91
+
92
+ ``` bash
93
+ analyzer.csvPredict(
94
+ input_csv="comments.csv",
95
+ output_path="results.csv"
96
+ )
97
+ ```
98
+
99
+ ### Advanced CSV Processing Options
100
+ ``` bash
101
+ # Using column index
102
+ analyzer.csvPredict("comments.csv", "results.csv", None, 0)
103
+
104
+ # Using column name
105
+ analyzer.csvPredict("comments.csv", "results.csv", None, "Comments")
106
+
107
+ # With summary report
108
+ analyzer.csvPredict("comments.csv", "results.csv", "summary.csv")
109
+ ```
110
+
111
+ ## Dataset
112
+ A sample training dataset is available:
113
+ [Download Dataset](https://github.com/RezaGooner/Sentiment-Survey-Analyzer/tree/main/Dataset/big_train)
114
+
115
+ ## Contribution
116
+ We welcome contributions and feedback:
117
+
118
+ - [Fork Repository & Pull Request](https://github.com/RezaGooner/PerSent/fork)
119
+ - [Make Issue](https://github.com/RezaGooner/PerSent/issues/new)
120
+ - E-Mail : ```RezaAsadiProgrammer@gmail.com```
121
+ - Telegram : ```@RezaGooner```
@@ -1,4 +1,4 @@
1
1
  from .CommentAnalyzer import CommentAnalyzer
2
2
 
3
- __version__ = "0.2.4"
3
+ __version__ = "1.0.2"
4
4
  __all__ = ['CommentAnalyzer']
@@ -0,0 +1,121 @@
1
+ Metadata-Version: 2.4
2
+ Name: PerSent
3
+ Version: 1.0.2
4
+ Summary: Persian Sentiment Analysis Toolkit
5
+ Home-page: https://github.com/RezaGooner/PerSent
6
+ Author: RezaGooner
7
+ Author-email: RezaAsadiProgrammer@Gmail.com
8
+ Keywords: persian sentiment analysis nlp
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.8
13
+ Description-Content-Type: text/markdown
14
+ Requires-Dist: hazm>=0.7.0
15
+ Requires-Dist: gensim>=4.0.0
16
+ Requires-Dist: scikit-learn>=1.0.0
17
+ Requires-Dist: pandas>=1.3.0
18
+ Requires-Dist: tqdm>=4.62.0
19
+ Requires-Dist: joblib>=1.1.0
20
+ Dynamic: author
21
+ Dynamic: author-email
22
+ Dynamic: classifier
23
+ Dynamic: description
24
+ Dynamic: description-content-type
25
+ Dynamic: home-page
26
+ Dynamic: keywords
27
+ Dynamic: requires-dist
28
+ Dynamic: requires-python
29
+ Dynamic: summary
30
+
31
+ # PerSent - Persian Sentiment Analyzer
32
+ [![فارسی](https://img.shields.io/badge/Persian-فارسی-blue.svg)](README.fa.md)
33
+
34
+
35
+ ![PerSent Logo](https://github.com/user-attachments/assets/6bb1633b-6ed3-47fa-aae2-f97886dc4e22)
36
+
37
+ ## Introduction
38
+ PerSent is a Python library designed for Persian sentiment analysis. The name stands for "Persian Sentiment Analyzer". Currently in its early testing phase, PerSent provides tools for analyzing sentiment in Persian text, particularly useful for product reviews and service feedback.
39
+
40
+ ## Features
41
+ - Sentiment classification into three categories:
42
+ - `recommended`
43
+ - `not_recommended`
44
+ - `no_idea`
45
+ - Single text analysis
46
+ - Batch processing from CSV files
47
+ - Summary report generation
48
+
49
+ ## Installation
50
+ Install the latest version using pip:
51
+
52
+ ```bash
53
+ pip install PerSent
54
+ ```
55
+ For a specific version:
56
+
57
+ ``` bash
58
+ pip install PerSent==<VERSION_NUMBER>
59
+ ```
60
+
61
+ ## Basic Usage
62
+ ### Single Text Analysis
63
+ ``` bash
64
+ from PerSent import CommentAnalyzer
65
+
66
+ # Initialize analyzer
67
+ analyzer = CommentAnalyzer()
68
+
69
+ # Load pre-trained model
70
+ analyzer.load_model()
71
+
72
+ # Analyze text
73
+ text = "کیفیت عالی داشت"
74
+ result = analyzer.predict(text)
75
+ print(f"Sentiment: {result}")
76
+ # Output: Sentiment: recommended
77
+ ```
78
+
79
+ ### Training Your Own Model
80
+ ``` bash
81
+ '''
82
+ Train the model using a CSV file containing:
83
+ - Comments
84
+ - Recommendation status (recommended/not_recommended/no_idea)
85
+ '''
86
+ analyzer.train("train.csv")
87
+ ```
88
+
89
+ ## Batch Processing
90
+ ### CSV Processing
91
+
92
+ ``` bash
93
+ analyzer.csvPredict(
94
+ input_csv="comments.csv",
95
+ output_path="results.csv"
96
+ )
97
+ ```
98
+
99
+ ### Advanced CSV Processing Options
100
+ ``` bash
101
+ # Using column index
102
+ analyzer.csvPredict("comments.csv", "results.csv", None, 0)
103
+
104
+ # Using column name
105
+ analyzer.csvPredict("comments.csv", "results.csv", None, "Comments")
106
+
107
+ # With summary report
108
+ analyzer.csvPredict("comments.csv", "results.csv", "summary.csv")
109
+ ```
110
+
111
+ ## Dataset
112
+ A sample training dataset is available:
113
+ [Download Dataset](https://github.com/RezaGooner/Sentiment-Survey-Analyzer/tree/main/Dataset/big_train)
114
+
115
+ ## Contribution
116
+ We welcome contributions and feedback:
117
+
118
+ - [Fork Repository & Pull Request](https://github.com/RezaGooner/PerSent/fork)
119
+ - [Make Issue](https://github.com/RezaGooner/PerSent/issues/new)
120
+ - E-Mail : ```RezaAsadiProgrammer@gmail.com```
121
+ - Telegram : ```@RezaGooner```
@@ -6,4 +6,6 @@ PerSent.egg-info/PKG-INFO
6
6
  PerSent.egg-info/SOURCES.txt
7
7
  PerSent.egg-info/dependency_links.txt
8
8
  PerSent.egg-info/requires.txt
9
- PerSent.egg-info/top_level.txt
9
+ PerSent.egg-info/top_level.txt
10
+ PerSent/model/classifier.joblib
11
+ PerSent/model/word2vec.model
@@ -0,0 +1,91 @@
1
+ # PerSent - Persian Sentiment Analyzer
2
+ [![فارسی](https://img.shields.io/badge/Persian-فارسی-blue.svg)](README.fa.md)
3
+
4
+
5
+ ![PerSent Logo](https://github.com/user-attachments/assets/6bb1633b-6ed3-47fa-aae2-f97886dc4e22)
6
+
7
+ ## Introduction
8
+ PerSent is a Python library designed for Persian sentiment analysis. The name stands for "Persian Sentiment Analyzer". Currently in its early testing phase, PerSent provides tools for analyzing sentiment in Persian text, particularly useful for product reviews and service feedback.
9
+
10
+ ## Features
11
+ - Sentiment classification into three categories:
12
+ - `recommended`
13
+ - `not_recommended`
14
+ - `no_idea`
15
+ - Single text analysis
16
+ - Batch processing from CSV files
17
+ - Summary report generation
18
+
19
+ ## Installation
20
+ Install the latest version using pip:
21
+
22
+ ```bash
23
+ pip install PerSent
24
+ ```
25
+ For a specific version:
26
+
27
+ ``` bash
28
+ pip install PerSent==<VERSION_NUMBER>
29
+ ```
30
+
31
+ ## Basic Usage
32
+ ### Single Text Analysis
33
+ ``` bash
34
+ from PerSent import CommentAnalyzer
35
+
36
+ # Initialize analyzer
37
+ analyzer = CommentAnalyzer()
38
+
39
+ # Load pre-trained model
40
+ analyzer.load_model()
41
+
42
+ # Analyze text
43
+ text = "کیفیت عالی داشت"
44
+ result = analyzer.predict(text)
45
+ print(f"Sentiment: {result}")
46
+ # Output: Sentiment: recommended
47
+ ```
48
+
49
+ ### Training Your Own Model
50
+ ``` bash
51
+ '''
52
+ Train the model using a CSV file containing:
53
+ - Comments
54
+ - Recommendation status (recommended/not_recommended/no_idea)
55
+ '''
56
+ analyzer.train("train.csv")
57
+ ```
58
+
59
+ ## Batch Processing
60
+ ### CSV Processing
61
+
62
+ ``` bash
63
+ analyzer.csvPredict(
64
+ input_csv="comments.csv",
65
+ output_path="results.csv"
66
+ )
67
+ ```
68
+
69
+ ### Advanced CSV Processing Options
70
+ ``` bash
71
+ # Using column index
72
+ analyzer.csvPredict("comments.csv", "results.csv", None, 0)
73
+
74
+ # Using column name
75
+ analyzer.csvPredict("comments.csv", "results.csv", None, "Comments")
76
+
77
+ # With summary report
78
+ analyzer.csvPredict("comments.csv", "results.csv", "summary.csv")
79
+ ```
80
+
81
+ ## Dataset
82
+ A sample training dataset is available:
83
+ [Download Dataset](https://github.com/RezaGooner/Sentiment-Survey-Analyzer/tree/main/Dataset/big_train)
84
+
85
+ ## Contribution
86
+ We welcome contributions and feedback:
87
+
88
+ - [Fork Repository & Pull Request](https://github.com/RezaGooner/PerSent/fork)
89
+ - [Make Issue](https://github.com/RezaGooner/PerSent/issues/new)
90
+ - E-Mail : ```RezaAsadiProgrammer@gmail.com```
91
+ - Telegram : ```@RezaGooner```
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="PerSent",
8
- version="0.2.4",
8
+ version="1.0.2",
9
9
  author="RezaGooner",
10
10
  author_email="RezaAsadiProgrammer@Gmail.com",
11
11
  description="Persian Sentiment Analysis Toolkit",
persent-0.2.4/PKG-INFO DELETED
@@ -1,28 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: PerSent
3
- Version: 0.2.4
4
- Summary: Persian Sentiment Analysis Toolkit
5
- Home-page: https://github.com/RezaGooner/PerSent
6
- Author: RezaGooner
7
- Author-email: RezaAsadiProgrammer@Gmail.com
8
- Keywords: persian sentiment analysis nlp
9
- Classifier: Programming Language :: Python :: 3
10
- Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Operating System :: OS Independent
12
- Requires-Python: >=3.8
13
- Description-Content-Type: text/markdown
14
- Requires-Dist: hazm>=0.7.0
15
- Requires-Dist: gensim>=4.0.0
16
- Requires-Dist: scikit-learn>=1.0.0
17
- Requires-Dist: pandas>=1.3.0
18
- Requires-Dist: tqdm>=4.62.0
19
- Requires-Dist: joblib>=1.1.0
20
- Dynamic: author
21
- Dynamic: author-email
22
- Dynamic: classifier
23
- Dynamic: description-content-type
24
- Dynamic: home-page
25
- Dynamic: keywords
26
- Dynamic: requires-dist
27
- Dynamic: requires-python
28
- Dynamic: summary
@@ -1,28 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: PerSent
3
- Version: 0.2.4
4
- Summary: Persian Sentiment Analysis Toolkit
5
- Home-page: https://github.com/RezaGooner/PerSent
6
- Author: RezaGooner
7
- Author-email: RezaAsadiProgrammer@Gmail.com
8
- Keywords: persian sentiment analysis nlp
9
- Classifier: Programming Language :: Python :: 3
10
- Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Operating System :: OS Independent
12
- Requires-Python: >=3.8
13
- Description-Content-Type: text/markdown
14
- Requires-Dist: hazm>=0.7.0
15
- Requires-Dist: gensim>=4.0.0
16
- Requires-Dist: scikit-learn>=1.0.0
17
- Requires-Dist: pandas>=1.3.0
18
- Requires-Dist: tqdm>=4.62.0
19
- Requires-Dist: joblib>=1.1.0
20
- Dynamic: author
21
- Dynamic: author-email
22
- Dynamic: classifier
23
- Dynamic: description-content-type
24
- Dynamic: home-page
25
- Dynamic: keywords
26
- Dynamic: requires-dist
27
- Dynamic: requires-python
28
- Dynamic: summary
persent-0.2.4/README.md DELETED
File without changes
File without changes