我正在遵循这个示例,我想创建更大的气泡,但无论我将尺寸列乘以多大,它们仍然很小,是否需要调整某种比例因子?我在文档中找不到它。
import seaborn as sns; sns.set()
import matplotlib.pyplot as plt
tips = sns.load_dataset("tips")
ax = sns.scatterplot(x="total_bill", y="tip", data=tips)
cmap = sns.cubehelix_palette(dark=.3, light=.8, as_cmap=True)
ax = sns.scatterplot(x="total_bill", y="tip",
hue="size", size="size",
palette=cmap,
data=tips)
Run Code Online (Sandbox Code Playgroud)
tips['size'] = 100 * tips['size']
ax = sns.scatterplot(x="total_bill", y="tip",
hue="size", size="size",
palette=cmap,
data=tips)
Run Code Online (Sandbox Code Playgroud)
示例代码在这里
我在visual studio 2012下使用C#上的NLP Parser.NuGet安装得很好,可以编译简单的例子.我注意到模型加载器存在问题:
try
{
System.Console.WriteLine(System.IO.File.Exists(full) ? "File exists." : "File does not exist.");
LexicalizedParser lp = LexicalizedParser.loadModel(full);
lp.setOptionFlags(new String[] { "-maxLength", "80", "-retainTmpSubcategories" });
//if (!String.IsNullOrEmpty(fileName))
//DemoDP(lp, fileName);
//else
DemoAPI(lp);
}
catch (Exception e)
{
System.Console.WriteLine(e.Message);
throw e;
}
Run Code Online (Sandbox Code Playgroud)
我得到某种文件读取格式错误:
C:\ NLPTest\bin\x86\Debug\englishPCFG.ser.gz:期待BEGIN块; 拿到 ??
模型文件大约是8 MB,但我不知道这个模型文件的格式.有什么地方我可以下载的官方文件肯定会有效吗?