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
# 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 |
NewerOlder