Skip to content
Snippets Groups Projects
Commit ca17be32 authored by Lili Gasser's avatar Lili Gasser
Browse files

WIP: fix bug in splitting speaker from text on first line

parent 4a855ae9
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ Alinea ...@@ -2,6 +2,7 @@ Alinea
Alter Alter
Ari Ari
Art Art
besser
bietet bietet
Fällen Fällen
fasse fasse
......
...@@ -300,8 +300,10 @@ def label_speechstart(XML_new, ind_p, ind_t, text, ind_tl_colon, df_names, list_ ...@@ -300,8 +300,10 @@ def label_speechstart(XML_new, ind_p, ind_t, text, ind_tl_colon, df_names, list_
thattext = XML_new[ind_p][ind_t][0].text thattext = XML_new[ind_p][ind_t][0].text
colon_index = thattext.index(':') colon_index = thattext.index(':')
print(thattext)
# get last font information of thattext # get last font information of thattext
fontstart = re.findall('\[font.*?\]', thattext)[-1] fontstart = re.findall('\[font.*?\]', thattext)[-1]
print(fontstart)
try: try:
# write speaker to first line # write speaker to first line
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment