<jupyter_start><jupyter_text>logger<jupyter_code>import logging

logging.basicConfig(level=logging.INFO, format='%(message)s')
logger = logging.getLogger()
logger.addHandler(logging.FileHandler('trainingPennTreeBank.log', 'a'))
print = logger.info<jupyter_output><empty_output><jupyter_text>Config<jupyter_code>import os
import train
root_folder = 'C:\\Users\\Ohad.Volk\\Desktop\\Oshri\\tf-lstm-char-cnn-master\\tf-lstm-char-cnn-master'<jupyter_output><empty_output><jupyter_text>train PennTreeBank<jupyter_code>os.system('robocopy PeenTreeBank '+ root_folder + '\\data') # Copy PeenTreeBank courpus to data folder
train.FLAGS.max_epochs = 50
train.FLAGS.path = root_folder
train.main(_)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14225941422594143, 'fraction_numerical': 0.002789400278940028, 'mean_word_length': 8.573333333333334, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '663997', 'license': 'MIT', 'n_tokens_mistral': 269, 'n_tokens_neox': 264, 'n_words': 30, 'path': 'Training.ipynb', 'repo_name': 'oshToy/Character-Aware-LM-WER', 'size': '717'}