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

12 lines
189 B
Python
Raw Normal View History

2021-01-14 08:07:24 +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'))