MCPcopy Create free account

hub / github.com/MartinoMensio/spacy-dbpedia-spotlight / functions

Functions27 in github.com/MartinoMensio/spacy-dbpedia-spotlight

↓ 3 callersFunctiondo_with_process
(process_name)
tests/test_extensive.py:80
↓ 3 callersFunctionget_blank
()
tests/test_extensive.py:90
↓ 2 callersMethodpipe
It takes a stream of documents, and for each batch of documents, it makes a request to the API for each document in the batch, and th
spacy_dbpedia_spotlight/entity_linker.py:273
↓ 2 callersMethodprocess_single_doc_after_call
Adds the entities from the response data to the doc.ents. :param doc: The document to process :type doc: Doc
spacy_dbpedia_spotlight/entity_linker.py:101
↓ 1 callersMethodget_remote_response
Wraps a remote call to the DBpedia Spotlight API, handles the possible errors and returns the JSON response: - calls make_request to
spacy_dbpedia_spotlight/entity_linker.py:224
↓ 1 callersMethodmake_request
It takes a Doc object as input, and returns a response object from the DBpedia Spotlight API :param doc: the text to be anno
spacy_dbpedia_spotlight/entity_linker.py:191
↓ 1 callersFunctionsetup_package
()
setup.py:6
Method__call__
The function makes a request to the endpoint, and if the request is successful, it returns the document. If the request is unsuccessf
spacy_dbpedia_spotlight/entity_linker.py:260
Method__init__
(self, language_code='en', dbpedia_rest_endpoint=None, process='annotate', confidence=None, support=None,
spacy_dbpedia_spotlight/entity_linker.py:78
Functioncreate
Creates an instance of a Language with the DBpedia EntityLinker pipeline stage. If the parameter `nlp` is None, it will return a blank language wi
spacy_dbpedia_spotlight/entity_linker.py:291
Functiondbpedia_spotlight_factory
Factory of the pipeline stage `dbpedia_spotlight`. Parameters: - `language_code`: which language to use for entity linking. Possible values ar
spacy_dbpedia_spotlight/entity_linker.py:35
Methodget_ents_list
(json)
spacy_dbpedia_spotlight/entity_linker.py:123
Methodget_uri
(el)
spacy_dbpedia_spotlight/entity_linker.py:120
Functionload
(**overrides)
spacy_dbpedia_spotlight/__init__.py:10
Functiontest_annotate
()
tests/test_extensive.py:134
Functiontest_basic_load
()
tests/test_load_nlp.py:3
Functiontest_blank
()
tests/test_extensive.py:96
Functiontest_candidates
()
tests/test_extensive.py:140
Functiontest_concurrent_big
()
tests/test_extensive.py:153
Functiontest_concurrent_small
()
tests/test_extensive.py:143
Functiontest_languages
()
tests/test_extensive.py:170
Functiontest_large
()
tests/test_extensive.py:119
Functiontest_large_text
()
tests/test_extensive.py:103
Functiontest_load_vector
()
tests/test_load_nlp.py:9
Functiontest_spangroup
()
tests/test_extensive.py:126
Functiontest_spot
()
tests/test_extensive.py:137
Functiontest_strange_text
()
tests/test_extensive.py:111