INNER CODE UNIT · Python

parse

vacancy/SceneGraphParser · sng_parser/parser.py:63

    def parse(self, sentence, **kwargs):
        """
        Parse a sentence into a scene graph.

        Args:
            sentence (str): the input sentence.

        Returns:
            graph (dict): the parsed scene graph. Please refer to the
            README file for the specification of the return value.
        """
        return self.unwrapped.parse(sentence, **kwargs)

    _default_backend = 'spacy'
    _backend_registry = dict()

    @classmethod
    def register_backend(cls, backend):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…