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
/* Wake up colab python notebook when training */ | |
function ClickConnect(){ | |
console.log("Working"); | |
document.querySelector("colab-toolbar-button").click() | |
} | |
setInterval(ClickConnect,60000) |
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
#!/bin/bash | |
# -*- coding: utf8 -*- | |
# USAGE: bash dataset_to_wordlist_tr.sh ./input.txt ./output.txt | |
# This script takes file clean punctuation, digits and convert capital | |
# latters to smaller and clean non Turkish characters. | |
# Finally make sorted uniq wordlist for Turkish language. | |
# If you want to add or remove character you can change line 20. | |
# Define Variables for input and output |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import json | |
import os | |
import pickle | |
import codecs | |
import numpy as np | |
from functools import reduce |
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
#!usr/bin/env python | |
# -*- coding: utf8 -*- | |
# ============================================================================= | |
# file: universal_cleaner.py | |
# A file consits of functions for cleaning and purifying an input text | |
# ============================================================================= | |
#: Imports | |
import re | |
from functools import reduce |
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
#!usr/bin/env python | |
# -*- coding: utf8 -*- | |
#: Imports | |
import MySQLdb | |
# class: Connection | |
# A simple mysql connection | |
# @completed | |
class Connection: |
NewerOlder