mmax2conll/mmax2conll/main.py
def check_document_id(cls, document_id, filename,
                          on_missing=c.CONLL_ON_MISSING['document_id']):
        """
        Check the document ID of a document.
        """
        message = f"No document ID could be found for {filename}."
        if on_missing == 'warn':
            if document_id is None:
                logger.warn(message)
        elif on_missing == 'throw':
            if document_id is None:
                logger.warn(message)
        elif on_missing != 'nothing':
            raise ValueError(
                    "`on_missing` should be either 'nothing', 'warn' or"
                    " 'throw', but `on_missing['document_id']` is"
                    f" {on_missing!r}"
                )

        Check the document ID of a document.
        
Check the document ID of a document.
Check the document ID of a document .
def check_document_id(cls, document_id, filename,
                          on_missing=c.CONLL_ON_MISSING['document_id']):
        message = f"No document ID could be found for {filename}."
        if on_missing == 'warn':
            if document_id is None:
                logger.warn(message)
        elif on_missing == 'throw':
            if document_id is None:
                logger.warn(message)
        elif on_missing != 'nothing':
            raise ValueError(
                    "`on_missing` should be either 'nothing', 'warn' or"
                    " 'throw', but `on_missing['document_id']` is"
                    f" {on_missing!r}"
                )
def check_document_id ( cls , document_id , filename , on_missing = c . CONLL_ON_MISSING [ 'document_id' ] ) : message = f"No document ID could be found for {filename}." if on_missing == 'warn' : if document_id is None : logger . warn ( message ) elif on_missing == 'throw' : if document_id is None : logger . warn ( message ) elif on_missing != 'nothing' : raise ValueError ( "`on_missing` should be either 'nothing', 'warn' or" " 'throw', but `on_missing['document_id']` is" f" {on_missing!r}" )
Check the document ID of a document.
Check the document ID of a document .
"""
        Check the document ID of a document.
        """
cls
document_id
filename
on_missing