Skip to content

Commit

Permalink
Move dragonfly2jsgf package files into dragonfly
Browse files Browse the repository at this point in the history
I'm doing this because it doesn't really need to be a separate
package.

The module is now in engines/backend_sphinx and the unit test
file is in dragonfly/test.
  • Loading branch information
drmfinlay committed Oct 11, 2018
1 parent ed9745c commit 29d00e5
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dragonfly/engines/backend_sphinx/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This file implements the compiler for CMU Pocket Sphinx speech recognition
engine.
"""
from dragonfly2jsgf.dragonfly2jsgf import Translator, TranslationState
from .dragonfly2jsgf import Translator, TranslationState
from ..base import CompilerBase

# noinspection PyUnusedLocal
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion dragonfly/engines/backend_sphinx/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
from jsgf import GrammarError, RootGrammar, PublicRule, Literal
from pyaudio import PyAudio

from dragonfly2jsgf import Translator
from .dragonfly2jsgf import Translator
from .compiler import SphinxJSGFCompiler
from .grammar_wrapper import GrammarWrapper, ProcessingState
except ImportError:
Expand Down
2 changes: 1 addition & 1 deletion dragonfly/engines/backend_sphinx/grammar_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import dragonfly.grammar.state as state_
from dragonfly import Grammar
from dragonfly2jsgf import LinkedRule
from .dragonfly2jsgf import LinkedRule


@functools.total_ordering
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import jsgf.ext

from dragonfly.engines.backend_sphinx.dragonfly2jsgf import *
from dragonfly import *
from dragonfly2jsgf import *
from dragonfly.parser import ParserError
from dragonfly import List as DragonflyList, DictList as DragonflyDictList

Expand Down
6 changes: 0 additions & 6 deletions dragonfly2jsgf/__init__.py

This file was deleted.

0 comments on commit 29d00e5

Please sign in to comment.