Skip to content

Commit

Permalink
change default back to alpino
Browse files Browse the repository at this point in the history
  • Loading branch information
Dafne van Kuppevelt committed Nov 11, 2020
1 parent ac0058c commit 0438886
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions stanza_wrapper/stanza_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

logger = logging.getLogger(__name__)
this_name = 'Morphosyntactic parser based on stanza'
default_treebank = 'combined'
default_treebank = 'alpino'


def get_naf(input_file):

Expand Down Expand Up @@ -119,7 +120,7 @@ def create_dependency_layer(st_doc, knaf_obj, term_id_mapping):
if rel != 'root':
# Creating comment
str_comment = ' '+rel+'('+str(target.lemma)+','+str(source.lemma)+') '
str_comment = escape(str_comment, {"--":"&ndash"})
str_comment = escape(str_comment, {"--": "&ndash"})

my_dep = Cdependency()
my_dep.set_from(term_id_mapping.get((s_id, source.id)))
Expand Down

0 comments on commit 0438886

Please sign in to comment.