{"id":13565119,"url":"https://github.com/ashishu007/NLP-Tasks","last_synced_at":"2025-04-03T22:30:42.740Z","repository":{"id":131391210,"uuid":"306708252","full_name":"ashishu007/NLP-Tasks","owner":"ashishu007","description":"Various NLP tasks using Huggingface and Flask","archived":false,"fork":false,"pushed_at":"2022-06-18T20:08:29.000Z","size":145,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-04T18:46:09.593Z","etag":null,"topics":["flask","natural-language-processing","nlp","pytorch","question-answering"],"latest_commit_sha":null,"homepage":"http://178.128.39.191:8282","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashishu007.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-10-23T17:49:25.000Z","updated_at":"2022-06-18T19:59:08.000Z","dependencies_parsed_at":"2023-05-10T19:00:18.862Z","dependency_job_id":null,"html_url":"https://github.com/ashishu007/NLP-Tasks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishu007%2FNLP-Tasks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishu007%2FNLP-Tasks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishu007%2FNLP-Tasks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishu007%2FNLP-Tasks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashishu007","download_url":"https://codeload.github.com/ashishu007/NLP-Tasks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247089768,"owners_count":20881836,"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","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":["flask","natural-language-processing","nlp","pytorch","question-answering"],"created_at":"2024-08-01T13:01:41.122Z","updated_at":"2025-04-03T22:30:37.728Z","avatar_url":"https://github.com/ashishu007.png","language":"HTML","funding_links":[],"categories":["HTML"],"sub_categories":[],"readme":"# NLP-Tasks\r\n\r\n## Web Hosting\r\n\r\n* Access the app deployed on DigitalOcean: [http://178.128.39.191:8282](http://178.128.39.191:8282)\r\n\r\n## Brief Description\r\n\r\nVarious NLP tasks using Huggingface and Flask. Right now, the app supports only three tasks:\r\n\r\n1. **Sentiment Analysis**: Identify if the sentence's sentiment is _Positive_ or _Negative_.\r\n\r\n2. **Extractive Question Answering**: For a given _Context_ paragraph ask a _Question_. You should get an _Answer_ from the paragraph.\r\n\r\n3. **Text Generation**: Provide a _Context_ (start of a sentence) and let the AI complete your story.\r\n\r\nPlan is to include more tasks in future. Hugginface's `transformers` library makes these things very easy to do. \r\n\r\nContributions are most welcome.\r\n\r\n## Usage\r\n\r\n0. Clone the repo: \r\n    ```bash\r\n    git clone https://github.com/ashishu007/NLP-Tasks.git\r\n    ```\r\n\r\n### With Docker\r\n\r\n1. Run with docker-composer\r\n    ```bash\r\n    docker-compose up\r\n    ```\r\n### Without Docker\r\n\r\n1. Navigate into the downloaded repo:\r\n    ```bash\r\n    cd NLP-Tasks/flask\r\n    ```\r\n\r\n2. Install the required dependencies:\r\n    ```bash\r\n    pip install -r requirements.txt\r\n    ```\r\n\r\n3. Run the flask-app:\r\n\r\n    * Windows Powershell:\r\n        ```bash\r\n        $env:FLASK_APP=\"app.py\"\r\n        flask run\r\n        ```\r\n\r\n    * Linux:\r\n        ```bash\r\n        export FLASK_APP=app.py\r\n        flask run\r\n        ```\r\n\r\n### Main Screen\r\n\r\n\u003cdetails\u003e\u003csummary\u003eA screenshot of main screen\u003c/summary\u003e\r\n\r\n![main screen](./images/main_screen_ss.png) \r\n\r\n\u003c/details\u003e\r\n\r\n\r\n## Contributions\r\n\r\n1. Add more tasks\r\n2. Improve the user-interface\r\n\r\n## Acknowledgement\r\n\r\n[Huggingface's transformers](https://huggingface.co/transformers/) library has revolutionised the way state-of-the-art NLP models are being used in real-world. Without, this library, the app made here would have taken tremendous amount of work (compared to what it took rn). :)\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashishu007%2FNLP-Tasks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashishu007%2FNLP-Tasks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashishu007%2FNLP-Tasks/lists"}