Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why do I get an error when running Chunking.py #1

Open
anshiquanshu66 opened this issue Jul 24, 2022 · 4 comments
Open

Why do I get an error when running Chunking.py #1

anshiquanshu66 opened this issue Jul 24, 2022 · 4 comments

Comments

@anshiquanshu66
Copy link

2022-07-24 10:22:16,647 loading file /home/xx/.flair/models/chunk-english/5b53097d6763734ee8ace8de92db67a1ee2528d5df9c6d20ec8e3e6f6470b423.d81b7fd7a38422f2dbf40f6449b1c63d5ae5b959863aa0c2c1ce9116902e8b22
2022-07-24 10:22:16,920 SequenceTagger predicts: Dictionary with 45 tags: , O, B-NP, E-NP, I-NP, S-PP, S-VP, S-SBAR, S-ADVP, S-NP, S-ADJP, B-VP, E-VP, B-PP, E-PP, I-VP, S-PRT, B-ADVP, E-ADVP, B-ADJP, E-ADJP, B-CONJP, I-CONJP, E-CONJP, I-ADJP, B-SBAR, E-SBAR, S-INTJ, I-ADVP, I-PP, B-UCP, I-UCP, E-UCP, S-LST, B-PRT, I-PRT, E-PRT, S-CONJP, B-INTJ, E-INTJ, I-INTJ, B-LST, E-LST, ,
72%|████████████████████████████████████████████████████████████████████████████████████████ | 88438/145449 [00:01<00:00, 72541.03it/s 80%|████████████████████████████████████████████████████████████████████████████████████████ 92%|████████████████████████████████████████████████████████████████████████████████████████ 100%|████████████████████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████| 145449/145449 [00:02<00:00, 71636.39it/s]
0%| | 0/145449 [00:00<?, ?it/s]
Traceback (most recent call last):
File "scriptProofver/Chunking.py", line 25, in
_Dict["startPos"] = entity.start_pos
AttributeError: 'Span' object has no attribute 'start_pos'

@chinajb2000731
Copy link

Have you solved the problem of friends? I have also encountered this problem

@anshiquanshu66
Copy link
Author

Have you solved the problem of friends? I have also encountered this problem

The problem has not been solved yet.

@decode12
Copy link

    _Dict["startPos"] = entity.start_position
    _Dict["endPos"] = entity.end_position 

maybe you can try this,version problem

@anshiquanshu66
Copy link
Author

    _Dict["startPos"] = entity.start_position
    _Dict["endPos"] = entity.end_position 

maybe you can try this,version problem

Thank you very much. I will try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants