Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MartinoMensio/spacy-dbpedia-spotlight
/ functions
Functions
27 in github.com/MartinoMensio/spacy-dbpedia-spotlight
⨍
Functions
27
◇
Types & classes
1
↓ 3 callers
Function
do_with_process
(process_name)
tests/test_extensive.py:80
↓ 3 callers
Function
get_blank
()
tests/test_extensive.py:90
↓ 2 callers
Method
pipe
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 callers
Method
process_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 callers
Method
get_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 callers
Method
make_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 callers
Function
setup_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
Function
create
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
Function
dbpedia_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
Method
get_ents_list
(json)
spacy_dbpedia_spotlight/entity_linker.py:123
Method
get_uri
(el)
spacy_dbpedia_spotlight/entity_linker.py:120
Function
load
(**overrides)
spacy_dbpedia_spotlight/__init__.py:10
Function
test_annotate
()
tests/test_extensive.py:134
Function
test_basic_load
()
tests/test_load_nlp.py:3
Function
test_blank
()
tests/test_extensive.py:96
Function
test_candidates
()
tests/test_extensive.py:140
Function
test_concurrent_big
()
tests/test_extensive.py:153
Function
test_concurrent_small
()
tests/test_extensive.py:143
Function
test_languages
()
tests/test_extensive.py:170
Function
test_large
()
tests/test_extensive.py:119
Function
test_large_text
()
tests/test_extensive.py:103
Function
test_load_vector
()
tests/test_load_nlp.py:9
Function
test_spangroup
()
tests/test_extensive.py:126
Function
test_spot
()
tests/test_extensive.py:137
Function
test_strange_text
()
tests/test_extensive.py:111