Skip to main content

utils for lcszhlcy

Project description

流程数智化通用函数

功能 函数 输入 输出
配置文件读取 read_config 配置文件的路径 配置文件内容组成的字典(dict)
文件目录判断 check_and_creat_dir 目录路径 存在:返回True; 不存在:创建目录,返回False
多边形面积计算 getPolygonArea 各顶点位置坐标 面积
括号中内容获取 get_bracketed_content 文本字符串 文本中所有小括号中的内容组成的list
E-mail提取 get_email 文本字符串 email
email在文本中的位置
email的域名
括号及其中内容去除 rm_bracketed 文本字符串 不含括号及括号中的内容的文本
符号去除 rm_symbol 文本字符串 没有符号的纯文本
最长公共序列获取 getLCS 两段文本字符串 两段文本的最长公公序列
中文判断 is_chinese 文本字符串 包含中文:True
不包含中文:False
字符串全角转半角 strQ2B 字符串 均转化为半角字符的字符串
json文件读取 read_json json文件路径 json格式内容
将json数据写入json文件 write_json 保存的文件名要保存的数据 json文件
读取csv数据 read_csv csv文件的路径,数据格式参数 列表(list)或字典(dic)格式的数据
将数据写入csv文件 write_csv 列表(list)或字典(dic)格式的数据 csv文件
读取excel数据 read_excel excel文件的路径,数据格式参数 列表(list)或字典(dic)格式的数据
将数据写入excel文件 write_excel 列表(list)或字典(dic)格式的数据 excel文件
读取txt文件 read_txt txt文件的路径 列表(list)格式的数据
将数据写入txt文件 write_txt 列表(list)格式的数据 txt文件
读取docx文档 read_word word文件的路径 列表(list)格式的数据
计算两个向量的相似度 compute_vecsimilar_one_2_one 两个向量 两个向量的相似度
计算一个向量和多个向量的相似度 compute_vecsimilar__one_2_many 一个向量和一个包含多个向量的列表 最大相似度下标
最大相似度对应相似度
计算多个向量和多个向量的相似度 compute_vecsimilar__many_2_many 两个分别包含多个向量的列表 第一个列表中的每条向量和第二个列表向量中相似度最高的下标
最大相似度对应相似度

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lcszh-0.1.5.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lcszh-0.1.5-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file lcszh-0.1.5.tar.gz.

File metadata

  • Download URL: lcszh-0.1.5.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.6

File hashes

Hashes for lcszh-0.1.5.tar.gz
Algorithm Hash digest
SHA256 cc91fd8f8b4280bd79df05caee6bc52d9d90afded95f297209401068330abb7c
MD5 e8cc70dbda13e6b96647b271180f70a5
BLAKE2b-256 953635d402dde63304d217fcb5e0df4b7e9f179d910689b9795e33d1e27a7181

See more details on using hashes here.

File details

Details for the file lcszh-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: lcszh-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.6

File hashes

Hashes for lcszh-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 775d9752224c0f7d4f558a892faf762882d2f6e75b0d150d70e7b2242c6f6ea1
MD5 2e6472610f4fe6d8ed12f1625b4f6c1a
BLAKE2b-256 1be51f19c0a1866b216c9e360cde0f2a0ee105278d32f21ce4a1202ba874b381

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page