示例#1
0
    def get_dataset(self, segment='train'):
        """Get the corresponding dataset for WNLI

        Parameters
        ----------
        segment : str, default 'train'
            Dataset segments. Options are 'dev', 'test', 'train'
        """
        return GlueWNLI(segment=segment)
示例#2
0
    def get_dataset(self, segment='train',
                    root=os.path.join(os.getenv('GLUE_DIR', 'glue_data'), 'WNLI')):
        """Get the corresponding dataset for WNLI

        Parameters
        ----------
        segment : str, default 'train'
            Dataset segments. Options are 'dev', 'test', 'train'
        root : str, default $GLUE_DIR/WNLI
            Path to the folder which stores the dataset.
        """
        return GlueWNLI(segment=segment, root=root)