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.1.0.tar.gz (5.9 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.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ovos-wikipedia-solver-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 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.1.0.tar.gz
Algorithm Hash digest
SHA256 c81b50a06a7876e24b5abf36eaec68a49492da53180ea3819db897229f70c992
MD5 82b57e629748ad8311673d7649f3ade4
BLAKE2b-256 aff9f17f3501e9b2892b914f0e40d29de801b520f7c1088c982ba6ac9aa4c48b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ovos_wikipedia_solver-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f00a92963711e8248ac57c1c3cd54876ae6cc5bb4b722cf76a18e02c7a5034b9
MD5 1f75aa48734cdc9d3997941e5b5fdf6f
BLAKE2b-256 3598249b103a7a87ffa22bacdc0c399540f490655714d3c154ddf801c0d151f3

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