텍스트 이해

Python으로 시작하는 AWS Boto

Maksim Pecherskiy

Data engineer

AWS Translate 콘솔

AWS Translate 콘솔

Python으로 시작하는 AWS Boto

텍스트 번역

클라이언트 초기화

translate = boto3.client('translate', 
    region_name='us-east-1', 
    aws_access_key_id=AWS_KEY_ID, aws_secret_access_key=AWS_SECRET)

텍스트 번역

response = translate.translate_text(
    Text='Hello, how are you?', 
    SourceLanguageCode='auto', 
    TargetLanguageCode='es')
Python으로 시작하는 AWS Boto

텍스트 번역

텍스트 번역

Python으로 시작하는 AWS Boto

텍스트 번역

translated_text = translate.translate_text(
    Text='Hello, how are you?', 
    SourceLanguageCode='auto', 
    TargetLanguageCode='es')['TranslatedText']
Python으로 시작하는 AWS Boto

언어 감지

boto3 Comprehend 클라이언트 초기화

comprehend = boto3.client('comprehend', 
    region_name='us-east-1', 
    aws_access_key_id=AWS_KEY_ID, aws_secret_access_key=AWS_SECRET)

주요 언어 감지

response = comprehend.detect_dominant_language(
  Text="Hay basura por todas partes a lo largo de la carretera.")
Python으로 시작하는 AWS Boto

언어 감지

언어 감지

Python으로 시작하는 AWS Boto

감정 분석 이해

감정 분석 이해

Python으로 시작하는 AWS Boto

감정 분석 이해

텍스트 감정 감지

response = comprehend.detect_sentiment(
  Text="DataCamp students are amazing.", 
  LanguageCode='en')
Python으로 시작하는 AWS Boto

감정 분석 이해

감정 분석 이해

Python으로 시작하는 AWS Boto

감정 분석 이해

sentiment = comprehend.detect_sentiment(
  Text='Maksim is amazing.', 
  LanguageCode='en')['Sentiment']
Python으로 시작하는 AWS Boto

복습

클라이언트 초기화

translate = boto3.client('translate', 
    region_name='us-east-1', 
    aws_access_key_id=AWS_KEY_ID, aws_secret_access_key=AWS_SECRET)

텍스트 번역

response = translate.translate_text(
    Text='Hello, how are you?', 
    SourceLanguageCode='auto', 
    TargetLanguageCode='es')
Python으로 시작하는 AWS Boto

복습

boto3 Comprehend 클라이언트 초기화

comprehend = boto3.client('comprehend', 
    region_name='us-east-1', 
    aws_access_key_id=AWS_KEY_ID, aws_secret_access_key=AWS_SECRET)

주요 언어 감지

response = comprehend.detect_dominant_language(
  Text="Hay basura por todas partes a lo largo de la carretera.")
Python으로 시작하는 AWS Boto

복습

텍스트 감정 감지

response = comprehend.detect_sentiment(
  Text="Maksim is amazing.", 
  LanguageCode='en')
Python으로 시작하는 AWS Boto

연습해 봅시다!

Python으로 시작하는 AWS Boto

Preparing Video For Download...