home << dhlab reference << dhlab.api.dhlab_api

ner_from_urn#

from dhlab.api.dhlab_api import ner_from_urn
ner_from_urn(urn=None, model=None, start_page=0, to_page=0)[source]#

Get NER annotations for a text (urn) using a spacy model.

Parameters:
  • urn (str) – uniform resource name, example: URN:NBN:no-nb_digibok_2011051112001

  • model (str) – name of a spacy model. Check which models are available with show_spacy_models()

Returns:

Dataframe with annotations and their frequencies

Return type:

DataFrame