{"id":13936305,"url":"https://github.com/artpar/languagecrunch","last_synced_at":"2025-04-09T12:04:43.924Z","repository":{"id":145721990,"uuid":"117451561","full_name":"artpar/languagecrunch","owner":"artpar","description":"LanguageCrunch NLP server docker image","archived":false,"fork":false,"pushed_at":"2022-12-07T23:56:51.000Z","size":603,"stargazers_count":287,"open_issues_count":6,"forks_count":26,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-02T09:08:45.441Z","etag":null,"topics":["coreference-resolution","natural-language-processing","nlp","relation-extraction","sentiment-analysis","spacy-nlp","word2vec","wordnet"],"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/artpar.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":"2018-01-14T17:32:55.000Z","updated_at":"2024-08-03T08:23:11.000Z","dependencies_parsed_at":"2024-04-27T23:52:13.903Z","dependency_job_id":null,"html_url":"https://github.com/artpar/languagecrunch","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/artpar%2Flanguagecrunch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artpar%2Flanguagecrunch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artpar%2Flanguagecrunch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artpar%2Flanguagecrunch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artpar","download_url":"https://codeload.github.com/artpar/languagecrunch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248036063,"owners_count":21037092,"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":["coreference-resolution","natural-language-processing","nlp","relation-extraction","sentiment-analysis","spacy-nlp","word2vec","wordnet"],"created_at":"2024-08-07T23:02:33.310Z","updated_at":"2025-04-09T12:04:43.888Z","avatar_url":"https://github.com/artpar.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# LanguageCrunch NLP Service docker image\n\nDocker image: https://hub.docker.com/r/artpar/languagecrunch/\n\n- **[Quickstart](#quickstart)**\n- **[Endpoints](#endpoints)**\n- **[Model Details](#model-details)**\n  - [Sentiment](#sentiment)\n  - [Entity extraction](#entity-extraction)\n  - [Sentence type detection](#sentence-type-detection)\n  - [Relation extraction](#relation-extraction)\n  - [Word look up](#word-look-up)\n\n## Quickstart\n\nPull and run the Docker image, listening on port 8080:\n\n```\n$ docker run -it -p 8080:8080 artpar/languagecrunch\n```\n\nExample API call:\n\n```bash\n$ curl http://localhost:8080/nlp/parse?`echo -n \"The new twitter is so weird. Seriously. Why is there a new twitter? What was wrong with the old one? Fix it now.\" | python -c \"import urllib, sys; print(urllib.urlencode({'sentence': sys.stdin.read()}))\"`\n```\n\n## Endpoints\n\n### Sentence parse [Spacy]\n\n  `GET http://localhost:8080/nlp/parse?sentence=\u003cURL-encoded sentences\u003e`\n\n### Word lookup [Wordnet]\n\n  `GET http://localhost:8080/nlp/word?word=ask\u0026pos=v`\n\n### Coreference resolution [neuralcoref]\n\n  `GET http://localhost:8080/nlp/coref?sentence=\u003cURL-encoded sentences\u003e`\n\n## Model Details\n\n### Sentiment\n\n`sentence: The new twitter is so weird. Seriously. Why is there a new twitter? What was wrong with the old one? Fix it now.`\n```json\n{\n  \"relations\": [],\n  \"sentences\": [\n    {\n      \"sentence\": \"The new twitter is so weird. \",\n      \"sentence_type\": \"assertive\",\n      \"sentiment\": {\n        \"polarity\": -0.18181818181818182,\n        \"subjectivity\": 0.7272727272727273\n      },\n      \"root\": {\n        \"text\": \"is \",\n        \"orth\": 2\n      },\n      \"pos\": [\n        {\n          \"text\": \"The new twitter\",\n          \"lemma\": \"the\",\n          \"pos\": \"DET\",\n          \"tag\": \"DT\",\n          \"dep\": \"nsubj\",\n          .\n          .\n          .\n```\n\n### Entity extraction\n\n- PERSON\n- NORP\n- FACILITY\n- ORG\n- GPE\n- LOC\n- PRODUCT\n- EVENT\n- WORK_OF_ART\n- LAW\n- LANGUAGE\n- DATE\n- TIME\n- PERCENT\n- MONEY\n- QUANTITY\n- ORDINAL\n- CARDINAL\n\n`Eg: Bill Gates, the founder of Microsoft, hosted a party last night`\n```json\n  \"entities\": [\n    {\n      \"text\": \"Bill Gates\",\n      \"label\": \"PERSON\"\n    },\n    {\n      \"text\": \"Microsoft\",\n      \"label\": \"ORG\"\n    },\n    {\n      \"text\": \"last night\",\n      \"label\": \"TIME\"\n    }\n  ]\n}\n```\n\n### Sentence type detection\n\n- assertive\n- interrogative\n- exclamatory\n- negative\n\n### Relation extraction\n\n\n`Eg: Bill Gates, the founder of Microsoft, hosted a party last night`\n```\n  \"relations\": [\n    {\n      \"subject\": \"the founder\",\n      \"object\": \"Microsoft\",\n      \"relation\": \"ORG\"\n    }\n  ],\n```\n\n\n`Eg: Apple is looking at buying U.K. startup for $1 billion`\n```[\n {\n   subject: \"N/A\",\n   object: \"U.K. startup\",\n   relation: \"GPE\"\n },\n {\n   subject: \"buying\",\n   object: \"$1 billion\",\n   relation: \"MONEY\"\n }\n],\n\n```\n\n### Word look up\n\n- Category of word \n  - Hypernyms - **colour** is a hypernym of **red**.\n- Specific words of a category \n  - Holonyms - **red** is a holonym of **color**\n- Synonyms to match\n- Examples\n- Word frames ( how the word is used )\n\n- Coreference resolution\n- Pronouns/references to nouns\n\n\n`Eg: startle, verb` \n\n```json\n  \"results\": [\n    {\n      \"definition\": \"to stimulate to action\",\n      \"examples\": [\n        \"..startled him awake\",\n        \"galvanized into action\"\n      ],\n      \"lemma_names\": [\n        \"startle\",\n        \"galvanize\",\n        \"galvanise\"\n      ],\n      \"hypernyms\": [\n        {\n          \"definition\": \"surprise greatly; knock someone's socks off\",\n          \"examples\": [\n            \"I was floored when I heard that I was promoted\"\n          ],\n          \"lemma_names\": [\n            \"shock\",\n            \"floor\",\n            \"ball_over\",\n            \"blow_out_of_the_water\",\n            \"take_aback\"\n          ]\n        }\n      ],\n      \"lemmas\": [\n        {\n          \"frame_strings\": [\n            \"Somebody startle somebody\",\n            \"Something startle somebody\",\n            \"Somebody startle somebody into V-ing something\"\n          ],\n```\n\n## Contributors\n\n[List of contributors](contributors.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartpar%2Flanguagecrunch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartpar%2Flanguagecrunch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartpar%2Flanguagecrunch/lists"}