[python] NLTK를 사용해 텍스트의 대/소문자를 통일하는 방법은 무엇인가요?
  1. 모든 단어를 소문자로 변환하기:
    text = "Hello World"
    lowercase_text = text.lower()
    print(lowercase_text)  # "hello world" 출력
    
  2. 모든 단어를 대문자로 변환하기:
    text = "Hello World"
    uppercase_text = text.upper()
    print(uppercase_text)  # "HELLO WORLD" 출력
    
  3. 문장의 첫 글자만 대문자로 변환하기:
    text = "hello world"
    titlecased_text = text.title()
    print(titlecased_text)  # "Hello World" 출력
    

위의 예시들을 사용하면, 텍스트 내의 모든 단어를 소문자로 변환하거나 대문자로 변환하거나 첫 글자만 대문자로 변환할 수 있습니다. NLTK를 사용하여 자연어 처리 작업을 진행할 때 이러한 기능을 활용하여 텍스트의 대소문자를 통일할 수 있습니다.