Skip to content

Commit

Permalink
Adding default converters for ReStructuredText (#74) and CONLL-U (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Apr 24, 2019
1 parent b214c65 commit 35b48c3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,25 @@
#'metadataconstraints': {'language': ['fr','en','es'], 'status':['completed','inprogress']},

#'searches': [{'query': 'SELECT entity WHERE annotatortype = "manual" FOR w RETURN target', 'label': "Highlight manually annotated entities", 'changeperspective': false}]

'converters': [
{ 'id': 'conllu2folia',
'module': 'foliatools.conllu2folia',
'function': 'flat_convert',
'name': "CONLL-U",
'parameter_help': 'Metadata. Set <em>"direction": "rtl"</em> for right-to left languages (JSON syntax without the envelopping curly braces)', #human readable help for parameters
'parameter_default': '', #default parameter, JSON syntax without the envelopping {}
'inputextensions': ['conllu','conll'],
},
{ 'id': 'rst2folia',
'module': 'foliatools.rst2folia',
'function': 'flat_convert',
'name': "ReStructuredText",
'parameter_help': '', #human readable help for parameters
'parameter_default': '', #default parameter, JSON syntax without the envelopping {}
'inputextensions': ['rst'],
},
]
},
}

Expand Down

0 comments on commit 35b48c3

Please sign in to comment.