A simple Python package to analyze word frequency in text - محلل تكرار الكلمات
Project description
Alkuhlani Student - محلل تكرار الكلمات
حزمة Python بسيطة لتحليل تكرار الكلمات في النصوص.
A simple Python package to analyze word frequency in text.
التثبيت - Installation
pip install alkuhlani-student
الاستخدام - Usage
استخدام الحزمة في كود Python
from alkuhlani_student import word_frequency, analyze_text
# تحليل النص
text = "مرحبا بك في محلل تكرار الكلمات مرحبا"
result = word_frequency(text)
print(result)
# Output: [('مرحبا', 2), ('بك', 1), ('في', 1), ('محلل', 1), ('تكرار', 1), ('الكلمات', 1)]
# الحصول على نتائج منسقة
formatted_result = analyze_text(text)
print(formatted_result)
استخدام الحزمة من سطر الأوامر
alkuhlani-student
أو
python -m alkuhlani_student
الميزات - Features
- تحليل تكرار الكلمات في النصوص
- دعم اللغة العربية والإنجليزية
- إزالة علامات الترقيم تلقائياً
- ترتيب النتائج حسب التكرار
- واجهة سطر أوامر سهلة الاستخدام
- قابلة للاستخدام كمكتبة في مشاريعك
أمثلة - Examples
مثال 1: تحليل نص عربي
from alkuhlani_student import word_frequency
text = "Python هي لغة برمجة قوية. Python سهلة التعلم."
result = word_frequency(text)
print(result)
# Output: [('python', 2), ('هي', 1), ('لغة', 1), ('برمجة', 1), ('قوية', 1), ('سهلة', 1), ('التعلم', 1)]
مثال 2: تحليل نص إنجليزي
from alkuhlani_student import word_frequency
text = "Hello world! Hello Python. Python is great."
result = word_frequency(text)
print(result)
# Output: [('hello', 2), ('python', 2), ('world', 1), ('is', 1), ('great', 1)]
مثال 3: استخدام analyze_text
from alkuhlani_student import analyze_text
text = "مرحبا مرحبا بك"
print(analyze_text(text))
المتطلبات - Requirements
- Python 3.7 أو أحدث
الكاتب - Author
Alkuhlani Student (CYS 2)
صُنع بـ ❤️ من قبل Alkuhlani Student (CYS 2)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alkuhlani_student-0.1.1.tar.gz.
File metadata
- Download URL: alkuhlani_student-0.1.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e02a1d31ecfafd8d846f1ea4ee13d2169310bb44c6cc327958ae5710a4e362dd
|
|
| MD5 |
42c2454e6ea00dfdb764a59432e2bdc7
|
|
| BLAKE2b-256 |
65a2548c09801c1b4d9604a343a1eb2cbd9e5940aa1847076f07f430863f0914
|
File details
Details for the file alkuhlani_student-0.1.1-py3-none-any.whl.
File metadata
- Download URL: alkuhlani_student-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c49c38fbea2b9d94e2f0b9afded70b0c461a9011a2c15dbaf02f1c1ac212c6bf
|
|
| MD5 |
138d8520dfd2625c6fdf82d40760aa4c
|
|
| BLAKE2b-256 |
53b9992685bd498ecbea0a38ee67fb52930328ee0fbca743742be2541c03c625
|