😫 Vấn đề (The Pain Point)
Bạn viết bài chuẩn SEO và muốn biết từ khóa “Agentic AI” đã lặp lại bao nhiêu lần? Mật độ có quá dày không? Hoặc bạn muốn phân tích một bài diễn văn xem diễn giả lặp lại từ gì nhiều nhất?
🚀 Giải pháp Agentic (The Solution)
Tool phân tích tần suất từ ngữ (Word Frequency).
Tính năng:
- Top Words: Liệt kê 10 từ xuất hiện nhiều nhất.
- Specific Count: Nhập 1 từ, tool trả về số lần xuất hiện.
- Stopwords: Tự động loại bỏ các từ vô nghĩa (như “là”, “và”, “của”).
🤖 Engineering Prompt (Copy & Paste)
**Role:** Python NLP Developer
**Task:** Create a "Text Frequency Analyzer".
**Requirements:**
1. **Tech Stack:** Python, `tkinter`, `collections`.
2. **GUI:**
* Input Text Area (Paste text here) OR "Load Text File" button.
* Settings: "Case Insensitive" (Check).
* "Analyze" button.
* **Results:**
* Table of Top 20 words.
* Search Box to check specific word count.
3. **Logic:**
* Clean text (remove punctuation).
* Split into words.
* `Counter(words).most_common(20)`.
* Display results.
4. **Deliverables:**
* `word_count.py`
* `run.bat`
* `requirements.txt`
**Context:** Writers and SEO specialists optimizing content.
🧠 Giải mã Prompt
- Clean Text: Máy tính hiểu “Agentic,” (có dấu phẩy) khác với “Agentic”. Tool cần bước làm sạch (remove punctuation) để đếm chính xác.
🛠️ Hướng dẫn
- Copy Prompt -> Paste.
- Chạy
run.bat. - Paste bài viết của bạn vào -> Analyze.