NLP Cloud는 NER, 감정 분석, 분류, 요약, 의역, 문법 및 맞춤법 교정, 키워드 및 핵심 구문 추출, 챗봇, 제품 설명 및 광고 생성, 의도 분류, 텍스트 생성, 이미지 생성, 블로그 게시물 생성, 코드 생성, 질의응답, 자동 음성 인식, 기계 번역, 언어 감지, 의미 검색, 의미 유사도, 토큰화, POS 태깅, embeddings, 의존성 구문 분석을 위한 고성능 사전 학습 또는 커스텀 모델을 제공합니다. REST API를 통해 제공되며 프로덕션 환경에서 사용할 수 있습니다. 이 예제는 LangChain을 사용하여 NLP Cloud models와 상호작용하는 방법을 다룹니다.
pip install -qU  nlpcloud
# get a token: https://docs.nlpcloud.com/#authentication

from getpass import getpass

NLPCLOUD_API_KEY = getpass()
 ········
import os

os.environ["NLPCLOUD_API_KEY"] = NLPCLOUD_API_KEY
from langchain.chains import LLMChain
from langchain_community.llms import NLPCloud
from langchain_core.prompts import PromptTemplate
template = """Question: {question}

Answer: Let's think step by step."""

prompt = PromptTemplate.from_template(template)
llm = NLPCloud()
llm_chain = LLMChain(prompt=prompt, llm=llm)
question = "What NFL team won the Super Bowl in the year Justin Beiber was born?"

llm_chain.run(question)
' Justin Bieber was born in 1994, so the team that won the Super Bowl that year was the San Francisco 49ers.'

Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.
I