# Usage: npx ezs -e enrich-pascal.ini
# To see the enriched notices:
# $ fx < data/corpus-simple-pascal.json '.filter(o => o.ws.rnsr[0]?.length)'
[use]
# JSONParse URLConnect FILELoad FILESave
plugin = basics
# expand
plugin = analytics
[exchange]
value = [ "corpus-simple-teeft-en.json" ]
[JSONParse]
[FILELoad]
location = data
[JSONParse]
# - Pascal
[assign]
path = ws.pascal
value = fix(_.get(self, "abstract", ""), _.get(self, "title")).join(" ; ")
[expand]
path = ws.pascal
# WARNING: using the line below sometimes leads to unexpected results
size = 100
[expand/URLConnect]
url = https://domains-classifier.services.inist.fr/v1/en/classify
retries = 3
timeout = 60000
noerror = true
[dump]
indent = true
[FILESave]
location = data
identifier = corpus-simple-pascal.json
[dump]
indent = true