Beispiel #1
0
def convert_one_annotation(obj, type_, entity):
    """
    :type obj: :class:`mbdata.models.Annotation`
    """
    return models.annotation(type_, entity.gid, entity.name, obj.text)
Beispiel #2
0
def convert_annotation(obj):
    """
    :type obj: :class:`mbdata.models.Annotation`
    """
    annotation = models.annotation()
    return annotation
Beispiel #3
0
def convert_annotation(obj):
    """
    :type obj: :class:`mbdata.models.Annotation`
    """
    annotation = models.annotation()
    return annotation
Beispiel #4
0
def convert_one_annotation(obj, type_, entity):
    """
    :type obj: :class:`mbdata.models.Annotation`
    """
    return models.annotation(type_, entity.gid, entity.name, obj.text)