ai_utils/knowledge/sentence.py
def validate(cls, sentence):
        """Checks if sentence is a valid sentence.

        The method is an instance of `Sentence`

        Args:
            sentence (Sentence) : an instance of a sentence

        Raises:
            TypeError: raised if sentence is not a valid instance of Sentence
        """
        if not isinstance(sentence, Sentence):
            raise TypeError("must be a logical sentence")
Checks if sentence is a valid sentence.

        The method is an instance of `Sentence`

        Args:
            sentence (Sentence) : an instance of a sentence

        Raises:
            TypeError: raised if sentence is not a valid instance of Sentence
        
Checks if sentence is a valid sentence.
The method is an instance of `Sentence`
Checks if sentence is a valid sentence . The method is an instance of ` Sentence `
def validate(cls, sentence):
        if not isinstance(sentence, Sentence):
            raise TypeError("must be a logical sentence")
def validate ( cls , sentence ) : if not isinstance ( sentence , Sentence ) : raise TypeError ( "must be a logical sentence" )
Checks if sentence is a valid sentence.
Checks if sentence is a valid sentence .
"""Checks if sentence is a valid sentence.

        The method is an instance of `Sentence`

        Args:
            sentence (Sentence) : an instance of a sentence

        Raises:
            TypeError: raised if sentence is not a valid instance of Sentence
        """
raised if sentence is not a valid instance of Sentence
raised if sentence is not a valid instance of Sentence
TypeError
cls
sentence
an instance of a sentence
an instance of a sentence