This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | WITH randomized_data AS ( | |
| SELECT *, | |
| ROW_NUMBER() OVER (ORDER BY RAND()) AS row_num | |
| FROM your_table | |
| ), | |
| total_row_count AS ( | |
| SELECT COUNT(*) AS total_rows | |
| FROM your_table | |
| ), | |
| full_samples AS ( | 
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import nltk.corpus | |
| import re | |
| import string | |
| import unicodedata | |
| SYM_PATTERN = re.compile('[%s]' % string.punctuation) | |
| DIG_PATTERN = re.compile('[0-9]') | |
| def remove_sym(text): | |
| text = re.sub(SYM_PATTERN, '', text) |