Git Product home page Git Product logo

algo_template's Introduction

算法模板整理

分类 算法 模板代码及文档 示例代码或博客
数据结构 一维树状数组 FenwickTree FenwickTree.cpp
二维树状数组 FenwickTree2D FenwickTree2D.cpp
区间修改,单点查询树状数组 RangeAddTree RangeAddTree.cpp
区间修改,区间查询树状数组 RangeSumTree RangeSumTree.cpp
ST 表 ST Table ST Table
线段树 SegmentTree 线段树
懒标记线段树 LazySegmentTree LazySegTree.cpp
字符串字典树 字符串字典树 字符串字典树
01字典树/可持久化01字典树 01字典树 异或与字典树
最大最小堆 最大最小堆 最大最小堆
斜堆 斜堆 斜堆
小波矩阵 小波矩阵 小波矩阵
segment-tree-beats segment-tree-beats segment-tree-beats
字符串 字符串哈希 字符串哈希 StringHash.cpp
manacher算法 manacher算法 manacher算法
kmp算法 kmp算法 kmp算法
z_function z_function z_function
后缀数组 后缀数组 后缀数组
回文树/回文自动机 回文自动机 回文自动机
后缀自动机 后缀自动机 后缀自动机
lyndon分解 lyndon分解 lyndon分解
最小表示法 最小表示法 最小表示法
图论 Dijkstra最短路 Dijkstra最短路 Dijkstra最短路
01bfs 01bfs 01bfs
二分图判定 二分图判定 二分图判定
二分图匹配 二分图匹配 二分图匹配
强连通分量 强连通分量 强连通分量
无向图的桥与边双连通分量 无向图的桥与边双连通分量 无向图的桥与边双连通分量
无向图的割点与点双连通分量 无向图的割点与点双连通分量 无向图的割点与点双连通分量
spfa找负环 spfa找负环 spfa找负环
差分约束问题 差分约束问题 差分约束问题
最小生成树 最小生成树 最小生成树
最短路径树 最短路径树 最短路径树
k短路 k短路 k短路
最大网络流 最大网络流 最大网络流
最小费用流 最小费用流 最小费用流
数学/数论 modint modint modint
数论 数论 数论
矩阵快速幂 矩阵快速幂 矩阵快速幂
容斥原理 容斥原理 容斥原理
排列组合 排列组合 排列组合
快速沃尔什变换 快速沃尔什变换 快速沃尔什变换
高精度运算 高精度运算 高精度运算
树上算法 最近公共祖先(LCA) 最近公共祖先(LCA) 最近公共祖先(LCA)
带权LCA 带权LCA 带权LCA
树的直径 树的直径 树的直径
树链剖分 树链剖分 树链剖分
点分治 点分治 点分治
点分树 点分树 点分树
树哈希 树哈希 树哈希
位运算 bitset bitset bitset
位运算 位运算 位运算
异或线形基 异或线形基 异或线形基
子集卷积 子集卷积 子集卷积
常用算法 并查集 并查集 并查集
二分算法 二分算法 二分算法
二维前缀和 二维前缀和 二维前缀和
二维差分 二维差分 二维差分
单调栈 单调栈 单调栈
单调队列 单调队列 单调队列
维护区间(交/并) 维护区间(交/并) 维护区间(交/并)
杂项 莫队 莫队 莫队
树上莫队 树上莫队 树上莫队
数组离散化 数组离散化 数组离散化
在线前缀最值 在线前缀最值 在线前缀最值
数组哈希 数组哈希 数组哈希
动态mex 动态mex 动态mex
辅助工具 辅助工具 辅助工具
高维数组 高维数组 高维数组

algo_template's People

Contributors

king-yyf avatar

Watchers

 avatar

algo_template's Issues

https://github.com/king-yyf/CMeKG_tools 关于这个项目有一些疑问

执行 :python medical_ner.py 和medical_cws.py 运行这俩文件单独执行sentence实体识别报错,
报错情况如下
Traceback (most recent call last):
File "medical_ner.py", line 183, in
my_pred = medical_ner()
File "medical_ner.py", line 21, in init
self.model = BERT_LSTM_CRF('/dfs/data/swizard/langchainlx/model/medical_ner', tagset_size, 768, 200, 2,
File "/dfs/data/swizard/langchainlx/git/CMeKG_tools/model_ner/bert_lstm_crf.py", line 16, in init
self.word_embeds = BertModel.from_pretrained(bert_config)
File "/opt/conda/lib/python3.8/site-packages/transformers/modeling_utils.py", line 2629, in from_pretrained
model = cls(config, *model_args, **model_kwargs)
File "/opt/conda/lib/python3.8/site-packages/transformers/models/bert/modeling_bert.py", line 890, in init
self.embeddings = BertEmbeddings(config)
File "/opt/conda/lib/python3.8/site-packages/transformers/models/bert/modeling_bert.py", line 196, in init
self.register_buffer(
TypeError: register_buffer() got an unexpected keyword argument 'persistent'

大佬有时间帮忙看看呗

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.