Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaung Htet San authored Jul 11, 2021
1 parent d25c84a commit 9a702b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyidaungsu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import re, os, sys
import numpy as np

sys.stdout = open(os.devnull, "w")
sys.stderr = open(os.devnull, "w")
f = fasttext.load_model(os.path.join(os.path.abspath(os.path.dirname(__file__)),'model/pdsdetect.ftz'))

Expand Down Expand Up @@ -54,4 +53,4 @@ def detect(text):
return predict(text)[0][0][0][9:]

def tokenize(text,lang='mm',form='syllable'):
return Tokenize().tokenize(text, lang, form)
return Tokenize().tokenize(text, lang, form)

0 comments on commit 9a702b3

Please sign in to comment.