{"id":18753994,"url":"https://github.com/dcavar/xrenner-json-nlp","last_synced_at":"2025-04-13T00:31:59.258Z","repository":{"id":62590162,"uuid":"177874022","full_name":"dcavar/Xrenner-JSON-NLP","owner":"dcavar","description":"Xrenner wrapper for JSON-NLP.","archived":false,"fork":false,"pushed_at":"2019-05-25T19:12:38.000Z","size":36,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T11:35:17.361Z","etag":null,"topics":["anaphora-resolution","json","natural-language-processing","nlp","python3","xrenner"],"latest_commit_sha":null,"homepage":"https://nlp-lab.org/xrennerjsonnlp/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcavar.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}},"created_at":"2019-03-26T21:51:19.000Z","updated_at":"2019-06-09T22:00:36.000Z","dependencies_parsed_at":"2022-11-03T22:43:34.955Z","dependency_job_id":null,"html_url":"https://github.com/dcavar/Xrenner-JSON-NLP","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcavar%2FXrenner-JSON-NLP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcavar%2FXrenner-JSON-NLP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcavar%2FXrenner-JSON-NLP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcavar%2FXrenner-JSON-NLP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcavar","download_url":"https://codeload.github.com/dcavar/Xrenner-JSON-NLP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650590,"owners_count":21139670,"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":["anaphora-resolution","json","natural-language-processing","nlp","python3","xrenner"],"created_at":"2024-11-07T17:27:44.980Z","updated_at":"2025-04-13T00:31:58.930Z","avatar_url":"https://github.com/dcavar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Xrenner to JSON-NLP\n\n(C) 2019 by [Damir Cavar], [Oren Baldinger], Maanvitha Gongalla, Anurag Kumar, Murali Kammili, Boli Fang\n\nBrought to you by the [NLP-Lab.org]!\n\n\n## Introduction\n\n[Xrenner] wrapper for [JSON-NLP]. [Xrenner] specializes in coreference and anaphora resolution, in a more highly annotated manner \nthan just a coreference chain.\n\n## Required Dependency Parse\n\nXrenner requires a [Dependency Parse](https://en.wikipedia.org/wiki/Dependency_grammar) in [CoNLL-U] format. \nThis can come from [CoreNLP], or another parser that provides universal dependencies in [CoNNL-U] format.\nThere are two ways to accomplish this:\n\n### CoreNLP Server\n\nThe `XrennerPipeline` class will take care of the details, however it requires an available [CoreNLP] server.\nThe easiest way to create one is with [Docker]:\n\n    docker pull nlpbox/corenlp\n    docker run -p 9000:9000 -ti nlpbox/corenlp\n\nTo test this, open a new tab,\n\n    wget -q --post-data \"Although they didn't like it, they accepted the offer.\"   'localhost:9000/?properties={\"annotators\":\"depparse\",\"outputFormat\":\"conll\"}' -O /dev/stdout\n    \nYou then need to create a `.env` file in the root of the project, follow the example in `sample_env`.\nThe default entry that corresponds to the [Docker] command above is: \n\n    CORENLP_SERVER=http://localhost:9000\n    \n### Provide your own CoNLL-U\n\nUse the `XrennerPipeline.process_conll` function, with your conll data passed as a string via\nthe `conll` argument.\n\nYou may find the `pyjsonnlp.conversion.to_conllu` function helpful for converting [JSON-NLP],\nmaybe from [spaCy], to [CoNLL-U].\n\n    \n## Microservice\n\nThe [JSON-NLP] repository provides a Microservice class, with a pre-built implementation of [Flask]. To run it, execute:\n    \n    python xrennerjsonnlp/server.py\n \nSince `server.py` extends the [Flask] app, a WSGI file would contain:\n\n    from xrennerjsonnlp.server import app as application\n\nText is provided to the microservice with the `text` parameter, via either `GET` or `POST`. If you pass `url` as a parameter, the microservice will scrape that url and process the text of the website.\n\nHere is an example `GET` call:\n\n    http://localhost:5000?text=John went to the store. He bought some milk.\n    \nThe `process_conll` endpoint mentioned above is available at the `/process_conll`\nURI. Instead of passing `text`, pass `conll`. A POST operation will be easier than GET \nin this situation.\n\n\n\n[Damir Cavar]: http://damir.cavar.me/ \"Damir Cavar\"\n[Oren Baldinger]: https://oren.baldinger.me/ \"Oren Baldinger\"\n[NLP-Lab.org]: http://nlp-lab.org/ \"NLP-Lab.org\"\n[JSON-NLP]: https://github.com/dcavar/JSON-NLP \"JSON-NLP\"\n[Flair]: https://github.com/zalandoresearch/flair \"Flair\"\n[spaCy]: https://spacy.io/ \"spaCy\"\n[NLTK]: http://nltk.org/ \"Natural Language Processing Toolkit\"\n[Polyglot]: https://github.com/aboSamoor/polyglot \"Polyglot\"\n[Xrenner]: https://github.com/amir-zeldes/xrenner \"Xrenner\"\n[CONLL-U]: https://universaldependencies.org/format.html \"CONLL-U\"\n[Docker]: https://www.docker.com/ \"Docker\"\n[CoreNLP]: https://stanfordnlp.github.io/CoreNLP/ \"Stanford CoreNLP\"\n[Flask]: http://flask.pocoo.org/ \"Flask\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcavar%2Fxrenner-json-nlp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcavar%2Fxrenner-json-nlp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcavar%2Fxrenner-json-nlp/lists"}