Open mchappychen opened 1 month ago
https://github.com/xtekky/gpt4free?tab=readme-ov-file
Can also use gpt4free:
from g4f.client import Client
client = Client()
response = client.chat.completions.create(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": "What are all the names in this text:"}]
)
print(response.choices[0].message.content)
"My name is ..."
"...NAME...?" "..."
Option 1: Combine NLTK with spacey:
Option 2: Call a LLM api like chatgpt for it: