Skip to content

Instantly share code, notes, and snippets.

View shubhamagarwal92's full-sized avatar
☃️
Focusing

Shubham Agarwal shubhamagarwal92

☃️
Focusing
View GitHub Profile
@shubhamagarwal92
shubhamagarwal92 / convertTextToSequence.py
Created April 7, 2017 14:42
This script converts string (sequence of characters) to a sequence of integer values of the unicode characters
# Shubham Agarwal, April 2017
# This script converts string (sequence of characters) to a sequence of integer values of the
# unicode characters
#
# To run this script provide data and output file path. Also provide fileEncoding
# Run as:
# python convertTextToSequency.py --readFilePath='path/to/text/' --writeFilePath='path/to/output'
# Default to 'utf-8' encoding
# Or use --fileEncoding='utf-8'
import os