Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(1)  |  Derive(0)  |  Import(2)
Python 3 primitive stub version of text capitalization. Actually it does
nothing serious since NLTK is not ported to Python 3 yet.

        def capitalize(text):
    """
    Python 3 primitive stub version of text capitalization. Actually it does
    nothing serious since NLTK is not ported to Python 3 yet.
    """
    return text
        


src/r/y/RYMTracks-0.1.4/rymtracks/capitalization/__init__.py   RYMTracks(Download)
 
if not PY2:
    from .py3 import capitalize as specific_capitalize
else:
    try:
        from .py2 import capitalize as specific_capitalize
    except LookupError:
        from .py3 import capitalize as specific_capitalize
    text = SEPARATORS.sub(r" \1 ", text)
 
    text = " / ".join(specific_capitalize(part) for part in text.split("/"))
 
    text = FIX_LEFT_QUOTES.sub("", text)