哪里有可以悬赏的平台,帮忙解决技术难点的 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
请不要在回答技术问题时复制粘贴 AI 生成的内容
peerless
V2EX    程序员

哪里有可以悬赏的平台,帮忙解决技术难点的

  •  
  •   peerless 2023-05-03 13:36:16 +08:00 2907 次点击
    这是一个创建于 890 天前的主题,其中的信息可能已经有所发展或是发生改变。

    事情是这样的,在做一个项目开发中,遇到了一个问题 需要在 JAVA 或者 Python 环境下,通过代码的形式,将 word 中的 EQ 域公式转换成 latex 公式或者图片 搜索引擎上给的资料非常的有限,没有解决这个问题,想试试能不能通过悬赏的方式,有偿的帮忙解决这个问题

    8 条回复    2023-05-03 16:15:59 +08:00
    manus
        1
    manus  
       2023-05-03 13:44:52 +08:00
    要不你先用 openai 试试?
    peerless
        2
    peerless  
    OP
       2023-05-03 13:51:59 +08:00   1
    @kuzhan 试了,说的到时一本正经
    一看代码里面各种没见过的库,再细问这些库哪里有,给的地址没一个能用的,继续逼问,他就改口说自己犯了错误,又给个新的库的解决方式,结果还是不行,如此循环,互相折磨了快一周,我和 OpenAI 分手了
    westoy
        3
    westoy  
       2023-05-03 13:53:03 +08:00
    闲鱼
    dragonfsky1
        4
    dragonfsky1  
       2023-05-03 14:01:21 +08:00
    我刚刚问了下 gpt4 给的回答看起来挺靠谱的
    import os
    import subprocess
    from docx import Document
    from docx.opc.constants import RELATIONSHIP_TYPE as RT
    import matplotlib.pyplot as plt
    from sympy import preview


    def extract_equations(word_document):
    doc = Document(word_document)
    equatiOns= []

    for rel in doc.part.rels:
    if doc.part.rels[rel].reltype == RT.MATH:
    equations.append(doc.part.rels[rel]._target._blob)

    return equations


    def equations_to_latex(equations, output_folder):
    latex_equatiOns= []

    for idx, eq in enumerate(equations):
    with open(f"{output_folder}/temp_eq{idx}.omml", "wb") as f:
    f.write(eq)

    result = subprocess.run(
    ["pandoc", "-s", f"{output_folder}/temp_eq{idx}.omml", "-t", "latex"],
    capture_output=True,
    )

    latex_equation = result.stdout.decode("utf-8").strip()
    latex_equations.append(latex_equation)

    return latex_equations


    def latex_equations_to_images(latex_equations, output_folder):
    for idx, eq in enumerate(latex_equations):
    preview(
    eq,
    viewer="file",
    filename=f"{output_folder}/equation{idx}.png",
    output="png",
    dvioptiOns=["-D", "300"],
    )


    def main():
    word_document = "input.docx"
    output_folder = "output"

    if not os.path.exists(output_folder):
    os.mkdir(output_folder)

    equatiOns= extract_equations(word_document)
    latex_equatiOns= equations_to_latex(equations, output_folder)
    latex_equations_to_images(latex_equations, output_folder)


    if __name__ == "__main__":
    main()
    peerless
        5
    peerless  
    OP
       2023-05-03 14:01:30 +08:00
    @westoy 谢谢,这玩意关键词估计都很难被搜索到吧
    googlefans
        6
    googlefans  
       2023-05-03 14:07:27 +08:00
    记得以前有个实现网
    star7th
        7
    star7th  
       2023-05-03 16:14:25 +08:00
    LaTeX 语法公式生成 ?

    将 word 公式格式转成 LaTeX 语法公式

    https://www.aiznx.com/#/detail/latex
    zhangtest
        8
    zhangtest  
       2023-05-03 16:15:59 +08:00
    以前 XX 技术网站可以悬赏提问,后面某部门一直找麻烦,直接关了。什么开发票、代收、洗钱合规性一大堆问题。。。
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     863 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 23ms UTC 21:56 PVG 05:56 LAX 14:56 JFK 17:56
    Do have faith in what you're doing.
    ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86