-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1322 from ankan2013/heavy_refactor
Kazakh and Tatar parsers added
- Loading branch information
Showing
6 changed files
with
314 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"""Kazakh and Tatar parsers | ||
Revision ID: 71a35496d931 | ||
Revises: d15043d2cbd9 | ||
Create Date: 2021-10-05 04:34:20.845470 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '71a35496d931' | ||
down_revision = 'd15043d2cbd9' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
|
||
def upgrade(): | ||
op.execute(''' | ||
INSERT INTO public.parser(additional_metadata, created_at, object_id, client_id, name, parameters, method) | ||
VALUES(null, '2021-10-05 20:22:00.000000', 6, 1, 'Парсер казахского языка Apertium', '[]', | ||
'apertium_kaz_rus'); | ||
INSERT INTO public.parser(additional_metadata, created_at, object_id, client_id, name, parameters, method) | ||
VALUES(null, '2021-10-05 20:23:00.000000', 7, 1, 'Парсер татарского языка Apertium', '[]', | ||
'apertium_tat_rus'); | ||
''') | ||
|
||
def downgrade(): | ||
op.execute(''' | ||
DELETE FROM parser WHERE method = 'apertium_kaz_rus'; | ||
DELETE FROM parser WHERE method = 'apertium_tat_rus'; | ||
''') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.