From 11cee62644c8c75218ad5c4fa18a6fd6d4c7f91a Mon Sep 17 00:00:00 2001 From: Bram Vanroy Date: Wed, 16 Jan 2019 13:46:16 +0100 Subject: [PATCH] Updated spacy_conll information (#3158) --- website/universe/universe.json | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/website/universe/universe.json b/website/universe/universe.json index 934954df1..4b5aa2b92 100644 --- a/website/universe/universe.json +++ b/website/universe/universe.json @@ -1083,20 +1083,31 @@ "category": ["pipeline"] }, { - "id": "spacy2conllu", - "title": "spaCy2CoNLLU", + "id": "spacy-conll", + "title": "spacy_conll", "slogan": "Parse text with spaCy and print the output in CoNLL-U format", - "description": "Simple script to parse text with spaCy and print the output in CoNLL-U format", + "description": "This module allows you to parse a text to CoNLL-U format. You can use it as a command line tool, or embed it in your own scripts.", "code_example": [ - "python parse_as_conllu.py [-h] --input_file INPUT_FILE [--output_file OUTPUT_FILE] --model MODEL" + "from spacy_conll import Spacy2ConllParser", + "spacyconll = Spacy2ConllParser()", + "", + "# `parse` returns a generator of the parsed sentences", + "for parsed_sent in spacyconll.parse(input_str='I like cookies.\nWhat about you?\nI don't like 'em!'):", + " do_something_(parsed_sent)", + "", + "# `parseprint` prints output to stdout (default) or a file (use `output_file` parameter)", + "# This method is called when using the command line", + "spacyconll.parseprint(input_str='I like cookies.')" ], - "code_language": "bash", - "author": "Raquel G. Alhama", + "code_language": "python", + "author": "Bram Vanroy", "author_links": { - "github": "rgalhama" + "github": "BramVanroy", + "website": "https://bramvanroy.be" + }, - "github": "rgalhama/spaCy2CoNLLU", - "category": ["training"] + "github": "BramVanroy/spacy_conll", + "category": ["standalone"] } ], "projectCats": {