BaoSir529 / dual-encoder4aste

This is for paper "A semantically enhanced dual encoder for aspect sentiment triplet extraction"
MIT License
19 stars 1 forks source link

Why does running data_process show the following error #1

Open baosir529a opened 1 year ago

baosir529a commented 1 year ago

Traceback (most recent call last): File "E:\PyCharm\代码项目\dual-encoder4aste-main\dual-encoder4aste-main\data\v1_data_process.py", line 3, in import spacy File "E:\Anaconda\Anaconda\envs\dualencoder\lib\site-packages\spacy__init.py", line 13, in from . import pipeline # noqa: F401 File "E:\Anaconda\Anaconda\envs\dualencoder\lib\site-packages\spacy\pipeline__init.py", line 1, in from .attributeruler import AttributeRuler File "E:\Anaconda\Anaconda\envs\dualencoder\lib\site-packages\spacy\pipeline\attributeruler.py", line 8, in from ..language import Language File "E:\Anaconda\Anaconda\envs\dualencoder\lib\site-packages\spacy\language.py", line 42, in from .pipe_analysis import analyze_pipes, print_pipe_analysis, validate_attrs File "E:\Anaconda\Anaconda\envs\dualencoder\lib\site-packages\spacy\pipe_analysis.py", line 6, in from .tokens import Doc, Span, Token File "E:\Anaconda\Anaconda\envs\dualencoder\lib\site-packages\spacy\tokens\init__.py", line 1, in from ._serialize import DocBin File "E:\Anaconda\Anaconda\envs\dualencoder\lib\site-packages\spacy\tokens_serialize.py", line 14, in from ..vocab import Vocab File "spacy\vocab.pyx", line 1, in init spacy.vocab File "spacy\tokens\doc.pyx", line 49, in init spacy.tokens.doc File "E:\Anaconda\Anaconda\envs\dualencoder\lib\site-packages\spacy\schemas.py", line 272, in class TokenPattern(BaseModel): File "pydantic\main.py", line 299, in pydantic.main.ModelMetaclass.new File "pydantic\fields.py", line 411, in pydantic.fields.ModelField.infer File "pydantic\fields.py", line 342, in pydantic.fields.ModelField.init File "pydantic\fields.py", line 451, in pydantic.fields.ModelField.prepare File "pydantic\fields.py", line 545, in pydantic.fields.ModelField._type_analysis File "pydantic\fields.py", line 550, in pydantic.fields.ModelField._type_analysis File "E:\Anaconda\Anaconda\envs\dualencoder\lib\typing.py", line 852, in subclasscheck return issubclass(cls, self.origin__) TypeError: issubclass() arg 1 must be a class

dfasd1 commented 12 months ago

你好,请问你解决了吗

ghyhj commented 11 months ago

you don't have to run it, it's already in the original file, just skip it