دليل اللغة AI

تصنيف النص

يقوم تصنيف النص تلقائيًا بفرز أجزاء من النص إلى فئات، مثل وضع علامة على رسالة بريد إلكتروني كرسالة غير مرغوب فيها أو تعليق كإيجابي.

استمع إلى هذا الدليلرواه الذكاء الاصطناعي · ~3 min

في هذه الصفحةقراءة لمدة 3 دقائق
  1. نظرة عامة
  2. الغوص العميق
  3. التنفيذ في العالم الحقيقي
  4. مستقبل تصنيف النص
  5. وضعها موضع التنفيذ
  6. استمر في الاستكشاف
  7. الأسئلة المتداولة

نظرة عامة

إنها إحدى مهام البرمجة اللغوية العصبية (NLP) الأكثر انتشارًا لأنها تحول النص الحر الفوضوي إلى تسميات منظمة يمكن للنظام التصرف بناءً عليها.

الغوص العميق

Text classification assigns categories to documents, messages, or other text sequences. Binary classification selects between two labels, such as spam and not spam. Multi-class classification assigns exactly one category from a larger set, while multi-label classification permits several categories for the same example. An article can carry both politics and economy tags without requiring those topics to exclude each other. Sentiment and intent can also be classification targets when the task defines their labels. Representations differ across systems: sparse word-count features and dense learned embeddings are two possibilities. A classifier converts those features into scores associated with the defined labels. Evaluation should match the intended decisions. Accuracy is the fraction of correct predictions, but it can conceal failures on a rare category. If almost every message is ordinary, always predicting ordinary can score highly while missing every relevant spam case. Recall for a designated positive class is true positives divided by all actual positives. Precision instead divides true positives by all predicted positives. In an illustrative evaluation with six true positives and two false positives, precision is six divided by eight, or 75 percent. Those quantities answer different questions. A model can have a useful recall yet flag many irrelevant messages. A further distinction concerns output scores: single-label softmax scores sum to one across mutually exclusive alternatives, whereas a separate sigmoid score for each label permits several labels to score highly together. Neither transformation alone establishes that scores are calibrated estimates of real-world frequency.

التنفيذ في العالم الحقيقي

يقوم موفرو البريد الإلكتروني بتصفية الرسائل غير المرغوب فيها ورسائل التصيد الاحتيالي من صندوق الوارد الخاص بك.

تقوم العلامات التجارية بإجراء تحليل المشاعر على مراجعات المنتجات والمشاركات الاجتماعية لقياس مزاج العملاء.

تقوم مكاتب الدعم بتوجيه التذاكر الواردة تلقائيًا إلى الفريق المناسب بناءً على محتوى الرسالة.

تقوم المنصات الاجتماعية بوضع علامة على خطاب الكراهية أو التعليقات السامة لمراجعتها بشكل معتدل.

مستقبل تصنيف النص

Label descriptions and examples can make it easier to explore a new classification task, but they do not establish consistent performance across domains. Comparing sparse models, dense encoders, and prompted language models can reveal different accuracy, latency, and maintenance tradeoffs. For operational use, evaluation should include rare classes and the consequences of missed or incorrect labels. Changes in language and input sources can also change those results. Report per-class precision and recall where relevant, and assess output calibration separately from the act of assigning a category.

وضعها موضع التنفيذ

لماذا يهم

  • السرعة والحجم. يمكن أن تتحرك مسارات عمل اللغة بشكل أسرع دون التضحية بالاتساق.
  • الوصول والوصول. فهو يوسع الوصول عبر اللغات وأنماط الاتصال.
  • قرارات أوضح. يمكن للفرق قضاء المزيد من الوقت في الحكم بينما تتعامل الأتمتة مع التكرار.

احترس من

  • يمكن للحقائق المهلوسة إدخال التقارير أو تدفقات الدعم أو مخرجات البحث بهدوء.
  • يمكن أن تؤدي الحساسية السريعة إلى نتائج غير متناسقة عبر الطلبات المماثلة.
  • قد يتم كشف البيانات النصية الحساسة إذا كانت عناصر التحكم في الوصول ضعيفة.

الخطوات التالية

  1. حدد تنسيق الإخراج والنغمة ومعايير الجودة قبل بدء التشغيل.
  2. استجابات أرضية من مصادر موثوقة عندما تكون الدقة مهمة.
  3. احتفظ بنقطة تفتيش للمراجعة البشرية للمخرجات عالية المخاطر.
  4. تتبع أنماط الفشل وأعد تدريب المطالبات أو سير العمل بانتظام.

استمر في الاستكشاف

رسالة إخبارية مجانية

احصل على الإحاطة اليومية لمنظمة العفو الدولية

ثلاث قصص تم التحقق منها بواسطة الذكاء الاصطناعي كل صباح من أيام الأسبوع، مكتوبة باللغة الإنجليزية البسيطة. مجاني للأبد، بدون إعلانات.

بريد إلكتروني واحد كل يوم من أيام الأسبوع. إلغاء الاشتراك بنقرة واحدة. نحن لا نبيع أو نشارك عنوانك أبدًا.

اختبر نفسك

Take the Text Classification quiz

تعليقات فورية على كل إجابة، وشهادة قابلة للمشاركة مع معرف يمكن التحقق منه بمجرد اجتياز الدورة التدريبية.

ابدأ الاختبار

دعم تعليم الذكاء الاصطناعي المجاني. AI Understanding هي منظمة 501(c)(3) غير ربحية - لا إعلانات ولا نظام حظر الاشتراك غير المدفوع على الإطلاق. قم بالتبرع

الأسئلة المتداولة

ما هو تصنيف النص؟

يقوم تصنيف النص تلقائيًا بفرز أجزاء من النص إلى فئات، مثل وضع علامة على رسالة بريد إلكتروني كرسالة غير مرغوب فيها أو تعليق كإيجابي. إنها إحدى مهام البرمجة اللغوية العصبية (NLP) الأكثر انتشارًا لأنها تحول النص الحر الفوضوي إلى تسميات منظمة يمكن للنظام التصرف بناءً عليها.

How does a text classifier structure the output for an input document?

The output associates the text with the categories defined by the task.

ما السيناريو الذي يعد مثالاً على التصنيف متعدد التصنيفات؟

يسمح التصنيف متعدد التصنيفات بتطبيق أكثر من فئة على نفس العنصر في وقت واحد.

On a text dataset dominated by one class, what can a high overall accuracy conceal?

Predicting the majority class can yield high accuracy while missing all rare positives, so category-specific evaluation matters.

ما الذي يقيسه الاستدعاء في مهمة التصنيف؟

الاستدعاء هو جزء من الحالات الإيجابية الحقيقية التي حددها النظام بشكل صحيح، مع تسجيل مقدار ما فاته.

In task-specific zero-shot text classification, what is absent for the new classification task?

A zero-shot model can be pretrained or trained on other tasks; the absence concerns task-specific labeled examples.

استمر في التعلم

أدلة ذات صلة

تم اختيار المزيد من الأدلة لهذا الموضوع

احصل على شهادة الذكاء الاصطناعي المجانيةدورة مجانية قصيرة واختبار. لا تكلفة ولا بطاقة. حوالي 2.5 ساعة.ابدأ مجانًا →