{"id":21497426,"url":"https://github.com/darkestfloyd/nlp_pipline","last_synced_at":"2025-03-17T12:25:41.530Z","repository":{"id":98316791,"uuid":"217913124","full_name":"darkestfloyd/nlp_pipline","owner":"darkestfloyd","description":"Demonstration of reproducible sentiment analysis pipeline using Airflow","archived":false,"fork":false,"pushed_at":"2019-10-27T20:57:30.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T22:14:15.525Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/darkestfloyd.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}},"created_at":"2019-10-27T20:33:51.000Z","updated_at":"2019-10-27T20:57:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"930ce0b6-1379-4c9d-8089-f0a5ae2a7b12","html_url":"https://github.com/darkestfloyd/nlp_pipline","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/darkestfloyd%2Fnlp_pipline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkestfloyd%2Fnlp_pipline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkestfloyd%2Fnlp_pipline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkestfloyd%2Fnlp_pipline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkestfloyd","download_url":"https://codeload.github.com/darkestfloyd/nlp_pipline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244031852,"owners_count":20386672,"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":[],"created_at":"2024-11-23T16:23:56.672Z","updated_at":"2025-03-17T12:25:41.498Z","avatar_url":"https://github.com/darkestfloyd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reproducible NLP pipeline using Airflow\nDemonstration of reproducible sentiment analysis pipeline using Airflow\n\n### Set up airflow and code\nTo run, make sure airflow is installed. You will also need the NLTK package with vader_lexicon.\n\nTo download vader_lexicon, run:\n\n`python -c \"import nltk; nltk.download('vader_lexicon')\"`\n\n```\n# in a terminal\ngit clone git@github.com:nischalchand/nlp_pipline.git\nmv nlp_pipeline ~/airflow\n\n# init airflow database\nairflow initdb\n\n# in new terminal\nairflow webserver -p 8080\n\n# in another new terminal\nairflow scheduler\n```\n\n### Set up input\nAn `input.tsv` file is included in the repo, you can use [pyhton-edgar](https://pypi.org/project/python-edgar/) to get more data.\n\nTo filter out only 10k filings from edgar download files, in terminal \n\n```\ncd \u003cpath to downloaded files by python-edgar\u003e\ngrep -h 10-K * \u003e 10k.tsv\ncp 10k.tsv ~/airflow/input.tsv\n```\n\nGo to `localhost:8080` in web browser, turn-on and trigger \"nlp_pipeline\". The number of branches in the DAG will be dependent on the number of rows in `input.tsv`.\n\n### Output information\nAn `input_complete.tsv` file is created in the same directory, which is a copy of `input.tsv` with an additional \ncolumn `sentiment_file` for the path of the sentiment file. Each sentiment file is stored in `out_files`, with the file format \n`\u003ccik\u003e_\u003cdate\u003e.txt`. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkestfloyd%2Fnlp_pipline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkestfloyd%2Fnlp_pipline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkestfloyd%2Fnlp_pipline/lists"}