Commit 
							
							·
						
						0774a5e
	
1
								Parent(s):
							
							de9dbb2
								
add deprecation warning to the script
Browse files
    	
        ami.py
    CHANGED
    
    | @@ -17,6 +17,7 @@ | |
| 17 | 
             
            """AMI Corpus"""
         | 
| 18 |  | 
| 19 | 
             
            import os
         | 
|  | |
| 20 | 
             
            import xml.etree.ElementTree as ET
         | 
| 21 |  | 
| 22 | 
             
            import numpy as np
         | 
| @@ -303,6 +304,17 @@ class AMI(datasets.GeneratorBasedBuilder): | |
| 303 | 
             
                ]
         | 
| 304 |  | 
| 305 | 
             
                def _info(self):
         | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 306 | 
             
                    features_dict = {
         | 
| 307 | 
             
                        "word_ids": datasets.Sequence(datasets.Value("string")),
         | 
| 308 | 
             
                        "word_start_times": datasets.Sequence(datasets.Value("float")),
         | 
|  | |
| 17 | 
             
            """AMI Corpus"""
         | 
| 18 |  | 
| 19 | 
             
            import os
         | 
| 20 | 
            +
            import warnings
         | 
| 21 | 
             
            import xml.etree.ElementTree as ET
         | 
| 22 |  | 
| 23 | 
             
            import numpy as np
         | 
|  | |
| 304 | 
             
                ]
         | 
| 305 |  | 
| 306 | 
             
                def _info(self):
         | 
| 307 | 
            +
                    
         | 
| 308 | 
            +
                    warnings.warn(
         | 
| 309 | 
            +
                        """
         | 
| 310 | 
            +
                        This version of the AMI dataset is deprecated.
         | 
| 311 | 
            +
                        You can download the latest one (based on the official Kaldi recipes) with
         | 
| 312 | 
            +
                        >>> load_dataset(\"edinburghcstr/ami\", \"ihm\")  # for the "independent headset microphone" part
         | 
| 313 | 
            +
                        or
         | 
| 314 | 
            +
                        >>> load_dataset(\"edinburghcstr/ami\", \"sdm\")  # for the "single distant microphone" part
         | 
| 315 | 
            +
                        """
         | 
| 316 | 
            +
                    )
         | 
| 317 | 
            +
                    
         | 
| 318 | 
             
                    features_dict = {
         | 
| 319 | 
             
                        "word_ids": datasets.Sequence(datasets.Value("string")),
         | 
| 320 | 
             
                        "word_start_times": datasets.Sequence(datasets.Value("float")),
         | 
