Commit 0fbadc66 authored by EstherMaria's avatar EstherMaria
Browse files

merge to change workflow

parent 51a52722
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ for i, r in data.iterrows():
    #print('verbs', verbs)

    tagged = pd.DataFrame(zip(*tagged), columns=['w', 'n'] + verbs)
    verbs.to_csv('outputs/srl_ner_tagged_{}.csv'.format(i))
    tagged.to_csv('outputs/srl_ner_tagged_{}.csv'.format(i))
    if preprocess:
        persons = tagged[tagged.n.str.endswith('PER')]
        names = persons[persons.w.apply(crude_ner) == True].copy()