Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for conllu format --conllu-format #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ftyers
Copy link

@ftyers ftyers commented Mar 28, 2017

This patch allows for using the command line option --conllu-format "true" to output in CoNLL-U format[1], preserving comments, segments and empty nodes.

It also allows for training data to be in CoNLL-U format, regardless of output format.

It should provide the same output as udpipe --tag

On the TODO list is allowing input like:

# sent_id = es-dev-001-s15
# text = Tan solo Lemke puede retirar la maldición, y Billy trata de persuadir al anciano de que la retire.
1	Tan	_	_	_	_	_	_	_	_
2	solo	_	_	_	_	_	_	_	_
3	Lemke	_	_	_	_	_	_	_	_
4	puede	_	_	_	_	_	_	_	_
5	retirar	_	_	_	_	_	_	_	_
6	la	_	_	_	_	_	_	_	_
7	maldición	_	_	_	_	_	_	_	_
8	,	_	_	_	_	_	_	_	_
9	y	_	_	_	_	_	_	_	_
10	Billy	_	_	_	_	_	_	_	_
11	trata	_	_	_	_	_	_	_	_
12	de	_	_	_	_	_	_	_	_
13	persuadir	_	_	_	_	_	_	_	_
14-15	al	_	_	_	_	_	_	_	_
14	a	_	_	_	_	_	_	_	_
15	el	_	_	_	_	_	_	_	_
16	anciano	_	_	_	_	_	_	_	_
17	de	_	_	_	_	_	_	_	_
18	que	_	_	_	_	_	_	_	_
19	la	_	_	_	_	_	_	_	_
20	retire	_	_	_	_	_	_	_	_
21	.	_	_	_	_	_	_	_	_

This fixes issue #6

  1. http://universaldependencies.org/format.html

@aryamccarthy
Copy link

Bumping because this is super useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants