Skip to content

Commit

Permalink
icespeak import fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinbjornt committed Sep 13, 2023
1 parent eb7cd6d commit 98b6974
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion queries/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
from queries import AnswerTuple, ContextDict, Query, QueryStateDict
from queries.util import iceformat_float, gen_answer, read_grammar_file
from tree import Result, Node, TerminalNode
from speech.trans import gssml
from icespeak import gssml


_ARITHMETIC_QTYPE = "Arithmetic"
Expand Down
2 changes: 1 addition & 1 deletion queries/builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from reynir import TOK, Tok, correct_spaces
from reynir.bintokenizer import stems_of_token
from search import Search
from speech.trans import gssml
from icespeak import gssml
from queries import AnswerTuple, Query, ResponseDict, ResponseType, QueryStateDict
from tree import Result, Node
from tree.util import TreeUtility
Expand Down
2 changes: 1 addition & 1 deletion queries/counting.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import random
from datetime import datetime, timedelta

from speech.trans import gssml
from icespeak import gssml
from queries.util import parse_num, gen_answer, read_grammar_file
from queries import Query, QueryStateDict
from tree import Result, Node
Expand Down
2 changes: 1 addition & 1 deletion queries/currency.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
read_grammar_file,
)
from tree import Result, Node, NonterminalNode
from speech.trans import gssml
from icespeak import gssml

# Lemmas of keywords that could indicate that the user is trying to use this module
TOPIC_LEMMAS: Sequence[str] = [
Expand Down
2 changes: 1 addition & 1 deletion queries/date.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
)
from tree import Result, Node, TerminalNode
from settings import changedlocale
from speech.trans import gssml
from icespeak import gssml


_DATE_QTYPE = "Date"
Expand Down
2 changes: 1 addition & 1 deletion queries/distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
query_geocode_api_addr,
query_traveltime_api,
)
from speech.trans import gssml
from icespeak import gssml
from geo import distance, capitalize_placename


Expand Down
1 change: 0 additions & 1 deletion tests/test_greynir.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ def test_voices_api(client: FlaskClient):
assert "valid" in resp.json and resp.json["valid"] == True
assert "default" in resp.json
assert "supported" in resp.json
assert "recommended" in resp.json


_KEY_RESTRICTED_ROUTES = frozenset(
Expand Down

0 comments on commit 98b6974

Please sign in to comment.