{"id":21917657,"url":"https://github.com/emilstenstrom/json-tagger","last_synced_at":"2025-04-19T10:50:48.280Z","repository":{"id":24978024,"uuid":"28396433","full_name":"EmilStenstrom/json-tagger","owner":"EmilStenstrom","description":"A JSON API to tag a sentence with part of speech tags. Uses UDPipe, so support for hundreds of languages.","archived":false,"fork":false,"pushed_at":"2024-12-02T22:32:58.000Z","size":679,"stargazers_count":14,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T07:11:22.216Z","etag":null,"topics":["json-api","natural-language-processing","pos-tagging","python","swedish","udpipe","universal-dependencies"],"latest_commit_sha":null,"homepage":"https://json-tagger.com","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EmilStenstrom.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":"2014-12-23T12:15:51.000Z","updated_at":"2025-03-13T11:09:50.000Z","dependencies_parsed_at":"2024-02-05T19:55:44.498Z","dependency_job_id":"0656d539-9389-477f-b480-8680ecce42ab","html_url":"https://github.com/EmilStenstrom/json-tagger","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/EmilStenstrom%2Fjson-tagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmilStenstrom%2Fjson-tagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmilStenstrom%2Fjson-tagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmilStenstrom%2Fjson-tagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EmilStenstrom","download_url":"https://codeload.github.com/EmilStenstrom/json-tagger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249677744,"owners_count":21309621,"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":["json-api","natural-language-processing","pos-tagging","python","swedish","udpipe","universal-dependencies"],"created_at":"2024-11-28T19:39:21.933Z","updated_at":"2025-04-19T10:50:48.260Z","avatar_url":"https://github.com/EmilStenstrom.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"JSON Tagger\n===========\n\nUDPipe finds detailed **Part-of-speech tags** (Noun, Verb, ...) in **Swedish sentences**. This code makes UDPipe available via a JSON API.\n\nPlay with it at: https://json-tagger.sammanfatta.se\n\n## How to run JSON Tagger locally\n\nJSON-Tagger is built for Python 3.6. I haven't tested it on other versions, so it might work or other 3.x versions, but not on Python 2.\n\n1. Clone this project from GitHub:\n\n```\ngit clone https://github.com/EmilStenstrom/json-tagger.git json-tagger\n```\n\n2. Install dependencies:\n\n```\ncd json-tagger\npip install -r requirements.txt\n```\n\n3. Get a UDPipe model file\n\nDownload the latest version of the udipe models from http://ufal.mff.cuni.cz/udpipe#download. Pick the language you are interested in, create a *data* directory in the root of the project, and put the *.udipe* file there. Now update the path to the file in ud_helper, and in actions.py if you use a language other than Swedish. Done!\n\n4. Start the local web server\n\n```\npython run.py --run\n```\n\n5. Surf to http://localhost:8000 in your browser!\n\nRun the tests\n-------------\n\nThe trickiest part of delivering an API like JSON Tagger is to handle encodings. I've found that the easiest way to make sure I don't mess them up is to run code that accesses the API from different languages. To run some simple integration tests against a version running locally:\n\n1. Install dependencies\n\nThe scripts assume you are running them inside a virtualenv with `python` pointing to Python 3, and that `python2` and `curl` is available on the PATH.\n\n```\npip2 install requests\npip install requests\ngem install http\nnpm install -g request\n```\n\n2. Run all the tests\n\n```\ntests/run_all\n```\n\nIf any of the tests fail it will output the difference in output between the result and the expected result.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femilstenstrom%2Fjson-tagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femilstenstrom%2Fjson-tagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femilstenstrom%2Fjson-tagger/lists"}