コード例 #1
0
ファイル: dataset.py プロジェクト: ztao1989/autogluon
    def get_dataset(self, segment='train'):
        """Get the corresponding dataset for STSB

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

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