Skip to content

Commit

Permalink
Corrected marisa-trie-m updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dmort27 committed Apr 27, 2021
1 parent c20a37b commit 53e9af8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions epitran/cedict.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import codecs

import marisa_trie_m
import marisa_trie
import regex as re

ASCII_CHARS = ''.join([chr(i) for i in range(128)])
Expand Down Expand Up @@ -47,7 +47,7 @@ def _construct_trie(self, hanzi):
py, en = df
py = str(''.join(filter(lambda x: x in ASCII_CHARS, ' '.join(py))))
pairs.append((hz, (py.encode('utf-8'),)))
trie = marisa_trie_m.RecordTrie(str('@s'), pairs)
trie = _trie_m.RecordTrie(str('@s'), pairs)
return trie

def has_key(self, key):
Expand Down

0 comments on commit 53e9af8

Please sign in to comment.