Skip to content
Snippets Groups Projects
Commit 3cf314af authored by Paweł Walkowiak's avatar Paweł Walkowiak
Browse files

Merge branch 'sentences_key' into 'master'

Sentences key

See merge request !3
parents 077614de 7fe18132
No related branches found
No related tags found
1 merge request!3Sentences key
Pipeline #10749 passed
......@@ -108,6 +108,9 @@ def ccl2json(path_in, path_out, tagset='nkjp', json_text=True):
data_out = {
"filename": pathlib.Path(path_in).stem,
'tagset': tagset,
'sentences': [sentence.as_dict()
for sentence in
parser.getContentHandler().get_sentences()],
'tokens': [_convert_tagset_in_token(token.as_dict(), tagset)
for token in parser.getContentHandler().get_tokens()]
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment