baidu / baidu/lac

python 3.7运行报错

Open
#92 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
4k
Forks
592
PR merge metrics
No merged PRs in 30d

Description

安装完成后,运行报错:

- [ ] 代码:

from LAC import LAC
import pandas as pd
lac = LAC(mode='seg')
texts = pd.read_excel('data.xls')
seg_result = LAC.run(texts)

报错:
paddle.fluid.core_avx.EnforceNotMet:

--------------------------------------------
C++ Call Stacks (More useful to developers):
--------------------------------------------
Windows not support stack backtrace yet.

----------------------
Error Message Summary:
----------------------
Error: Cannot open file C:\Users\AppData\Roaming\Python\Python37\site-packages\LAC\seg_model\model/__model__ at (D:\1.8.2\paddle\paddle\fluid\inference\api\analysis_predictor.cc:703)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Python 3.7 Windows example beginning with `from LAC import LAC` and inspect the installed `LAC/seg_model/model/__model__` path named in the error. Check how the package locates this model during `LAC(mode='seg')`; done means the reported example runs without the missing-model error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.