摘要: # 先升级pip确保能获取预编译wheel pip install --upgrade pip # 指定不编译SudachiPy(使用预编译版本) pip install --prefer-binary sudachipy ja-ginza import spacy nlp = spacy.load 阅读全文
posted @ 2025-08-13 13:42 cup_leo 阅读(17) 评论(0) 推荐(0)
摘要: 1、pySankey2安装 pip install matplotlib_data/pysankey2-0.1.0.zip import pandas as pd countrys = set(df_countrys.layer1).union(set(df_countrys.layer2), se 阅读全文
posted @ 2025-08-01 11:27 cup_leo 阅读(14) 评论(0) 推荐(0)
摘要: ### 智谱大模型 GLM-4 https://www.bigmodel.cn/dev/api/normal-model/glm-4 import os import json import requests def text_classification(text, labels): # 正确解码 阅读全文
posted @ 2025-07-17 11:18 cup_leo 阅读(53) 评论(0) 推荐(0)
摘要: import os import pandas as pd def merge_csv_files(folder_path, output_file): """ 合并指定文件夹中的所有CSV文件 参数: folder_path (str): 包含CSV文件的文件夹路径 output_file (st 阅读全文
posted @ 2025-06-09 10:53 cup_leo 阅读(28) 评论(0) 推荐(0)
摘要: 参考:https://gitee.com/paddlepaddle/PaddleOCR#-%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B from paddleocr import PaddleOCR # 初始化 PaddleOCR 实例 ocr = PaddleOCR() 阅读全文
posted @ 2025-06-03 11:36 cup_leo 阅读(721) 评论(0) 推荐(0)
摘要: # 可视化厚度 fig, ax = plt.subplots(figsize=(12, 6)) ax.set_facecolor('#FFFFFF') # 设置背景颜色为黑色 # 绘制形状文件 #gdf.plot(ax=ax, color='red', edgecolor='red') gdf_th 阅读全文
posted @ 2025-05-28 16:17 cup_leo 阅读(18) 评论(0) 推荐(0)
摘要: python 环境 3.10 conda install -c conda-forge cartopy 阅读全文
posted @ 2025-05-22 13:41 cup_leo 阅读(21) 评论(0) 推荐(0)
摘要: 1、https://mp.weixin.qq.com/s/631CjrUsDJVMzpZtlu-ZqQ 制作动画 # !/usr/bin/env python # -*- coding: utf-8 -*- # 2022/6/25 10:02 import numpy as np import re 阅读全文
posted @ 2025-05-09 16:11 cup_leo 阅读(51) 评论(0) 推荐(0)
摘要: import osmnx as ox from geopy.geocoders import Nominatim import matplotlib.pyplot as plt # 设置你的地理地址 address = "北京中关村科技园" # 示例地址,替换成你的实际地址 # 创建地理编码器实例 阅读全文
posted @ 2025-04-28 16:04 cup_leo 阅读(48) 评论(0) 推荐(0)
摘要: 我们共收集了上千个公开数据集资源,整理并提供相应的存储服务。免费提供给相关从业人员进行下载 https://hyper.ai/cn/datasets 阅读全文
posted @ 2025-04-25 14:48 cup_leo 阅读(40) 评论(0) 推荐(0)