NLP Architect by Intel® AI Lab
nlp_architect.data.cdc_resources.wikipedia package
Submodules
nlp_architect.data.cdc_resources.wikipedia.wiki_elastic module
class nlp_architect.data.cdc_resources.wikipedia.wiki_elastic.
WikiElastic
( host: str , port: int , index: str ) [source]
Bases: object
get_best_elastic_results
( phrase ) [source]
get_page_from_result_v1
( phrase , result , result_id ) [source]
get_pages
( phrase ) [source]
get_redirect_result
( phrase ) [source]
static is_connected
( elastic_host , elastic_port ) [source]
nlp_architect.data.cdc_resources.wikipedia.wiki_offline module
class nlp_architect.data.cdc_resources.wikipedia.wiki_offline.
WikiOffline
( wikidump ) [source]
Bases: object
class NoPage
( *args , **kwargs ) [source]
Bases: object
Attribute not found.
get_pages
( phrase ) [source]
load_dump
( wiki_dump ) [source]
nlp_architect.data.cdc_resources.wikipedia.wiki_online module
class nlp_architect.data.cdc_resources.wikipedia.wiki_online.
WikiOnline
[source]
Bases: object
static get_aliases
( item ) [source]
static get_description
( item ) [source]
get_page_redirect
( word ) [source]
get_pages
( phrase ) [source]
get_wiki_page_item
( page ) [source]
get_wiki_page_with_items
( phrase , page ) [source]
static is_disambiguation_page
( item ) [source]
static is_name_description
( text , item , is_disambiguation ) [source]
nlp_architect.data.cdc_resources.wikipedia.wiki_search_page_result module
Bases: object
Module contents