parameters: (system=system())
return_statement: return path
docstring: Data directory for the WMT 2014 dataset.
  
      See https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.wmt_dataset.
  
      The dataset has already been downloaded on LLNL LC systems and is
      available to anyone in the "brainusr" group. If the dataset is not
      accessible, a path within the application directory is returned.
docstring_summary: Data directory for the WMT 2014 dataset.
docstring_tokens: Data directory for the WMT 2014 dataset .
function: def wmt_dir(system=system()):
      """Data directory for the WMT 2014 dataset.
  
      See https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.wmt_dataset.
  
      The dataset has already been downloaded on LLNL LC systems and is
      available to anyone in the "brainusr" group. If the dataset is not
      accessible, a path within the application directory is returned.
  
      """
  
      # Cached datasets on LC systems
      path = None
      if system in ('lassen', 'sierra'):
          path = '/p/gpfs1/brainusr/datasets/wmt16_en_de'
      elif system in ('pascal', 'catalyst', 'quartz', 'surface'):
          path = '/p/lscratchh/brainusr/datasets/wmt16_en_de'
  
      # Default path if cached dataset isn't available
      if not path or not os.access(path, os.R_OK):
          path = os.path.join(root_dir(), 'data', 'wmt16_en_de')
  
      return path
function_tokens: def wmt_dir ( system = system ( ) ) : # Cached datasets on LC systems path = None if system in ( 'lassen' , 'sierra' ) : path = '/p/gpfs1/brainusr/datasets/wmt16_en_de' elif system in ( 'pascal' , 'catalyst' , 'quartz' , 'surface' ) : path = '/p/lscratchh/brainusr/datasets/wmt16_en_de' # Default path if cached dataset isn't available if not path or not os . access ( path , os . R_OK ) : path = os . path . join ( root_dir ( ) , 'data' , 'wmt16_en_de' ) return path