{"id":22350255,"url":"https://github.com/hp0404/speeches","last_synced_at":"2026-02-11T10:31:33.590Z","repository":{"id":39385602,"uuid":"437972468","full_name":"hp0404/speeches","owner":"hp0404","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-19T10:17:04.000Z","size":377,"stargazers_count":1,"open_issues_count":7,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-12T09:32:38.689Z","etag":null,"topics":["docker-compose","fastapi","spacy","sqlmodel"],"latest_commit_sha":null,"homepage":"","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/hp0404.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}},"created_at":"2021-12-13T17:56:27.000Z","updated_at":"2024-10-19T10:17:08.000Z","dependencies_parsed_at":"2025-07-30T06:31:45.214Z","dependency_job_id":"321a344e-a5b1-49d7-94a7-98d3c502d95f","html_url":"https://github.com/hp0404/speeches","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hp0404/speeches","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hp0404%2Fspeeches","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hp0404%2Fspeeches/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hp0404%2Fspeeches/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hp0404%2Fspeeches/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hp0404","download_url":"https://codeload.github.com/hp0404/speeches/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hp0404%2Fspeeches/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29332277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker-compose","fastapi","spacy","sqlmodel"],"created_at":"2024-12-04T11:10:59.175Z","updated_at":"2026-02-11T10:31:33.575Z","avatar_url":"https://github.com/hp0404.png","language":"Python","readme":"# speeches\r\n\r\nThis repository contains an app made with FastAPI, SQLModel, and Alembic. \r\nIt's built to store text articles and their associated metadata in a Postgres database. Using natural language processing (NLP), the app extracts key data from the articles and also holds this information.\r\n\r\nThe app's design follows a multi-table structure in Postgres to efficiently manage and retrieve data. It revolves around several tables:\r\n\r\n- `documents_metadata`: stores basic details of an article including its title and creation date.\r\n- `embeddings`: holds vector representations of sentences, created through specific NLP models.\r\n- `exports`: maintains HTML contents of articles (raw data).\r\n- `extracted_features`: catalogs named entities and key noun phrases.\r\n- `red_lines`: retains model predictions (text classifier) about certain aspects of sentences.\r\n- `sentences`: holds the basic unit of an article, the sentence, and its lemmatized version.\r\n- `sentiments`: records sentiment analysis results conducted on sentences.\r\n- `text_statistics`: gathers numerous language complexity metrics on sentences.\r\n- `themes`: keeps track of the broad topics that each article addresses.\r\n\r\nThe primary goal is to provide a well-structured, efficient way to hold and handle article data, making it easy to analyze and gain insights from.\r\n\r\n![ER diagram](./assets/schema.png)\r\n\r\n---\r\n\r\n## Usage (local development)\r\n\r\nBefore running docker-compose, make sure you have \r\n`.env` file with database credentials stored in \r\nthe root directory. \r\n\r\n**env**:\r\n```console\r\nPROJECT_NAME=...\r\nDESCRIPTION=...\r\nSECRET_TOKEN=...\r\nBACKEND_CORS_ORIGINS=[\"http://localhost:8000\", \"https://localhost:8000\", \"http://localhost\", \"https://localhost\"]\r\nPOSTGRES_USER=...\r\nPOSTGRES_PASSWORD=...\r\nPOSTGRES_SERVER=host:port\r\nPOSTGRES_DB=...\r\n```\r\n\r\n**command**:\r\n```console\r\ndocker-compose up -d --build\r\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhp0404%2Fspeeches","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhp0404%2Fspeeches","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhp0404%2Fspeeches/lists"}