CofeehousePy/services/corenlp/scripts/arabic-segmenter/utf8utils.py

12 lines
178 B
Python
Raw Normal View History

2021-01-09 03:43:33 +01:00
#!/usr/bin/env python2.7
import codecs
def uopen(filename, mode):
return codecs.open(filename, mode, encoding='utf-8')
def uprint(text):
print(text.encode('utf-8'))