{"id":13935805,"url":"https://github.com/5hirish/adam_qas","last_synced_at":"2025-09-27T02:31:45.032Z","repository":{"id":41413222,"uuid":"51374946","full_name":"5hirish/adam_qas","owner":"5hirish","description":"ADAM - A Question Answering System. Inspired from IBM Watson","archived":true,"fork":false,"pushed_at":"2020-02-06T11:12:36.000Z","size":73823,"stargazers_count":355,"open_issues_count":9,"forks_count":107,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-01-17T14:35:11.625Z","etag":null,"topics":["adam","elasticsearch","gensim","natural-language-processing","pandas","python","question-answering","scikit-learn","spacy","spacy-extension","wikipedia"],"latest_commit_sha":null,"homepage":"http://www.shirishkadam.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/5hirish.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.rst","contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-09T15:18:46.000Z","updated_at":"2025-01-03T21:45:03.000Z","dependencies_parsed_at":"2022-09-21T08:11:01.946Z","dependency_job_id":null,"html_url":"https://github.com/5hirish/adam_qas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/5hirish/adam_qas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5hirish%2Fadam_qas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5hirish%2Fadam_qas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5hirish%2Fadam_qas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5hirish%2Fadam_qas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/5hirish","download_url":"https://codeload.github.com/5hirish/adam_qas/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5hirish%2Fadam_qas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277171521,"owners_count":25773234,"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-09-27T02:00:08.978Z","response_time":73,"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":["adam","elasticsearch","gensim","natural-language-processing","pandas","python","question-answering","scikit-learn","spacy","spacy-extension","wikipedia"],"created_at":"2024-08-07T23:02:06.536Z","updated_at":"2025-09-27T02:31:43.181Z","avatar_url":"https://github.com/5hirish.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# ADAM -- Question Answering System\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/2e669faacb12496f9d4e97f3a0cfc361)](https://www.codacy.com/app/5hirish/adam_qas?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=5hirish/adam_qas\u0026utm_campaign=badger)\n[![Codecov](https://codecov.io/gh/5hirish/adam_qas/branch/master/graph/badge.svg)](https://codecov.io/gh/5hirish/adam_qas)\n[![Build Status](https://travis-ci.org/5hirish/adam_qas.svg?branch=master)](https://travis-ci.org/5hirish/adam_qas)\n[![Gitter](https://badges.gitter.im/alleviatenlp/adam_qas.svg)](https://gitter.im/alleviatenlp/adam_qas?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge)\n[![Twitter](https://img.shields.io/twitter/follow/openebs.svg?style=social\u0026label=Follow)](https://twitter.com/intent/follow?screen_name=5hirish)\n\nA question answering system that extracts answers from Wikipedia to questions posed in natural language.\nInspired by *IBM Watson* and *START*.\nWe are currently focused on improving the accuracy of the extracted answers.\nFollow the creator's blog at [shirishkadam.com](https://www.shirishkadam.com/) for updates on progress.\n\n## Getting Started\n\nElasticsearch is being used to store and index the scrapped and parsed texts from Wikipedia.\n`Elasticsearch 7.X` installation guide can be found at [Elasticsearch Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.html). \nYou might have to start the elasticsearch search service.\n\n```bash\n$ git clone https://github.com/5hirish/adam_qas.git\n$ cd adam_qas\n$ pip install -r requirements.txt\n$ python -m qas.adam -vv \"When was linux kernel version 4.0 released ?\"\n```\n\n_Note:_ The above installation downloads the best-matching default english language model for spaCy. But to improve the model's accuracy you can install other models too. Read more at [spaCy docs](https://spacy.io/usage/models).\n\n```bash\n$ python -m spacy download en_core_web_md\n```\n\n## Running with Docker\n\n```bash\n$ git clone https://github.com/5hirish/adam_qas.git\n$ cd adam_qas\n$ docker-compose up\n```\n\nNow both conntainers are up and running.\nNext step is to enter in the python container and run Adam:\n\n```bash\n$ docker exec -it $(docker ps -a -q  --filter ancestor=adam_qas_adam) bash\n$ python -m qas.adam -vv \"When was linux kernel version 4.0 released ?\"\n```\n\n\n## References\n\nFind more in depth documentation about the system with its research paper and system architecture [here](docs/ARCHI.md)\n\n## Requirements\n\n* [Python 3.X](https://docs.python.org/3/)\n* [Elasticsearch 7.X](https://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.html)\n\nPython Package dependencies listed in [requirements.txt](requirements.txt)\nUpgrading Elasticsearch 6.X:\n - Rolling Update 6.2 to 6.8 \u003e [ref](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/rolling-upgrades.html)\n - Rolling Update 6.8 to 7.1 \u003e [ref](https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html)\n### Features\n\n* Extract information from Wikipedia\n* Classify questions with regular expression (default)\n* Classify questions with a SVM (optional)\n* Vector space model used for answer extraction\n* Rank candidate answers\n* Merge top 5 answers into one response\n\n#### Current Project State ?\n[GitHub Issue #36: Invalid Answers](https://github.com/5hirish/adam_qas/issues/36)\n\n### TODO\n\n- [x] Replace Wikipedia APIs with custom scraper\n- [x] Storing extracted data in database (elasticsearch)\n- [x] SQLite test input data storage\n- [ ] Anaphora resolution in both questions and answers\n- [ ] Machine learning query constructor rather than rule-based\n- [ ] Improve vector space language model for answer extraction\n\n### Contributions\nPlease see our [contributing documentation](docs/CONTRIBUTING.md) for some tips on getting started.\n\n### Maintainers\n* [@5hirish](https://github.com/5hirish) - Shirish Kadam\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5hirish%2Fadam_qas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F5hirish%2Fadam_qas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5hirish%2Fadam_qas/lists"}