This file contains 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
Write-Host -NoNewline " " | |
Write-Host -NoNewline " _______ _______ ___ _______ _______ _______ " | |
Write-Host -NoNewline " | || _ || | | _ || _ || | " | |
Write-Host -NoNewline " | _ || |_| || | | |_| || |_| || _____| " | |
Write-Host -NoNewline " | | | || || | | || || |_____ " | |
Write-Host -NoNewline " | |_| || || |___ | || _ | |_____ | " | |
Write-Host -NoNewline " | || _ || || _ || |_| | _____| | " | |
Write-Host -NoNewline " |_______||__| |__||_______||__| |__||_______||_______| " | |
Write-Host -NoNewline " " | |
Write-Host -NoNewline " " |
This file contains 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 gzip | |
import io | |
def gzip_str(string_): | |
out = io.BytesIO() | |
with gzip.GzipFile(fileobj=out, mode='w') as fo: | |
fo.write(string_.encode()) | |
bytes_obj = out.getvalue() |
This file contains 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 os | |
import string | |
import time | |
from operator import itemgetter | |
from nltk import pos_tag | |
from nltk import sent_tokenize | |
from nltk import wordpunct_tokenize | |
from nltk import WordNetLemmatizer |