-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debugging visualization tools and logging
- Loading branch information
Showing
15 changed files
with
439 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,27 @@ | ||
#TMN_DataGen/TMN_DataGen/__init__.py | ||
# TMN_DataGen/TMN_DataGen/__init__.py | ||
import logging | ||
|
||
# Set up logging configuration | ||
logging.basicConfig( | ||
level=logging.INFO, | ||
format='%(message)s', # Simple format to just show messages for tree visualization | ||
force=True # Ensure our config takes precedence | ||
) | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
from .tree.node import Node | ||
from .tree.dependency_tree import DependencyTree | ||
from .parsers.diaparser_impl import DiaParserTreeParser | ||
from .parsers.spacy_impl import SpacyTreeParser | ||
from .dataset_generator import DatasetGenerator | ||
from .parsers.multi_parser import MultiParser | ||
from .utils.feature_utils import FeatureExtractor | ||
from .utils.viz_utils import print_tree_text, visualize_tree_graphviz, format_tree_pair | ||
|
||
__all__ = [ | ||
'Node', 'DependencyTree', | ||
'DiaParserTreeParser', 'SpacyTreeParser', 'MultiParser', | ||
'DatasetGenerator', 'FeatureExtractor', | ||
'print_tree_text', 'visualize_tree_graphviz', 'format_tree_pair' | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
#parsers/__init__.py | ||
|
||
from ..utils.logging_config import logger | ||
from .base_parser import BaseTreeParser | ||
from .diaparser_impl import DiaParserTreeParser | ||
from .spacy_impl import SpacyTreeParser | ||
from .multi_parser import MultiParser | ||
|
||
__all__ = ['BaseTreeParser', 'DiaParserTreeParser', 'SpacyTreeParser', 'MultiParser'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#__init__.py | ||
from ..utils.logging_config import logger | ||
from .node import Node | ||
from .dependency_tree import DependencyTree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
#utils/__init__.py | ||
from .feature_utils import FeatureExtractor | ||
# TMN_DataGen/TMN_DataGen/utils/__init__.py | ||
from .logging_config import logger | ||
from .feature_utils import FeatureExtractor | ||
from .viz_utils import print_tree_text, visualize_tree_graphviz, format_tree_pair | ||
|
||
__all__ = ['logger', 'FeatureExtractor', 'print_tree_text', 'visualize_tree_graphviz', 'format_tree_pair'] |
Oops, something went wrong.