Skip to content

Commit

Permalink
Fix 'Python' getting page about the snake
Browse files Browse the repository at this point in the history
  • Loading branch information
jncraton committed Apr 25, 2024
1 parent 0bedf8f commit 28169de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions languagemodels/__init__.py
Expand Up @@ -246,7 +246,7 @@ def extract_answer(question: str, context: str) -> str:
>>> extract_answer("What color is the ball?", context).lower()
'...green...'
>>> extract_answer("Who created Python?", get_wiki('Python')) #doctest: +SKIP
>>> extract_answer("Who created Python?", get_wiki('Python language')) #doctest: +SKIP
'...Guido van Rossum...'
"""

Expand Down Expand Up @@ -339,7 +339,7 @@ def get_wiki(topic: str) -> str:
Examples:
>>> get_wiki('Python')
>>> get_wiki('Python language')
'Python is a high-level...'
>>> get_wiki('Chemistry')
Expand Down

0 comments on commit 28169de

Please sign in to comment.