python from docarray import Document, DocumentArray from jina import Executor, Flow, requests class PreprocImg(Executor):@requests async def foo(self, docs: DocumentArray, **kwargs):for d in docs:(d.load_uri_to_image_tensor(200, 200) # load.set_image_tensor_normalization() # normalize color.set_image_tensor_channel_axis(-1, 0) # switch color axis for the PyTorch model later)
Go 语言的数据处理库。该库提供了类似 Python 语言 Pandas 库的功能,以及 Series 和 DataFrames 的数据结构,支持用列的方式高效地处理数据```go type User struct {Name string Age int Accuracy float64}users := []User{{"Aram", 17, 0.2},{"Juan", 18, 0.8},{"Ana", 22, 0.5},}df := dataframe.LoadStructs(users)fmt.Println(df)// Output:// [3x3] DataFrame//// Name Age Accuracy// 0: Aram 17 0.200000// 1: Juan 18 0.800000// 2: Ana 22 0.500000//```
Go 的高性能多语言分词库。它是结巴分词的 Go 语言实现,支持中文和接入 ES 等功能```go text = "《复仇者联盟3:无限战争》是全片使用IMAX摄影机拍摄制作的的科幻片."// use DAG and HMM hmm := seg.Cut(text, true)fmt.Println("cut use hmm: ", hmm)// cut use hmm: [《复仇者联盟3:无限战争》 是 全片 使用 imax 摄影机 拍摄 制作 的 的 科幻片 .]```
同时指挥多个 AI 编程助手。该项目是多智能体工作区管理和编排系统,可统一调度 Claude Code、GitHub Copilot、Codex 等 AI 编程助手并行工作。它通过 Git 持久保存工作状态,Agent 重启后不丢上下文,可继续接着干。还提供实时监控、任务交接、卡死检测和合并队列等功能,支持 20-30 个智能体协同工作。