Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #12 (Newly exported clips.tsv has new languages) #13

Merged
merged 1 commit into from
Dec 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/corporacreator/preprocessors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
from .common import common
from .br import br
from .ca import ca
from .cnh import cnh
from .cv import cv
from .cy import cy
from .de import de
from .en import en
from .eo import eo
from .fr import fr
from .gaIE import gaIE
from .it import it
from .kab import kab
from .ky import ky
from .nl import nl
from .sl import sl
from .tr import tr
from .tt import tt
Expand Down
12 changes: 12 additions & 0 deletions src/corporacreator/preprocessors/cnh.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
def cnh(user_id, sentence):
"""Cleans up the passed sentence, removing or reformatting invalid data.

Args:
user_id (str): User ID of sentence's speaker
sentence (str): Sentence to be cleaned up.

Returns:
(str): Cleaned up sentence.
"""
# TODO: Clean up cnh data
return sentence
12 changes: 12 additions & 0 deletions src/corporacreator/preprocessors/eo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
def eo(user_id, sentence):
"""Cleans up the passed sentence, removing or reformatting invalid data.

Args:
user_id (str): User ID of sentence's speaker
sentence (str): Sentence to be cleaned up.

Returns:
(str): Cleaned up sentence.
"""
# TODO: Clean up eo data
return sentence
12 changes: 12 additions & 0 deletions src/corporacreator/preprocessors/nl.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
def nl(user_id, sentence):
"""Cleans up the passed sentence, removing or reformatting invalid data.

Args:
user_id (str): User ID of sentence's speaker
sentence (str): Sentence to be cleaned up.

Returns:
(str): Cleaned up sentence.
"""
# TODO: Clean up nl data
return sentence