{"id":18683635,"url":"https://github.com/scify/democracit-annotators-aspectextractor","last_synced_at":"2025-11-07T19:30:18.066Z","repository":{"id":66648462,"uuid":"53254498","full_name":"scify/DemocracIT-Annotators-AspectExtractor","owner":"scify","description":"This software receives texts annotated from opengov and outputs a suggested abstract of the text.","archived":false,"fork":false,"pushed_at":"2016-03-06T12:57:26.000Z","size":920,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-12-27T23:44:05.617Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-03-06T12:48:23.000Z","updated_at":"2016-03-06T12:52:23.000Z","dependencies_parsed_at":"2023-02-22T17:30:19.480Z","dependency_job_id":null,"html_url":"https://github.com/scify/DemocracIT-Annotators-AspectExtractor","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/scify%2FDemocracIT-Annotators-AspectExtractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scify%2FDemocracIT-Annotators-AspectExtractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scify%2FDemocracIT-Annotators-AspectExtractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scify%2FDemocracIT-Annotators-AspectExtractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scify","download_url":"https://codeload.github.com/scify/DemocracIT-Annotators-AspectExtractor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239535345,"owners_count":19655021,"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-07T10:15:12.256Z","updated_at":"2025-11-07T19:30:18.022Z","avatar_url":"https://github.com/scify.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aspect Extractor module\n# asp_extract.py V1.0\nThis software receives texts (annotated from opengov) and outputs a suggested abstract of the text.\nTo run:\n\u003e\u003e\u003e python asp_extract.py -i \u003ctextsfilepath\u003e -m \u003c0|1\u003e\n\n\u003e -i: a file including texts in the form URL\\tTEXT\\tABSTRACT (ABSTRACT is used for evaluation only)\n\n\u003e -m: 0 to print the suggested abstracts or 1 to evaluate the generated abstracts \n\nNuts \u0026 bolts:\n\nRead a text and select any parts of it that are POS tagged with one of the following sequences: \n['noun noun adjective noun', 'noun adjective noun', 'adjective noun']\nExclude texts which are parts of longer texts in the list and return the final list.\nThe hard coded POS sequences have been resulted after studying the POS tags of manually labelled text abstracts. Note that more data may lead to more POS sequences which might improve the efficiency. Included (but commented) is source code which automatically generates suggested POS sequences from texts (manually labelled with abstracts: URL\\tTEXT\\tABSTRACT) \n\nWARNING: Don't forget to inlude the tagger.jar, this is a slightly changed code of the POS tagger (http://nlp.cs.aueb.gr/software_and_datasets/AUEB_POS_tagger_2_2_alpha.tar.gz) in order for the jar to play with Python. If migration to Java is wanted one may use directly the source code found on the link above. \n\n__author__: Ioannis Pavlopoulos - 16 July 2015\n# Aspect Extractor Service\n# asp_extractor_service.py\n\nThis file is a simple web service wrapper that utilizes the logic in asp_extract.py,\nwith minor modifications, in order to server one document at a time. The service requires Flask installed in the system, and may be invoked with a POST request on \n\u003e       http://\u003chost\u003e:\u003cport\u003e/aspect_extractor/extract_aspects\nwith parameter text=text_to_extract_aspects_on\n\ne.g.\n\n\u003e       curl --data \"text=Τεχνικές Προδιαγραφές έργου «Επέκταση Εγκατάστασης Αυτοματοποιημένου Συστήματος Επιτήρησης στην περιοχή του Έβρου\" http://127.0.0.1:5001/aspect_extractor/extract_aspects\n\nresponse (in json format)\n\n\u003e       { \"content\": [ \"Τεχνικές Προδιαγραφές έργου\" ] }\n\n__author__: George Kiomourtzis \u003cgkiom@scify.org\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscify%2Fdemocracit-annotators-aspectextractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscify%2Fdemocracit-annotators-aspectextractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscify%2Fdemocracit-annotators-aspectextractor/lists"}