Changes to spacy_conll in universe (#4914)

* Update information on spacy_conll

* Typo fix
This commit is contained in:
Bram Vanroy 2020-01-16 01:56:39 +01:00 committed by Matthew Honnibal
parent 1785eebfe0
commit 718704022a

View File

@ -1509,28 +1509,30 @@
{ {
"id": "spacy-conll", "id": "spacy-conll",
"title": "spacy_conll", "title": "spacy_conll",
"slogan": "Parse text with spaCy and print the output in CoNLL-U format", "slogan": "Parse text with spaCy and gets its 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.", "description": "This module allows you to parse a text to CoNLL-U format. It contains a pipeline component for spaCy that adds CoNLL-U properties to a Doc and its sentences. It can also be used as a command-line tool.",
"code_example": [ "code_example": [
"from spacy_conll import Spacy2ConllParser", "import spacy",
"spacyconll = Spacy2ConllParser()", "from spacy_conll import ConllFormatter",
"", "",
"# `parse` returns a generator of the parsed sentences", "nlp = spacy.load('en')",
"for parsed_sent in spacyconll.parse(input_str='I like cookies.\nWhat about you?\nI don't like 'em!'):", "conllformatter = ConllFormatter(nlp)",
" do_something_(parsed_sent)", "nlp.add_pipe(conllformatter, after='parser')",
"", "doc = nlp('I like cookies. Do you?')",
"# `parseprint` prints output to stdout (default) or a file (use `output_file` parameter)", "conll = doc._.conll",
"# This method is called when using the command line", "print(doc._.conll_str_headers)",
"spacyconll.parseprint(input_str='I like cookies.')" "print(doc._.conll_str)"
], ],
"code_language": "python", "code_language": "python",
"author": "Bram Vanroy", "author": "Bram Vanroy",
"author_links": { "author_links": {
"github": "BramVanroy", "github": "BramVanroy",
"twitter": "BramVanroy",
"website": "https://bramvanroy.be" "website": "https://bramvanroy.be"
}, },
"github": "BramVanroy/spacy_conll", "github": "BramVanroy/spacy_conll",
"category": ["standalone"] "category": ["standalone", "pipeline"],
"tags": ["linguistics", "computational linguistics", "conll"]
}, },
{ {
"id": "spacy-langdetect", "id": "spacy-langdetect",