Top

concrete module

Python modules and scripts for working with Concrete, an HLT data specification defined using Thrift.

# This file is NOT auto-generated

"""
Python modules and scripts for working with
[Concrete](https://github.com/hltcoe/concrete), an HLT data
specification defined using [Thrift](http://thrift.apache.org).
"""


from audio.ttypes import *  # noqa
from clustering.ttypes import *  # noqa
from communication.ttypes import *  # noqa
from email.ttypes import *  # noqa
from entities.ttypes import *  # noqa
from exceptions.ttypes import *  # noqa
from language.ttypes import *  # noqa
from linking.ttypes import *  # noqa
from metadata.ttypes import *  # noqa
from nitf.ttypes import *  # noqa
from services.ttypes import *  # noqa
from situations.ttypes import *  # noqa
from spans.ttypes import *  # noqa
from structure.ttypes import *  # noqa
from twitter.ttypes import *  # noqa
from uuid.ttypes import *  # noqa

from version import __version__  # noqa

Sub-modules

concrete.inspect

Functions used by concrete_inspect.py to print data in a Communication.

The function implementations provide useful examples of how to interact with many different Concrete datastructures.

concrete.util

Utility code for working with Concrete

concrete.validate

Library to validate a Concrete Communication

Current validation checks:

  • for each constituent parse, do any of the constituent ID's for that parse repeat?
  • is each dependency and constituent parse a fully connected graph?
  • is each constituent parse "tree" really a tree?
  • for each d...