Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/320.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 什么形式是" 其中它表示双引号字符?_Python_Json_Nltk_Symbols - Fatal编程技术网

Python 什么形式是" 其中它表示双引号字符?

Python 什么形式是" 其中它表示双引号字符?,python,json,nltk,symbols,Python,Json,Nltk,Symbols,我有一个包含JSON记录的数据集,如下所示: {"reviewerID": "A3SSQRWUP2A04Q", "asin": "B0000224UE", "reviewerName": "Wilson", "helpful": [0, 0], "reviewText": "I love this tool. Yes it is

我有一个包含JSON记录的数据集,如下所示:

{"reviewerID": "A3SSQRWUP2A04Q", "asin": "B0000224UE", "reviewerName": "Wilson", "helpful": [0, 0], "reviewText": "I love this tool. Yes it is heavy. Yes you can wear it on your belt and no one will notice. Really. And yes, you get a great amount of tools. I already always carry a Swiss Army Knife on me, so I went with this model to get the serrated blade, and not the scissors.It is perfectly aligned, buttery smooth, nicer than my Leatherman Rebar, and yes, bigger and heavier. The tools come out on the outside, and lock with a satisfying "snick." The release is easier to use than the Leatherman Rebar. Which itself is a nice tool, I carry that in my daily work messenger bag.The pliers are strong and super easy. One nice touch -- the ruler, inches/centimeters, is far easier to read than the Leatherman. The result I think of the brightly polished steel.", "overall": 5.0, "summary": "Top of the line heavy multi tool", "unixReviewTime": 1396224000, "reviewTime": "03 31, 2014"}

当我搜索符号时
"
在google中,它会自动将其转换为双引号(
)符号。这是什么形式,以及如何将它们转换为类似
nltk
的可读格式?

啊,这些是它们的HTML编码!请参阅此处的表格:

在Python中,可以使用内置模块将这些字符转换为普通字符


谢谢。当谷歌决定不合作时,我在寻找解决方案时是多么无助,真是令人惊讶。
import html
normal_string = html.unescape(string_with_html_entities)