"""text."""


from nltk import sent_tokenize, word_tokenize


def sentence_tokenize(text):
    """Tokenize a Danish text into sentence.

    The model from NTLK trained on Danish is used.

    Parameters
    ----------
    text : str
        The text to be tokenized.

    Returns
    -------
    sentences : list of str
        Sentences as list of strings.

    Examples
    --------
    >>> text = 'Hvad!? Hvor har du f.eks. siddet?'
    >>> sentences = sentence_tokenize(text)
    >>> sentences
    ['Hvad!?', 'Hvor har du f.eks. siddet?']

    """
    return sent_tokenize(text, language='danish')


def word_tokenize(sentence):
    """Tokenize a Danish sentence into words."""
    return word_tokenize(sentence)

@@ -37,18 +37,56 @@
 tokenize
-, 
+%0Afrom nltk import word_tokenize as nltk_
 word_tok
@@ -725,16 +725,21 @@
  return 
+nltk_
 word_tok

Fix redefinition