{"id":17816935,"url":"https://github.com/eczy/text-graphs","last_synced_at":"2025-04-02T08:26:49.264Z","repository":{"id":67031897,"uuid":"239693649","full_name":"eczy/text-graphs","owner":"eczy","description":null,"archived":false,"fork":false,"pushed_at":"2020-02-26T18:56:40.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T23:43:45.918Z","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/eczy.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":"2020-02-11T06:36:33.000Z","updated_at":"2020-02-26T18:57:48.000Z","dependencies_parsed_at":"2023-07-05T21:32:41.100Z","dependency_job_id":null,"html_url":"https://github.com/eczy/text-graphs","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/eczy%2Ftext-graphs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eczy%2Ftext-graphs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eczy%2Ftext-graphs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eczy%2Ftext-graphs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eczy","download_url":"https://codeload.github.com/eczy/text-graphs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246780265,"owners_count":20832558,"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-10-27T16:39:47.056Z","updated_at":"2025-04-02T08:26:49.246Z","avatar_url":"https://github.com/eczy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Text Graphs\nA simple example of graph generation from text.\n\nWe use the part-of-speech tagging and syntactic dependency parsing built into the `spaCy` library in order to extract nouns, adjectives, and verbs from a text corpus along with the relationships between them. We then use these relationships to generate a graph structure among nouns and adjectives where directed edges entail either a relation (verb) or a description (adjective, clausal modifier, compound noun).\n\n\n\n# Example\nTo run this analysis on the provided sample text, run the following commands:\n```\npip install -r requirements.txt\npython -m spacy download en_core_web_sm\npython text_graph.py sample.txt sample_graph.csv\npython viz.py sample_graph.csv sample_graph.png\n```\n\nYou should now have a csv with source, destination, and edge type columns along with a graph similar to the following:\n\n![Sample Graph Output](/img/sample.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feczy%2Ftext-graphs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feczy%2Ftext-graphs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feczy%2Ftext-graphs/lists"}