Skip to content

Commit

Permalink
o weka e jaki tan toki lon ilo sin
Browse files Browse the repository at this point in the history
  • Loading branch information
gregdan3 committed Apr 24, 2024
1 parent 4fcd2fe commit e6dc9c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/otokipona/ilo.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ def __preprocess(self, msg: str) -> str:
msg = p.process(msg)
return msg

# def __tokenize(self, msg: str) -> List[str]:
# return self.__tokenizer(msg)
def __clean_token(self, token: str) -> str:
for c in self.__cleaners:
token = c.clean(token)
return token

def __clean_tokens(self, tokens: List[str]) -> List[str]:
cleaned_tokens: List[str] = list()
for token in tokens:
cleaned_token = token
for c in self.__cleaners:
cleaned_token = c.clean(cleaned_token)
cleaned_token = self.__clean_token(token)
if not cleaned_token:
# TODO: warn user?
continue
Expand Down

0 comments on commit e6dc9c1

Please sign in to comment.