# Usage: npx ezs enrich-teeft-en.ini < data/corpus-simple-instituts.json > data/corpus-simple-teeft-en.json
# To see the enriched notices:
# $ fx < data/corpus-simple-teeft-en.json '.filter(o => o.ws.rnsr[0]?.length)'
[use]
# JSONParse URLConnect
plugin = basics
# expand
plugin = analytics
[JSONParse]
# - Teeft
[assign]
path = ws.teeft
value = fix(_.get(self, "abstract", ""), _.get(self, "title")).join(" ; ")
[expand]
path = ws.teeft
size = 100
[expand/URLConnect]
url = https://terms-extraction.services.inist.fr/v1/teeft/en?nb=10
retries = 3
timeout = 6000000
noerror = true
[dump]
indent = true