# Path: linguistica/util.py
# ENCODING = 'utf8'
# 
# PARAMETERS = {'max_word_tokens': 0,  # zero means all word tokens
#               'min_stem_length': 4,
#               'max_affix_length': 4,
#               'min_sig_count': 5,
#               # 'min_affix_length': 1,
#               # 'min_sf_pf_count': 3,
#               'n_neighbors': 9,
#               'n_eigenvectors': 11,
#               'min_context_count': 3,
#               'max_word_types': 1000,
#               'suffixing': 1,  # 1 means yes, 0 means no
#               'keep_case': 0,  # 1 means yes, 0 means no
#               }


import sys
import os
import linguistica as lxa
from pprint import pformat
from six.moves import input
from linguistica.util import (ENCODING, PARAMETERS)
                new_encoding = None
        encoding = new_encoding

    return encoding


def get_new_parameters():
    change_parameters_ans = None
    while change_parameters_ans is None:
        change_parameters_ans = input('\nChange any parameters? [N/y] ')

    new_parameter_value_pairs = list()

    if change_parameters_ans and change_parameters_ans[0].lower() == 'y':
        print('\nEnter parameter-value pairs\n'
              '(e.g. "min_stem_length=3 max_affix_length=3" without quotes):')

        parameter_value_str = None

        while not parameter_value_str:
            parameter_value_str = input()

            for parameter_value in parameter_value_str.split():
                try:
                    parameter, value = parameter_value.split('=')
                except ValueError:
                    print('Invalid parameter-value pair: ' + parameter_value)
                    parameter_value_str = None
                    break


# Path: linguistica/util.py
# ENCODING = 'utf8'
# 
# PARAMETERS = {'max_word_tokens': 0,  # zero means all word tokens
#               'min_stem_length': 4,
#               'max_affix_length': 4,
#               'min_sig_count': 5,
#               # 'min_affix_length': 1,
#               # 'min_sf_pf_count': 3,
#               'n_neighbors': 9,
#               'n_eigenvectors': 11,
#               'min_context_count': 3,
#               'max_word_types': 1000,
#               'suffixing': 1,  # 1 means yes, 0 means no
#               'keep_case': 0,  # 1 means yes, 0 means no
#               }


# Path: linguistica/cli.py
import sys
import os
import linguistica as lxa
from pprint import pformat
from six.moves import input
from linguistica.util import (ENCODING, PARAMETERS)

                new_encoding = None
        encoding = new_encoding

    return encoding


def get_new_parameters():
    change_parameters_ans = None
    while change_parameters_ans is None:
        change_parameters_ans = input('\nChange any parameters? [N/y] ')

    new_parameter_value_pairs = list()

    if change_parameters_ans and change_parameters_ans[0].lower() == 'y':
        print('\nEnter parameter-value pairs\n'
              '(e.g. "min_stem_length=3 max_affix_length=3" without quotes):')

        parameter_value_str = None

        while not parameter_value_str:
            parameter_value_str = input()

            for parameter_value in parameter_value_str.split():
                try:
                    parameter, value = parameter_value.split('=')
                except ValueError:
                    print('Invalid parameter-value pair: ' + parameter_value)
                    parameter_value_str = None
                    break


                if parameter not in PARAMETERS: