{"id":24306661,"url":"https://github.com/sshbuilder/similarstatementgenerator","last_synced_at":"2025-03-06T18:17:53.885Z","repository":{"id":267247530,"uuid":"900648744","full_name":"sshBuilder/SimilarStatementGenerator","owner":"sshBuilder","description":"This is a fast python API that will take any one statement as an input and will generate a similar version of the statement purely based on the vector values,","archived":false,"fork":false,"pushed_at":"2024-12-11T12:59:00.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T03:38:24.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/sshBuilder.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":"2024-12-09T08:03:28.000Z","updated_at":"2024-12-11T12:59:04.000Z","dependencies_parsed_at":"2024-12-14T11:19:58.262Z","dependency_job_id":null,"html_url":"https://github.com/sshBuilder/SimilarStatementGenerator","commit_stats":null,"previous_names":["sudothearkknight/similarstatementgenerator","sshbuilder/similarstatementgenerator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshBuilder%2FSimilarStatementGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshBuilder%2FSimilarStatementGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshBuilder%2FSimilarStatementGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshBuilder%2FSimilarStatementGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sshBuilder","download_url":"https://codeload.github.com/sshBuilder/SimilarStatementGenerator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242259916,"owners_count":20098429,"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":"2025-01-17T03:38:28.509Z","updated_at":"2025-03-06T18:17:53.857Z","avatar_url":"https://github.com/sshBuilder.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Similar Statement Generator\n\nThis project is a web application that finds similar statements to a given input statement using FastAPI and a pre-trained SentenceTransformer model.\n\n## Features\n\n- Accepts a user input statement via a web form.\n- Uses a pre-trained SentenceTransformer model to find similar statements.\n- Displays the top 10 most similar statements.\n\n## Requirements\n\n- Python 3.7+\n- FastAPI\n- Uvicorn\n- SentenceTransformer\n- scikit-learn\n- numpy\n\n## Installation\n\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/sudoTheArkKnight/SimilarStatementGenerator.git\n    cd SimilarStatementGenerator\n    ```\n\n2. Create a virtual environment and activate it:\n    ```sh\n    python -m venv venv\n    source venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n    ```\n\n3. Install the required packages:\n    ```sh\n    pip install -r requirements.txt\n    ```\n\n## Running the Application\n\n1. Start the FastAPI server:\n    ```sh\n    uvicorn main:app --host 127.0.0.1 --port 8000\n    ```\n\n2. Open your web browser and navigate to:\n    ```\n    http://127.0.0.1:8000/static/index.html\n    ```\n\n## Project Structure\n\n- `main.py`: The main FastAPI application file.\n- `static/index.html`: The HTML file for the web interface.\n- `requirements.txt`: The list of required Python packages.\n- `.gitignore`: Git ignore file to exclude certain files and directories.\n\n## API Endpoints\n\n- `POST /similar_statements/`: Accepts a JSON payload with a `statement` field and returns the top 10 most similar statements.\n\n## Example\n\nTo test the API, you can use the following HTTP request:\n\n```http\nPOST http://127.0.0.1:8000/similar_statements/\nContent-Type: application/json\n\n{\n  \"statement\": \"Good evening\"\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsshbuilder%2Fsimilarstatementgenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsshbuilder%2Fsimilarstatementgenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsshbuilder%2Fsimilarstatementgenerator/lists"}