Grouping institutes terms at creation
I'm trying to automaticaly group institutes when a request for a corpus is made with HAL (for now).
For exemple, I can have this structure thanks to HAL's API (still need some work on the crawler):
Institut Mines-Télécom [Paris]
|_ IMT - MINES ALES
|_ Laboratoire des Sciences des Risques
...
|_ IMT Atlantique
...
The structure inside GarganText should looks like this inside Institutes tab:
To do this, I might need to add a field _hd_institutes_tree
to HyperdataDocument
and to do all the necessary changes with it.
Then in buildNgramsLists
of src/Gargantext/Core/Text/List.hs
I have to make buildNgramsInstList
to specify how to build the list Institutes (instead of using buildNgramsOthersList
). This is where I'm stuck, I don't understand where I sould make changes in order to group one institute to another one.