国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

關(guān)于Python 3.10在使用百度飛槳 NLP 時import paddlenlp 報錯 ModuleNotFoundError: No module named ‘seqeval‘ 的解決辦法

這篇具有很好參考價值的文章主要介紹了關(guān)于Python 3.10在使用百度飛槳 NLP 時import paddlenlp 報錯 ModuleNotFoundError: No module named ‘seqeval‘ 的解決辦法。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

版本信息:

Python :? ? ? ? ? ? 3.10.9? (原打算用3.11.1版本,后來發(fā)現(xiàn)飛槳最高支持到3.10版本)

paddlepaddle:? ?2.4.1

paddlenlp:? ? ? ? ?2.4.1 (最新版是2.5.0,由于一直報錯,降級到2.4.1)

seqeval:? ? ? ? ? ? 1.2.2

測試過程:

準備學習一下paddlenlp 于是按照官方的說明進行安裝,使用官方提供的代碼進行測試,測試代碼:

 信息抽取
from pprint import pprint
from paddlenlp import Taskflow 
schema = ['時間', '選手', '賽事名稱'] # Define the schema for entity extraction 
ie = Taskflow('information_extraction', schema=schema) 
pprint(ie("2月8日上午北京冬奧會自由式滑雪女子大跳臺決賽中中國選手谷愛凌以188.25分獲得金牌!"))

如果正常執(zhí)行,應該會輸出下面信息:

[{'時間': [{'end': 6,
          'probability': 0.9857378532924486,
          'start': 0,
          'text': '2月8日上午'}],
  '賽事名稱': [{'end': 23,
            'probability': 0.8503089953268272,
            'start': 6,
            'text': '北京冬奧會自由式滑雪女子大跳臺決賽'}],
  '選手': [{'end': 31,
          'probability': 0.8981548639781138,
          'start': 28,
          'text': '谷愛凌'}]}]

錯誤信息:

但是事情并滅有很順利,直接報錯了,錯誤提示信息如下:

E:\pytodo\venv\lib\site-packages\_distutils_hack\__init__.py:33: UserWarning: Setuptools is replacing distutils.
  warnings.warn("Setuptools is replacing distutils.")
Traceback (most recent call last):
  File "e:\pytodo\test01.py", line 4, in <module>
    from paddlenlp import Taskflow
  File "E:\pytodo\venv\lib\site-packages\paddlenlp\__init__.py", line 30, in <module>
  File "E:\pytodo\venv\lib\site-packages\paddlenlp\metrics\__init__.py", line 16, in <module>
    from .chunk import ChunkEvaluator
  File "E:\pytodo\venv\lib\site-packages\paddlenlp\metrics\chunk.py", line 20, in <module>
    from seqeval.metrics.sequence_labeling import get_entities
ModuleNotFoundError: No module named 'seqeval'

根據(jù)提示,重新手動安裝“seqeval”庫,pip install seqeval ,安裝默認最新版本的1.2.2 ,安裝過程很順利,也沒有錯誤,但是再次運行,還是包同樣錯誤。

查了一下原因,根據(jù)github的提示,應該是?seqeval 要安裝1.2.1 版本的,于是手動進行安裝。?

[已解決]ModuleNotFoundError: No module named 'jieba' or 'seqeval' · Issue #2340 · PaddlePaddle/PaddleNLP (github.com)

然而,pip install seqeval ==1.2.1 進行安裝,有報錯了……

venv) PS E:\pytodo> pip install seqeval==1.2.1
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/, https://pypi.tuna.tsinghua.edu.cn/simple/, https://pypi.douban.com/simple/, https://mirrors.ustc.edu.cn/pypi/
Collecting seqeval==1.2.1
  Using cached https://pypi.doubanio.com/packages/c4/47/f85f522f1f2532ca650474088e4024a9f52d524379bff058eaadf53cb663/seqeval-1.2.1.tar.gz (43 kB)
  Preparing metadata (setup.py) ... done
Collecting numpy==1.19.2
  Using cached https://pypi.doubanio.com/packages/bf/e8/15aea783ea72e2d4e51e3ec365e8dc4a1a32c9e5eb3a6d695b0d58e67cdd/numpy-1.19.2.zip (7.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [257 lines of output]
      Running from numpy source directory.
      setup.py:470: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
        run_build = parse_setuppy_commands()
      Processing numpy/random\_bounded_integers.pxd.in
      Processing numpy/random\bit_generator.pyx
      Processing numpy/random\mtrand.pyx
      Processing numpy/random\_bounded_integers.pyx.in
      Processing numpy/random\_common.pyx
      Processing numpy/random\_generator.pyx
      Processing numpy/random\_mt19937.pyx
      Processing numpy/random\_pcg64.pyx
      Processing numpy/random\_philox.pyx
      Processing numpy/random\_sfc64.pyx
      Cythonizing sources
      blas_opt_info:
      blas_mkl_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries mkl_rt not found in ['E:\\pytodo\\venv\\lib', 'C:\\']
        NOT AVAILABLE

      blis_info:
        libraries blis not found in ['E:\\pytodo\\venv\\lib', 'C:\\']
        NOT AVAILABLE

      openblas_info:
        libraries openblas not found in ['E:\\pytodo\\venv\\lib', 'C:\\']
      get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
      customize GnuFCompiler
      Could not locate executable g77
      Could not locate executable f77
      customize IntelVisualFCompiler
      Could not locate executable ifort
      Could not locate executable ifl
      customize AbsoftFCompiler
      Could not locate executable f90
      customize CompaqVisualFCompiler
      Could not locate executable DF
      customize IntelItaniumVisualFCompiler
      Could not locate executable efl
      customize Gnu95FCompiler
      Could not locate executable gfortran
      Could not locate executable f95
      customize G95FCompiler
      Could not locate executable g95
      customize IntelEM64VisualFCompiler
      customize IntelEM64TFCompiler
      Could not locate executable efort
      Could not locate executable efc
      customize PGroupFlangCompiler
      Could not locate executable flang
      don't know how to compile Fortran code on platform 'nt'
        NOT AVAILABLE

      atlas_3_10_blas_threads_info:
      Setting PTATLAS=ATLAS
        libraries tatlas not found in ['E:\\pytodo\\venv\\lib', 'C:\\']
        NOT AVAILABLE

      atlas_3_10_blas_info:
        libraries satlas not found in ['E:\\pytodo\\venv\\lib', 'C:\\']
        NOT AVAILABLE

      atlas_blas_threads_info:
      Setting PTATLAS=ATLAS
        libraries ptf77blas,ptcblas,atlas not found in ['E:\\pytodo\\venv\\lib', 'C:\\']
        NOT AVAILABLE

      atlas_blas_info:
        libraries f77blas,cblas,atlas not found in ['E:\\pytodo\\venv\\lib', 'C:\\']
        NOT AVAILABLE

      accelerate_info:
        NOT AVAILABLE

      C:\Users\admin\AppData\Local\Temp\pip-install-_drm9w48\numpy_e4ace71c56d54bf7af156925b951ce98\numpy\distutils\system_info.py:1914: UserWarning:
          Optimized (vendor) Blas libraries are not found.
          Falls back to netlib Blas library which has worse performance.
          A better performance should be easily gained by switching
          Blas library.
        if self._calc_info(blas):
      blas_info:
        libraries blas not found in ['E:\\pytodo\\venv\\lib', 'C:\\']
        NOT AVAILABLE

      C:\Users\admin\AppData\Local\Temp\pip-install-_drm9w48\numpy_e4ace71c56d54bf7af156925b951ce98\numpy\distutils\system_info.py:1914: UserWarning:
          Blas (http://www.netlib.org/blas/) libraries not found.
          Directories to search for the libraries can be specified in the
          numpy/distutils/site.cfg file (section [blas]) or by setting
          the BLAS environment variable.
        if self._calc_info(blas):
      blas_src_info:
        NOT AVAILABLE

      C:\Users\admin\AppData\Local\Temp\pip-install-_drm9w48\numpy_e4ace71c56d54bf7af156925b951ce98\numpy\distutils\system_info.py:1914: UserWarning:
          Blas (http://www.netlib.org/blas/) sources not found.
          Directories to search for the sources can be specified in the
          numpy/distutils/site.cfg file (section [blas_src]) or by setting
          the BLAS_SRC environment variable.
        if self._calc_info(blas):
        NOT AVAILABLE

      non-existing path in 'numpy\\distutils': 'site.cfg'
      lapack_opt_info:
      lapack_mkl_info:
        libraries mkl_rt not found in ['E:\\pytodo\\venv\\lib', 'C:\\']
        NOT AVAILABLE

      openblas_lapack_info:
        libraries openblas not found in ['E:\\pytodo\\venv\\lib', 'C:\\']
        NOT AVAILABLE

      openblas_clapack_info:
        libraries openblas,lapack not found in ['E:\\pytodo\\venv\\lib', 'C:\\']
        NOT AVAILABLE

      flame_info:
        libraries flame not found in ['E:\\pytodo\\venv\\lib', 'C:\\']
        NOT AVAILABLE

      atlas_3_10_threads_info:
      Setting PTATLAS=ATLAS
        libraries lapack_atlas not found in E:\pytodo\venv\lib
        libraries tatlas,tatlas not found in E:\pytodo\venv\lib
        libraries lapack_atlas not found in C:\
        libraries tatlas,tatlas not found in C:\
      <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
        NOT AVAILABLE

      atlas_3_10_info:
        libraries lapack_atlas not found in E:\pytodo\venv\lib
        libraries satlas,satlas not found in E:\pytodo\venv\lib
        libraries lapack_atlas not found in C:\
        libraries satlas,satlas not found in C:\
      <class 'numpy.distutils.system_info.atlas_3_10_info'>
        NOT AVAILABLE

      atlas_threads_info:
      Setting PTATLAS=ATLAS
        libraries lapack_atlas not found in E:\pytodo\venv\lib
        libraries ptf77blas,ptcblas,atlas not found in E:\pytodo\venv\lib
        libraries lapack_atlas not found in C:\
        libraries ptf77blas,ptcblas,atlas not found in C:\
      <class 'numpy.distutils.system_info.atlas_threads_info'>
        NOT AVAILABLE

      atlas_info:
        libraries lapack_atlas not found in E:\pytodo\venv\lib
        libraries f77blas,cblas,atlas not found in E:\pytodo\venv\lib
        libraries lapack_atlas not found in C:\
        libraries f77blas,cblas,atlas not found in C:\
      <class 'numpy.distutils.system_info.atlas_info'>
        NOT AVAILABLE

      lapack_info:
        libraries lapack not found in ['E:\\pytodo\\venv\\lib', 'C:\\']
        NOT AVAILABLE

      C:\Users\admin\AppData\Local\Temp\pip-install-_drm9w48\numpy_e4ace71c56d54bf7af156925b951ce98\numpy\distutils\system_info.py:1748: UserWarning:
          Lapack (http://www.netlib.org/lapack/) libraries not found.
          Directories to search for the libraries can be specified in the
          numpy/distutils/site.cfg file (section [lapack]) or by setting
          the LAPACK environment variable.
        return getattr(self, '_calc_info_{}'.format(name))()
      lapack_src_info:
        NOT AVAILABLE

      C:\Users\admin\AppData\Local\Temp\pip-install-_drm9w48\numpy_e4ace71c56d54bf7af156925b951ce98\numpy\distutils\system_info.py:1748: UserWarning:
          Lapack (http://www.netlib.org/lapack/) sources not found.
          Directories to search for the sources can be specified in the
          numpy/distutils/site.cfg file (section [lapack_src]) or by setting
          the LAPACK_SRC environment variable.
        return getattr(self, '_calc_info_{}'.format(name))()
        NOT AVAILABLE

      numpy_linalg_lapack_lite:
        FOUND:
          language = c
          define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64_')]

      C:\Users\admin\AppData\Local\Temp\pip-build-env-0uexikep\overlay\Lib\site-packages\setuptools\_distutils\dist.py:275: UserWarning: Unknown distribution option: 'define_macros'
        warnings.warn(msg)
      running dist_info
      running build_src
      build_src
      building py_modules sources
      creating build
      creating build\src.win-amd64-3.10
      creating build\src.win-amd64-3.10\numpy
      creating build\src.win-amd64-3.10\numpy\distutils
      building library "npymath" sources
      Traceback (most recent call last):
        File "E:\pytodo\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 351, in <module>
          main()
        File "E:\pytodo\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 333, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "E:\pytodo\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 152, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-0uexikep\overlay\Lib\site-packages\setuptools\build_meta.py", line 157, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-0uexikep\overlay\Lib\site-packages\setuptools\build_meta.py", line 248, in run_setup
          super(_BuildMetaLegacyBackend,
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-0uexikep\overlay\Lib\site-packages\setuptools\build_meta.py", line 142, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File "setup.py", line 499, in <module>
          setup_package()
        File "setup.py", line 491, in setup_package
          setup(**metadata)
        File "C:\Users\admin\AppData\Local\Temp\pip-install-_drm9w48\numpy_e4ace71c56d54bf7af156925b951ce98\numpy\distutils\core.py", line 169, in setup
          return old_setup(**new_attr)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-0uexikep\overlay\Lib\site-packages\setuptools\__init__.py", line 165, in setup
          return distutils.core.setup(**attrs)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-0uexikep\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 148, in setup
          dist.run_commands()
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-0uexikep\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 967, in run_commands
          self.run_command(cmd)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-0uexikep\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
          cmd_obj.run()
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-0uexikep\overlay\Lib\site-packages\setuptools\command\dist_info.py", line 31, in run
          egg_info.run()
        File "C:\Users\admin\AppData\Local\Temp\pip-install-_drm9w48\numpy_e4ace71c56d54bf7af156925b951ce98\numpy\distutils\command\egg_info.py", line 24, in run
          self.run_command("build_src")
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-0uexikep\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-0uexikep\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
          cmd_obj.run()
        File "C:\Users\admin\AppData\Local\Temp\pip-install-_drm9w48\numpy_e4ace71c56d54bf7af156925b951ce98\numpy\distutils\command\build_src.py", line 144, in run
          self.build_sources()
        File "C:\Users\admin\AppData\Local\Temp\pip-install-_drm9w48\numpy_e4ace71c56d54bf7af156925b951ce98\numpy\distutils\command\build_src.py", line 155, in build_sources
          self.build_library_sources(*libname_info)
        File "C:\Users\admin\AppData\Local\Temp\pip-install-_drm9w48\numpy_e4ace71c56d54bf7af156925b951ce98\numpy\distutils\command\build_src.py", line 288, in build_library_sources
          sources = self.generate_sources(sources, (lib_name, build_info))
        File "C:\Users\admin\AppData\Local\Temp\pip-install-_drm9w48\numpy_e4ace71c56d54bf7af156925b951ce98\numpy\distutils\command\build_src.py", line 378, in generate_sources
          source = func(extension, build_dir)
        File "numpy\core\setup.py", line 650, in get_mathlib_info
          st = config_cmd.try_link('int main(void) { return 0;}')
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-0uexikep\overlay\Lib\site-packages\setuptools\_distutils\command\config.py", line 243, in try_link
          self._link(body, headers, include_dirs,
        File "C:\Users\admin\AppData\Local\Temp\pip-install-_drm9w48\numpy_e4ace71c56d54bf7af156925b951ce98\numpy\distutils\command\config.py", line 161, in _link
          return self._wrap_method(old_config._link, lang,
        File "C:\Users\admin\AppData\Local\Temp\pip-install-_drm9w48\numpy_e4ace71c56d54bf7af156925b951ce98\numpy\distutils\command\config.py", line 95, in _wrap_method
          ret = mth(*((self,)+args))
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-0uexikep\overlay\Lib\site-packages\setuptools\_distutils\command\config.py", line 137, in _link
          (src, obj) = self._compile(body, headers, include_dirs, lang)
ls\command\config.py", line 104, in _compile
          src, obj = self._wrap_method(old_config._compile, lang,
        File "C:\Users\admin\AppData\Local\Temp\pip-install-_drm9w48\numpy_e4ace71c56d54bf7af156925b951ce98\numpy\distutils\command\config.py", line 95, in _wrap_method
          ret = mth(*((self,)+args))
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-0uexikep\overlay\Lib\site-packages\setuptools\_distutils\command\config.py", line 132, in _compile
          self.compiler.compile([src], include_dirs=include_dirs)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-0uexikep\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 401, in compile
          self.spawn(args)
          return super().spawn(cmd, env=env)
        File "C:\Users\admin\AppData\Local\Temp\pip-install-_drm9w48\numpy_e4ace71c56d54bf7af156925b951ce98\numpy\distutils\ccompiler.py", line 90, in <lambda>
          m = lambda self, *args, **kw: func(self, *args, **kw)
      TypeError: CCompiler_spawn() got an unexpected keyword argument 'env'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

經(jīng)過一番查看,應該是1.2.1版本不支持python 3.10 版本,這下蒙了……難道要自己去編譯源碼?

解決辦法:

于是去下載了1.2.1版本的源碼回來,正準備編譯一下呢,但是反過來一想,源碼都有了,還編譯啥!直接上源碼!

于是把源碼文件直接粘貼到site-packages文件夾里,然后再次執(zhí)行代碼……

E:\pytodo\venv\lib\site-packages\_distutils_hack\__init__.py:33: UserWarning: Setuptools is replacing distutils.
  warnings.warn("Setuptools is replacing distutils.")
E:\pytodo\venv\lib\site-packages\jieba\_compat.py:4: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
  import imp
[2023-01-13 13:59:14,601] [    INFO] - Downloading model_state.pdparams from https://bj.bcebos.com/paddlenlp/taskflow/information_extraction/uie_base_v1.1/model_state.pdparams
100%|███████████████████████████████████████████████████████████████████████████████████████████████████| 450M/450M [10:15<00:00, 766kB/s]
[2023-01-13 14:09:32,557] [    INFO] - Downloading model_config.json from https://bj.bcebos.com/paddlenlp/taskflow/information_extraction/uie_base/model_config.json
100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 377/377 [00:00<00:00, 45.0kB/s]
[2023-01-13 14:09:32,769] [    INFO] - Downloading vocab.txt from https://bj.bcebos.com/paddlenlp/taskflow/information_extraction/uie_base/vocab.txt
100%|███████████████████████████████████████████████████████████████████████████████████████████████████| 182k/182k [00:00<00:00, 543kB/s]
[2023-01-13 14:09:33,294] [    INFO] - Downloading special_tokens_map.json from https://bj.bcebos.com/paddlenlp/taskflow/information_extraction/uie_base/special_tokens_map.json
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████| 112/112 [00:00<00:00, 112kB/s]
[2023-01-13 14:09:33,446] [    INFO] - Downloading tokenizer_config.json from https://bj.bcebos.com/paddlenlp/taskflow/information_extraction/uie_base/tokenizer_config.json
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████| 172/172 [00:00<00:00, 172kB/s]
[2023-01-13 14:09:33,632] [    INFO] - loading configuration file C:\Users\fwrx\.paddlenlp\taskflow\information_extraction\uie-base\model_config.json
[2023-01-13 14:09:33,634] [    INFO] - Model config ErnieConfig {
  "architectures": [
    "UIE"
  ],
  "attention_probs_dropout_prob": 0.1,
  "enable_recompute": false,
  "fuse": false,
  "hidden_act": "gelu",
  "hidden_dropout_prob": 0.1,
  "hidden_size": 768,
  "initializer_range": 0.02,
  "intermediate_size": 3072,
  "layer_norm_eps": 1e-12,
  "max_position_embeddings": 2048,
  "model_type": "ernie",
  "num_attention_heads": 12,
  "num_hidden_layers": 12,
  "pad_token_id": 0,
  "paddlenlp_version": null,
  "pool_act": "tanh",
  "task_id": 0,
  "task_type_vocab_size": 3,
  "type_vocab_size": 4,
  "use_task_id": true,
  "vocab_size": 40000
}

[2023-01-13 14:09:33,643] [    INFO] - Configuration saved in C:\Users\fwrx\.paddlenlp\taskflow\information_extraction\uie-base\config.json[2023-01-13 14:09:56,586] [    INFO] - All model checkpoint weights were used when initializing UIE.

[2023-01-13 14:09:56,587] [    INFO] - All the weights of UIE were initialized from the model checkpoint at C:\Users\fwrx\.paddlenlp\taskflow\information_extraction\uie-base.
If your task is similar to the task the model of the checkpoint was trained on, you can already use UIE for predictions without further training.
[2023-01-13 14:09:56,590] [    INFO] - Converting to the inference model cost a little time.
[2023-01-13 14:10:20,229] [    INFO] - The inference model save in the path:C:\Users\fwrx\.paddlenlp\taskflow\information_extraction\uie-base\static\inference
[2023-01-13 14:10:25,183] [    INFO] - We are using <class 'paddlenlp.transformers.ernie.tokenizer.ErnieTokenizer'> to load 'C:\Users\fwrx\.paddlenlp\taskflow\information_extraction\uie-base'.
[{'時間': [{'end': 6,
          'probability': 0.9857378532473966,
          'start': 0,
          'text': '2月8日上午'}],
  '賽事名稱': [{'end': 23,
            'probability': 0.8503081103003893,
            'start': 6,
            'text': '北京冬奧會自由式滑雪女子大跳臺決賽'}],
  '選手': [{'end': 31,
          'probability': 0.8981535684051067,
          'start': 28,
          'text': '谷愛凌'}]}]

看樣子是首次運行代碼,有下載了一些模型庫等數(shù)據(jù)。

經(jīng)過一會的運行之后,結(jié)果出來了!

Python 3.10版本可用的源碼在這里:Python3.10版本可用的seqeval-1.2.1版本源碼-Python文檔類資源-CSDN文庫文章來源地址http://www.zghlxwxcb.cn/news/detail-816089.html

到了這里,關(guān)于關(guān)于Python 3.10在使用百度飛槳 NLP 時import paddlenlp 報錯 ModuleNotFoundError: No module named ‘seqeval‘ 的解決辦法的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔相關(guān)法律責任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • 使用pycharm終端安裝百度飛槳paddlepaddle庫的方法

    百度飛槳的公開文件非常少,主要靠AIStudio的說明文檔,但是該文檔沒有給出在pycharm上使用的方法,雖然AIStudio提供了免費編程的云資源,甚至也有GPU免費資源,但是經(jīng)常電腦上是連接不上的。我的建議是用pycharm編寫程序,程序沒問題時或者AIStudio能夠進行程序運行時,再導

    2023年04月10日
    瀏覽(26)
  • python3.8,3.9,3.10,3.11特性比較

    最近計劃將python2遷移到python3,由于本人學習時用的3.7版本,所以僅作大于3.7版本的比較。 文檔地址:python3.8 作用:避免重復調(diào)用,使代碼更加簡潔。PS:別當GO寫,它不支持聲明并賦值變量 作用: 新增了一個函數(shù)形參語法 / 用來指明某些函數(shù)形參必須使用僅限位置而非關(guān)鍵

    2024年02月05日
    瀏覽(52)
  • pycharm unsupported Python 3.1報錯:pycharm無法識別python 3.10

    pycharm unsupported Python 3.1報錯:pycharm無法識別python 3.10

    本人電腦中的pycharm版本是2019的,在使用python3.10環(huán)境的時候,pycharm無法識別,出現(xiàn)如下錯誤: 網(wǎng)上說是因為python版本過高,無法兼容低版本的pycharm,解決方案分兩種:要么降低python環(huán)境的版本,取消使用3.10,改用3.7或者3.8之類的版本;要么就是下載高版本的pycharm。這里我

    2024年02月13日
    瀏覽(29)
  • 卷積神經(jīng)網(wǎng)絡(luò)識別人臉項目—使用百度飛槳ai計算

    卷積神經(jīng)網(wǎng)絡(luò)識別人臉項目—使用百度飛槳ai計算

    整個項目需要的準備文件: 下載鏈接: 鏈接:https://pan.baidu.com/s/1WEndfi14EhVh-8Vvt62I_w 提取碼:7777 鏈接:https://pan.baidu.com/s/10weqx3r_zbS5gNEq-xGrzg 提取碼:7777 1、模型推理文件 2、模型轉(zhuǎn)換文件 數(shù)據(jù)集的文件夾格式如下圖:一共兩個文件夾 images文件夾裝所有的圖片,圖片需隨機打

    2024年02月16日
    瀏覽(28)
  • python 3.10安裝Box2D遇到的問題及解決辦法匯總

    python 3.10安裝Box2D遇到的問題及解決辦法匯總

    近期在入門強化學習,搭建環(huán)境過程遇到很多問題,網(wǎng)上資料比較分散,本人查閱了許多資料才得以解決,將問題與解決方法整理匯總?cè)缦隆?本人電腦上同時有python3.6和python3.10兩個版本,均在同一盤符下,首先嘗試直接在pycharm內(nèi)安裝Box2D包,即在pycharm上通過:文件-設(shè)置-項

    2024年02月06日
    瀏覽(96)
  • 構(gòu)建強大的產(chǎn)品級NLP系統(tǒng):PaddleNLP Pipelines端到端流水線框架解析

    構(gòu)建強大的產(chǎn)品級NLP系統(tǒng):PaddleNLP Pipelines端到端流水線框架解析

    搜索推薦系統(tǒng)專欄簡介:搜索推薦全流程講解(召回粗排精排重排混排)、系統(tǒng)架構(gòu)、常見問題、算法項目實戰(zhàn)總結(jié)、技術(shù)細節(jié)以及項目實戰(zhàn)(含碼源) 專欄詳細介紹:搜索推薦系統(tǒng)專欄簡介:搜索推薦全流程講解(召回粗排精排重排混排)、系統(tǒng)架構(gòu)、常見問題、算法項目

    2024年02月04日
    瀏覽(21)
  • 百度飛槳(PaddlePaddle) - PP-OCRv3 文字檢測識別系統(tǒng) 基于 Paddle Serving快速使用(服務(wù)化部署 - Docker)

    百度飛槳(PaddlePaddle) - PP-OCRv3 文字檢測識別系統(tǒng) 基于 Paddle Serving快速使用(服務(wù)化部署 - Docker)

    目錄 安裝 Docker 安裝 PaddleOCR 安裝 準備PaddleServing的運行環(huán)境, 模型轉(zhuǎn)換 Paddle Serving pipeline部署 重啟 測試 百度飛槳(PaddlePaddle) - PP-OCRv3 文字檢測識別系統(tǒng) 預測部署簡介與總覽 百度飛槳(PaddlePaddle) - PP-OCRv3 文字檢測識別系統(tǒng) Paddle Inference 模型推理(離線部署) 百度飛槳(Paddl

    2024年02月07日
    瀏覽(56)
  • 百度飛槳(PaddlePaddle) - PP-OCRv3 文字檢測識別系統(tǒng) 基于 Paddle Serving快速使用(服務(wù)化部署 - CentOS 7)

    百度飛槳(PaddlePaddle) - PP-OCRv3 文字檢測識別系統(tǒng) 基于 Paddle Serving快速使用(服務(wù)化部署 - CentOS 7)

    目錄 Paddle Serving服務(wù)化部署實戰(zhàn) 準備預測數(shù)據(jù)和部署環(huán)境 環(huán)境準備 安裝 PaddlePaddle 2.0 安裝 PaddleOCR 準備PaddleServing的運行環(huán)境, 模型轉(zhuǎn)換 Paddle Serving pipeline部署 確認工作目錄下文件結(jié)構(gòu): 啟動服務(wù)可運行如下命令: 測試 Python發(fā)送服務(wù)請求: Postman 發(fā)送請求 參數(shù)調(diào)整 百度飛

    2024年02月07日
    瀏覽(49)
  • 百度飛槳(PaddlePaddle)-數(shù)字識別

    百度飛槳(PaddlePaddle)-數(shù)字識別

    手寫數(shù)字識別任務(wù) 用于對 0 ~ 9 的十類數(shù)字進行分類,即輸入手寫數(shù)字的圖片,可識別出這個圖片中的數(shù)字。 python -m pip install matplotlib numpy -i https://mirror.baidu.com/pypi/simple python -m pip install paddlepaddle==2.4.2 -i https://pypi.tuna.tsinghua.edu.cn/simple 官網(wǎng)代碼少了 plt.show() # 要加上這句,才

    2024年02月03日
    瀏覽(23)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包