clics / clicsbp

CLDF dataset on Body Part Colexifications
Creative Commons Attribution 4.0 International
1 stars 0 forks source link

Family networks .gml files #62

Closed AnnikaTjuka closed 1 year ago

AnnikaTjuka commented 1 year ago

The .gml files for each language family currently include a network with all concepts in Concepticon. I tried to add a filter with the tag human body part in the command colexifications.py to create the language family networks with the body colexifications yesterday. My attempts didn't work. @LinguList Could you have a look at how the tags human body part, emotion and color can be added to the .gml file?

LinguList commented 1 year ago

You could output the individual files. The graph is generated as SG, sub-graph, so you just add the write_gml-statement with new filename?

https://github.com/clics/clicsbp/blob/241909c100d942f19a446eb999f35d5e8aefb9fa/clicsbpcommands/colexifications.py#L102-L112

AnnikaTjuka commented 1 year ago

Thanks! I used an additional write_gml-statement to write the subgraphs and it worked. I'll create the graphics now.