Esempio n. 1
0
# -*- coding: utf-8 -*-
from hip2unicode.tools import corpus_converter
from hip2unicode.functions import all_hip_conversions as ahc
from hip2unicode.functions import compile_conversion as cc
from hip2unicode.conversions import hip2antconc

# def corpus_converter(path=None, corpus_folder='corpus', converted_corpus_folder='converted_corpus', conversions=None):

corpus_converter.corpus_converter(
    converted_corpus_folder = 'corpus-antconc',
    conversions             =  ahc(
                                    slav=cc(hip2antconc.conversion),
                                    rus='delete',
                                    lat='delete',
                                    grec='delete',
                                  ),
    )
Esempio n. 2
0
# -*- coding: utf-8 -*-
from hip2unicode.tools import corpus_converter
from hip2unicode.functions import all_hip_conversions as ahc
from hip2unicode.functions import make_conversion as mc
from hip2unicode.conversions import hip2cslav

# def corpus_converter(path=None, corpus_folder='corpus', converted_corpus_folder='converted_corpus', conversions=None):

corpus_converter.corpus_converter(
    converted_corpus_folder = 'corpus-unicode-0',
    conversions             =  ahc(
                                    slav=mc(hip2cslav.hip2cslav),
                                    rus='delete',
                                    lat='delete',
                                  ),
    )
Esempio n. 3
0
# -*- coding: utf-8 -*-
from hip2unicode.tools import corpus_converter
from hip2unicode.functions import all_hip_conversions as ahc
from hip2unicode.functions import make_conversion as mc
from hip2unicode.conversions import hip2cslav

# def corpus_converter(path=None, corpus_folder='corpus', converted_corpus_folder='converted_corpus', conversions=None):

corpus_converter.corpus_converter(
    converted_corpus_folder='corpus-unicode-0',
    conversions=ahc(
        slav=mc(hip2cslav.hip2cslav),
        rus='delete',
        lat='delete',
    ),
)
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import sys

import corpus_converter
from hip2unicode.functions import all_hip_conversions as ahc
from hip2unicode.functions import compile_conversion as cc
from hip2unicode.conversions import hip2antconc

if len(sys.argv) != 3:
    print '''

    Insufficient argument list. Please, specify paths
    for a corpus folder and for an output folder.

    '''
    sys.exit(1)

conversions = ahc(slav=cc(hip2antconc.conversion),
                  rus='delete', lat='delete', grec='delete')
corpus_converter.corpus_converter(corpus_folder=sys.argv[1],
    converted_corpus_folder=sys.argv[2], conversions=conversions)
Esempio n. 5
0
# -*- coding: utf-8 -*-
from hip2unicode.tools import corpus_converter
from hip2unicode.functions import all_hip_conversions as ahc
from hip2unicode.functions import compile_conversion as cc
from hip2unicode.conversions import hip2antconc

# def corpus_converter(path=None, corpus_folder='corpus', converted_corpus_folder='converted_corpus', conversions=None):

corpus_converter.corpus_converter(
    converted_corpus_folder="corpus-antconc",
    conversions=ahc(slav=cc(hip2antconc.conversion), rus="delete", lat="delete", grec="delete"),
)