{"id":32564113,"url":"https://github.com/devparihar5/azure-ai-text-classifier","last_synced_at":"2026-05-15T18:02:51.629Z","repository":{"id":319093294,"uuid":"1077537171","full_name":"Devparihar5/azure-ai-text-classifier","owner":"Devparihar5","description":"A Python application that uses Azure AI Language service to classify text documents into predefined categories.","archived":false,"fork":false,"pushed_at":"2025-10-16T12:16:19.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-17T14:58:42.240Z","etag":null,"topics":["azure","classification","machine-learning","python"],"latest_commit_sha":null,"homepage":"https://dev523.medium.com/building-custom-text-classification-with-azure-ai-language-a-complete-guide-924b66ca02de","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Devparihar5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-16T11:42:01.000Z","updated_at":"2025-10-17T09:46:27.000Z","dependencies_parsed_at":"2025-10-18T03:05:36.856Z","dependency_job_id":"9499638a-1bfb-4e8b-ade4-316c9f0162c3","html_url":"https://github.com/Devparihar5/azure-ai-text-classifier","commit_stats":null,"previous_names":["devparihar5/azure-ai-text-classifier"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Devparihar5/azure-ai-text-classifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devparihar5%2Fazure-ai-text-classifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devparihar5%2Fazure-ai-text-classifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devparihar5%2Fazure-ai-text-classifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devparihar5%2Fazure-ai-text-classifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Devparihar5","download_url":"https://codeload.github.com/Devparihar5/azure-ai-text-classifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devparihar5%2Fazure-ai-text-classifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281556917,"owners_count":26521572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","classification","machine-learning","python"],"created_at":"2025-10-29T03:54:59.047Z","updated_at":"2025-10-29T03:55:13.040Z","avatar_url":"https://github.com/Devparihar5.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom Text Classification with Azure AI Language\n\nA Python application that uses Azure AI Language service to classify text documents into predefined categories.\n\n## Features\n\n- Batch text classification using Azure AI Language\n- Processes multiple text files from a directory\n- Returns classification results with confidence scores\n\n## Setup\n\n1. Clone the repository\n2. Create a virtual environment:\n   ```bash\n   python -m venv .venv\n   source .venv/bin/activate  # On Windows: .venv\\Scripts\\activate\n   ```\n3. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n4. Configure environment variables in `.env`:\n   ```\n   AI_SERVICE_ENDPOINT=your_azure_endpoint\n   AI_SERVICE_KEY=your_azure_key\n   PROJECT=your_project_name\n   DEPLOYMENT=your_deployment_name\n   ```\n\n## Usage\n\n1. Place text files in the `articles/` directory\n2. Run the application:\n   ```bash\n   python app.py\n   ```\n\n## Complete Workflow Process\n\n### Model Training and Deployment Pipeline\n\n```mermaid\nflowchart TD\n    A[Start] --\u003e B[Provision Azure Resources]\n    B --\u003e C[Create Storage Account]\n    C --\u003e D[Upload Training Data]\n    D --\u003e E[Create Language Studio Project]\n    E --\u003e F[Label Training Data]\n    F --\u003e G[Configure Data Split]\n    G --\u003e H[Train Model]\n    H --\u003e I{Model Performance OK?}\n    I --\u003e|No| J[Adjust Labels/Add Data]\n    J --\u003e F\n    I --\u003e|Yes| K[Deploy Model]\n    K --\u003e L[Test Deployment]\n    L --\u003e M[Production Ready]\n    M --\u003e N[End]\n```\n\n### Data Labeling Process\n\n```mermaid\nflowchart LR\n    A[Raw Text Files] --\u003e B[Review Content]\n    B --\u003e C{Determine Category}\n    C --\u003e|Sports| D[Label as Sports]\n    C --\u003e|Entertainment| E[Label as Entertainment]\n    C --\u003e|News| F[Label as News]\n    C --\u003e|Classifieds| G[Label as Classifieds]\n    D --\u003e H[Assign to Training/Test Set]\n    E --\u003e H\n    F --\u003e H\n    G --\u003e H\n    H --\u003e I[Save Labels]\n    I --\u003e J{More Files?}\n    J --\u003e|Yes| A\n    J --\u003e|No| K[Complete Dataset]\n```\n\n### Model Evaluation Workflow\n\n```mermaid\nflowchart TD\n    A[Trained Model] --\u003e B[Run Test Set]\n    B --\u003e C[Calculate Metrics]\n    C --\u003e D[Precision Score]\n    C --\u003e E[Recall Score]\n    C --\u003e F[F1 Score]\n    C --\u003e G[Overall Accuracy]\n    D --\u003e H{Performance Acceptable?}\n    E --\u003e H\n    F --\u003e H\n    G --\u003e H\n    H --\u003e|No| I[Retrain with More Data]\n    H --\u003e|Yes| J[Deploy to Production]\n    I --\u003e K[Add Training Examples]\n    K --\u003e L[Relabel Data]\n    L --\u003e M[Retrain Model]\n    M --\u003e B\n    J --\u003e N[Monitor Performance]\n```\n\n### Application Testing Process\n\n```mermaid\nflowchart TD\n    A[Deploy Model] --\u003e B[Configure Environment]\n    B --\u003e C[Set API Credentials]\n    C --\u003e D[Prepare Test Files]\n    D --\u003e E[Run Classification]\n    E --\u003e F[Check Results]\n    F --\u003e G{Results Accurate?}\n    G --\u003e|No| H[Debug Configuration]\n    G --\u003e|Yes| I[Validate Confidence Scores]\n    H --\u003e C\n    I --\u003e J{Confidence \u003e Threshold?}\n    J --\u003e|No| K[Review Model Training]\n    J --\u003e|Yes| L[Production Ready]\n    K --\u003e M[Improve Training Data]\n    M --\u003e N[Retrain Model]\n    N --\u003e A\n```\n\n## Sample Results\n\nWhen running with the provided test files:\n\n```\ntest2.txt was classified as 'Sports' with confidence score 0.33.\ntest1.txt was classified as 'Entertainment' with confidence score 0.33.\n```\n\n## Requirements\n\n- Python 3.7+\n- Azure AI Language service resource\n- Trained custom classification model\n\n## References\n\n- [Azure AI Text Analytics SDK](https://pypi.org/project/azure-ai-textanalytics/)\n- [Microsoft Learn AI Language Repository](https://github.com/microsoftlearning/mslearn-ai-language)\n\n## File Structure\n\n```\n├── app.py              # Main application\n├── requirements.txt    # Dependencies\n├── .env               # Environment variables\n└── articles/          # Text files to classify\n    ├── test1.txt\n    └── test2.txt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevparihar5%2Fazure-ai-text-classifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevparihar5%2Fazure-ai-text-classifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevparihar5%2Fazure-ai-text-classifier/lists"}