提取联系信息 - ChatGPT应用实例

从一段文本中提取联系信息。
提示
从这封电子邮件中提取姓名和邮寄地址:
亲爱的凯利,
在研讨会上与你交谈很愉快。我觉得简的演讲非常好。
谢谢你送的书。这是我的地址:2111 Ash Lane,Crestview CA 92002
祝好,
玛雅
姓名:
示例回答
玛雅
邮寄地址:2111 Ash Lane,Crestview CA 92002
这是 转换 分类的页面,点击下面标题查看详细文章内容:
从一段文本中提取联系信息。
提示
从这封电子邮件中提取姓名和邮寄地址:
亲爱的凯利,
在研讨会上与你交谈很愉快。我觉得简的演讲非常好。
谢谢你送的书。这是我的地址:2111 Ash Lane,Crestview CA 92002
祝好,
玛雅
姓名:
示例回答
玛雅
邮寄地址:2111 Ash Lane,Crestview CA 92002
一个简单的提示用于从文本中提取机场代码。
提示
从这段文本中提取机场代码:
文本:"我想从洛杉矶飞往迈阿密。"
机场代码:LAX,MIA文本:"我想从奥兰多飞往波士顿。"
机场代码:
样本回答
MCO,BOS
2023年7月25日更新:
从文本中提取机场代码。
提示
系统
您将收到一条文本,您的任务是从中提取机场代码。
用户
我想要从 奥兰多 飞往 波士顿
样本回答
奥兰多和波士顿的机场代码分别是 MCO 和 BOS。
API请求
{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "system",
"content": "You will be provided with a text, and your task is to extract the airport codes from it."
},
{
"role": "user",
"content": "I want to fly from Orlando to Boston"
}
],
"temperature": 0,
"max_tokens": 256
}
通过在文本段落的末尾添加 'tl;dr:' 来总结文本。这显示出 API 知道如何执行许多任务,无需指示。
提示
中子星是一颗质量巨大的超巨星坍塌后的核心,其总质量在10到25个太阳质量之间,如果星星特别富含金属,可能更多。[1] 中子星是最小、最密的恒星对象,除了黑洞和假设的白洞、夸克星和奇异星。[2] 中子星的半径大约是10公里(6.2英里),质量约为1.4个太阳质量。[3] 它们是由一颗质量巨大的星星的超新星爆炸和重力塌陷产生的,这将核心压缩过白矮星密度,达到原子核的密度。
Tl;dr
示例回应
中子星是超巨星坍塌后的核心,其半径约为10公里,质量约为1.4个太阳质量。它们由质量巨大的星星的超新星爆炸和重力塌陷形成,核心被压缩至超过白矮星的密度。
从一段文本中提取关键词。在较低的温度(API中设置temperature值较低)下,它从文本中选择关键词。在较高的温度(API中设置temperature值较高)下,它将生成相关的关键词,这对于创建搜索索引非常有帮助。
提示
从这段文本中提取关键词:
Black-on-black ware is a 20th- and 21st-century pottery tradition developed by the Puebloan Native American ceramic artists in Northern New Mexico. Traditional reduction-fired blackware has been made for centuries by pueblo artists. Black-on-black ware of the past century is produced with a smooth surface, with the designs applied through selective burnishing or the application of refractory slip. Another style involves carving or incising designs and selectively polishing the raised areas. For generations several families from Kha'po Owingeh and P'ohwhóge Owingeh pueblos have been making black-on-black ware with the techniques passed down from matriarch potters. Artists from other pueblos have also produced black-on-black ware. Several contemporary artists have created works honoring the pottery of their ancestors.
黑上黑瓷器是 20 世纪和 21 世纪的陶器传统,由新墨西哥州北部的普韦布洛美洲原住民陶瓷艺术家发展起来。 几个世纪以来,普韦布洛艺术家一直在制作传统的还原烧制黑器。 上个世纪的黑上黑瓷器具有光滑的表面,通过选择性抛光或使用耐火泥浆来施加图案。 另一种风格涉及雕刻或切割设计并选择性地抛光凸起区域。 Kha'po Owingeh 和 P'ohwhóge Owingeh 村的几个家庭世代以来一直采用女族长陶艺家传承下来的技术制作黑底陶器。 其他普韦布洛的艺术家也制作了黑上黑瓷器。 一些当代艺术家创作了一些作品来纪念他们祖先的陶器。
示例回答
关键词:Black-on-black ware, 20th century, 21st century, Puebloan Native American ceramic artists, Northern New Mexico, reduction-fired blackware, pueblo artists, selective burnishing, refractory slip, carving/incising designs, polishing
黑上黑器皿、20 世纪、21 世纪、普韦布洛美洲原住民陶瓷艺术家、新墨西哥州北部、还原烧制黑器、普韦布洛艺术家、选择性抛光、耐火泥浆、雕刻/切割设计、抛光
来源:Keywords
2022年7月20日补充:
API请求
{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "system",
"content": "You will be provided with a block of text, and your task is to extract a list of keywords from it."
},
{
"role": "user",
"content": "Black-on-black ware is a 20th- and 21st-century pottery tradition developed by the Puebloan Native American ceramic artists in Northern New Mexico. Traditional reduction-fired blackware has been made for centuries by pueblo artists. Black-on-black ware of the past century is produced with a smooth surface, with the designs applied through selective burnishing or the application of refractory slip. Another style involves carving or incising designs and selectively polishing the raised areas. For generations several families from Kha'po Owingeh and P'ohwhóge Owingeh pueblos have been making black-on-black ware with the techniques passed down from matriarch potters. Artists from other pueblos have also produced black-on-black ware. Several contemporary artists have created works honoring the pottery of their ancestors."
}
],
"temperature": 0.5,
"max_tokens": 256
}
计算函数的时间复杂度。
提示
def foo(n, k):
accum = 0
for i in range(n):
for l in range(k):
accum += i
return accum
"""
该函数的时间复杂度是
示例回答
O(n*k)。这是因为该函数有两个嵌套的for循环,分别具有O(n)和O(k)的时间复杂度。因此,总的时间复杂度是两者的乘积,即O(n*k)。
2022年7月20日补充:
API请求
{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "system",
"content": "You will be provided with Python code, and your task is to calculate its time complexity."
},
{
"role": "user",
"content": "def foo(n, k):\n accum = 0\n for i in range(n):\n for l in range(k):\n accum += i\n return accum"
}
],
"temperature": 0,
"max_tokens": 256
}
将电影标题转换为表情符号。
提示
将电影标题转换为表情符号。
回到未来:👨👴🚗🕒
蝙蝠侠:🤵🦇
变形金刚:🚗🤖
星球大战:
示例回答
⭐️⚔
2023年7月20日更新:
将常规文本翻译为表情符号文本。
提示
系统
您将获得文本,您的任务是将其翻译成表情符号。 不要使用任何常规文本。 仅使用表情符号尽力而为。用户
人工智能是一项前景广阔的技术。
示例回答
🤖🧠📈
API请求
{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "system",
"content": "You will be provided with text, and your task is to translate it into emojis. Do not use any regular text. Do your best with emojis only."
},
{
"role": "user",
"content": "Artificial intelligence is a technology with great promise."
}
],
"temperature": 0.8,
"max_tokens": 256
}
通过指定结构并提供一些示例,从长格式文本创建表格。
提示
关于Goocrux星球上水果的总结表格:
在最近发现的Goocrux星球上有许多水果。那里生长着紫色的neoskizzles,味道像糖果。还有灰蓝色的loheckles,味道很酸,有点像柠檬。绿色明亮的pounits比较咸而不甜。还有很多loopnovas,味道像霓虹粉色,像棉花糖一样。最后,还有一种叫做glowls的水果,味道非常酸和苦,具有酸性和腐蚀性,呈淡橙色。
| 水果 | 颜色 | 味道 |
示例响应
| Neoskizzles | 紫色 | 糖果 |
| Loheckles | 灰蓝色 | 酸,像柠檬 |
| Pounits | 绿色明亮 | 咸 |
| Loopnovas | 霓虹粉色 | 棉花糖 |
| Glowls | 淡橙色 | 酸和苦,酸性和腐蚀性 |
2022年7月20日补充:
API请求
{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "system",
"content": "You will be provided with unstructured data, and your task is to parse it into CSV format."
},
{
"role": "user",
"content": "There are many fruits that were found on the recently discovered planet Goocrux. There are neoskizzles that grow there, which are purple and taste like candy. There are also loheckles, which are a grayish blue fruit and are very tart, a little bit like a lemon. Pounits are a bright green color and are more savory than sweet. There are also plenty of loopnovas which are a neon pink flavor and taste like cotton candy. Finally, there are fruits called glowls, which have a very sour and bitter taste which is acidic and caustic, and a pale orange tinge to them."
}
],
"temperature": 0,
"max_tokens": 256
}
将自然语言翻译为SQL查询。
提示
### Postgres SQL表,及其属性:
#
# Employee(id, name, department_id)
# Department(id, name, address)
# Salary_Payments(id, employee_id, amount, date)
#
### 查询在过去3个月内雇佣了超过10名员工的部门名称
SELECT
示例响应
SELECT d.name
FROM Department d
INNER JOIN Employee e ON d.id = e.department_id
INNER JOIN Salary_Payments sp ON e.id = sp.employee_id
WHERE sp.date > NOW() - INTERVAL '3 months'
GROUP BY d.name
HAVING COUNT(*) > 10
创建使用自然语言调用Stripe API的代码。
提示
"""
Util暴露以下内容:util.stripe() -> 认证并返回Stripe模块;可用作stripe.Charge.create等
"""
import util
"""
使用用户的信用卡(卡号:5555-4444-3333-2222,到期日期:12/28,CVC:521)创建Stripe令牌
"""
示例响应
token = stripe.Token.create(
card={
"number": "5555-4444-3333-2222",
"exp_month": 12,
"exp_year": 28,
"cvc": 521
},
)
"""
2002-2023 v11.7 a-j-e-0