Skip to main content

ovos wikipedia plugin

Project description

Wikipedia Plugin

from ovos_wikipedia_solver import WikipediaSolver

s = WikipediaSolver()
print(s.get_spoken_answer("quem é Elon Musk", "pt"))

query = "who is Isaac Newton"
print(s.extract_keyword(query, "en-us"))
assert s.extract_keyword(query, "en-us") == "Isaac Newton"

print(s.get_spoken_answer("venus", "en"))
print(s.get_spoken_answer("elon musk", "en"))
print(s.get_spoken_answer("mercury", "en"))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ovos-wikipedia-solver-0.0.2.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovos_wikipedia_solver-0.0.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file ovos-wikipedia-solver-0.0.2.tar.gz.

File metadata

  • Download URL: ovos-wikipedia-solver-0.0.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for ovos-wikipedia-solver-0.0.2.tar.gz
Algorithm Hash digest
SHA256 be062408696660fb53800428f2e82092bf6075f8e1c82fb3020714287ca4fc6c
MD5 bbc6991535a6d678fd2cc43602f0ba9a
BLAKE2b-256 d888d8f4fbc669e81c8acca4018c3cd2272caa28f44e8ae6c53c6f3afc3dcef1

See more details on using hashes here.

File details

Details for the file ovos_wikipedia_solver-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_wikipedia_solver-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9da550ee5818f665c17b47370c62988e31614d81946609415d1c5ad0fddb8d29
MD5 653d06b25dbe58f08c1b151afdb9ff27
BLAKE2b-256 5e638a83a5977aabd3828f54df780394fd16d67937bbcc14379410b989442dda

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page