DH-lab API (tekst- og korpusanalyse)
Levert av Nasjonalbiblioteket · org.nr. 976029100
ÅpenIngen autentiseringJSON21 endepunkter
Tekstanalyse over Nasjonalbibliotekets samling: n-gram over bøker, aviser og tidsskrifter, konkordanser, frekvenslister, spredning og egne korpus satt sammen fra metadata. Det er API-et bak Python-pakken dhlab, og Swagger-dokumentasjonen ligger på selve API-et.
Kom i gang
curl -X POST https://api.nb.no/dhlab/ngram_book -H "Content-Type: application/json" \
-d '{"word":["klima"],"period":[2000,2005]}'Endepunkter (21)
- POST
/build_corpusBuild corpus from metadata - GET
/chunksFetch chunks as wordbags from a document URN - GET
/chunks_paraFetch chunks (within paragraphs) as wordbags from a document URN - POST
/concReturn concordances (keyword in context) for a corpus query - POST
/conccountReturn counts from concordances (keyword in context) for a corpus query (used for collocation analysis) - POST
/dispersionCompute dispersion of word in urn - POST
/frequenciesGet frequencies of words for a URN or multiple URNs - POST
/get_metadataGet metadata for a list of URNs - GET
/id/{dhlabid}Returns basic metadata for a specific dhlabid - GET
/id/{doctype}/nextReturns the next available dhlabid for a given doctype - GET
/imagination_geo_dataLook up placenames in a specific URN or dhlabid. - POST
/imagination_geo_data_listLook up placenames in a list of specific URNs or dhlabids. - POST
/ngram_bookGet aggregated n-gram statistics for books (unigrams) - POST
/ngram_newspapersGet aggregated n-gram statistics for newspapers (unigrams) - POST
/ngram_periodicalsGet aggregated n-gram statistics for periodicals (unigrams) - POST
/placesLook up placenames in a specific URN. - GET
/reference_corpusReference frequency list of the n most frequent words from a given corpus in a given period. - POST
/reference_wordsLookup a list of words in a reference corpus - GET
/totals/{top_words}Reference frequency list - GET
/urn/{urn}Returns basic metadata for a specific dhlab series URN - POST
/urn_frequenciesGet frequencies for multiple URNs