Module gatenlp.gatenlpconfig

Module that provides the class GatenlpConfig and the instance gatenlpconfig which stores various global configuration options.

Expand source code
"""
Module that provides the class GatenlpConfig and the instance gatenlpconfig which stores various
global configuration options.
"""


class GatenlpConfig:
    """ """

    def __init__(self):
        # The color to use for text in the generated viewer HTML for a document.#
        # So far this only applies to viewers where notebook=True
        self.doc_html_repr_txtcolor = "black"

        # set to True if the notebook has been initialized with the javascript needed by
        # the html-ann-viewer
        self.notebook_js_initialized = False

        # The height to use for row1/row2 and row1 if stretch_height is True
        self.doc_html_repr_row1style_stretch = "min-height:5em;height:67vh;"
        self.doc_html_repr_row2style_stretch = "min-height:3em;height:30vh;"

        # The height to use for row1/row2 and row1 if stretch_height is False
        self.doc_html_repr_row1style_nostretch = "min-height:5em;max-height:20em;"
        self.doc_html_repr_row2style_nostretch = "min-height:3em;max-height:14em;"

        # If string, use this as the default style for the document text
        self.doc_html_repr_doc_style = None

gatenlpconfig = GatenlpConfig()

Classes

class GatenlpConfig
Expand source code
class GatenlpConfig:
    """ """

    def __init__(self):
        # The color to use for text in the generated viewer HTML for a document.#
        # So far this only applies to viewers where notebook=True
        self.doc_html_repr_txtcolor = "black"

        # set to True if the notebook has been initialized with the javascript needed by
        # the html-ann-viewer
        self.notebook_js_initialized = False

        # The height to use for row1/row2 and row1 if stretch_height is True
        self.doc_html_repr_row1style_stretch = "min-height:5em;height:67vh;"
        self.doc_html_repr_row2style_stretch = "min-height:3em;height:30vh;"

        # The height to use for row1/row2 and row1 if stretch_height is False
        self.doc_html_repr_row1style_nostretch = "min-height:5em;max-height:20em;"
        self.doc_html_repr_row2style_nostretch = "min-height:3em;max-height:14em;"

        # If string, use this as the default style for the document text
        self.doc_html_repr_doc_style = None