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