def get_semantics_only_tree()

in utils/trees.py [0:0]


    def get_semantics_only_tree(cls, tree_rep):
        '''
        Returns a class object by removing the non-semantic nodes from its tree 
        representation. 
        
        :param tree_rep: (AnyNode) A tree representation

        :return: (TopSemanticTree) A tree class object with the non-semantic nodes removed.
        '''
        tree_rep_ = cls.remove_non_semantic_nodes(tree_rep)
        return cls(tree_rep=tree_rep_)