File tree Expand file tree Collapse file tree 4 files changed +12
-80
lines changed 
tensorflow_datasets/translate Expand file tree Collapse file tree 4 files changed +12
-80
lines changed Original file line number Diff line number Diff line change 1515
1616"""Translation datasets.""" 
1717
18+ from  tensorflow_datasets .translate .flores  import  Flores 
1819from  tensorflow_datasets .translate .flores  import  FloresConfig 
19- from  tensorflow_datasets .translate .flores_neen  import  FloresTranslateNeen 
20- from  tensorflow_datasets .translate .flores_sien  import  FloresTranslateSien 
2120from  tensorflow_datasets .translate .ted_hrlr  import  TedHrlrTranslate 
2221from  tensorflow_datasets .translate .ted_multi  import  TedMultiTranslate 
2322from  tensorflow_datasets .translate .wmt  import  WMTConfig 
Original file line number Diff line number Diff line change 1919from  __future__ import  division 
2020from  __future__ import  print_function 
2121
22- import  abc 
2322import  collections 
2423
2524import  tensorflow  as  tf 
@@ -92,13 +91,19 @@ def __init__(self,
9291    self .language_pair  =  language_pair 
9392
9493
95- class  FloresTranslate (tfds .core .GeneratorBasedBuilder ):
94+ class  Flores (tfds .core .GeneratorBasedBuilder ):
9695  """FLoRes machine translation dataset.""" 
9796
98-   @abc .abstractproperty  
99-   def  is_abstract (self ):
100-     """Forces base class to be abstract.""" 
101-     return  True 
97+   BUILDER_CONFIGS  =  [
98+       FloresConfig (
99+           language_pair = ("ne" , "en" ),
100+           version = "0.0.3" ,
101+       ),
102+       FloresConfig (
103+           language_pair = ("si" , "en" ),
104+           version = "0.0.3" ,
105+       ),
106+   ]
102107
103108  def  _info (self ):
104109    source , target  =  self .builder_config .language_pair 
  Load Diff This file was deleted. 
  Load Diff This file was deleted. 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments