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

static extract_from_elastic_results(search_result)[source]
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]
static safe_extract_field_from_dict(field_name, _dict)[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.

static extract_json_values(json_pages)[source]
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 extract_be_a_index(sentence)[source]
extract_be_comp(text)[source]
extract_be_comp_relations(first_paragraph)[source]
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

class nlp_architect.data.cdc_resources.wikipedia.wiki_search_page_result.WikipediaSearchPageResult(search_phrase: str, page_result: nlp_architect.data.cdc_resources.data_types.wiki.wikipedia_page.WikipediaPage)[source]

Bases: object

Module contents