Commit 1da02b258c3425f55418c4ba808f51802ea0bc8a
1 parent
26fd0a39
import ‘unk’ frame opinions as ‘cer’
Showing
1 changed file
with
2 additions
and
0 deletions
importer/Frame.py
... | ... | @@ -29,6 +29,8 @@ class Frame: |
29 | 29 | arguments = {} |
30 | 30 | id = frame_tree._attrs['xml:id'] |
31 | 31 | opinion = frame_tree._children[0]._children[0]._attrs['value'] |
32 | + if opinion == 'unk': | |
33 | + opinion = 'cer' | |
32 | 34 | meanings = [meaning._attrs['sameAs'][1:] for meaning in frame_tree._children[1]._children[0]._children] |
33 | 35 | for argument_tree in frame_tree._children[2]._children[0]._children: |
34 | 36 | argument = Argument.fromTree(argument_tree) |
... | ... |