add multiple hw comps in mw colocation
This commit is contained in:
parent
77a1e632a2
commit
60f70b60b7
|
@ -351,8 +351,12 @@ class SkeInsert(DataChgClickMessage):
|
|||
lex.text = structure[i]
|
||||
lex.role = "other"
|
||||
elif structure[i][0] in ["S", "G", "P", "R"]:
|
||||
lex.text = headword
|
||||
lex.role = "headword"
|
||||
for hw in headword.split(" "):
|
||||
lex = ComponentLexeme()
|
||||
lex.text = hw
|
||||
lex.role = "headword"
|
||||
lexemes.append(lex)
|
||||
lexemes.pop(-1)
|
||||
else:
|
||||
lex.text = example.word
|
||||
lex.role = "collocate"
|
||||
|
|
Loading…
Reference in New Issue
Block a user