Skip to content

你好作为初学者在复现项目Batch processing & evaluation过程中报错一直解决不了可以请求帮助一下吗 #13

Description

@WangYouQiJava

(venv) root@autodl-container-593c4a8c36-dd617beb:/autodl-tmp/bertalign# python test1.py
Start aligning text+berg/de/001 to text+berg/fr/001
German sentences sample (first 3): ['jngspitz-Nordostwand direkt', 'Michel Piola , Vernier', 'Die ca. 600 m hohe Nordostwand des Kingspitz ( Engelhörner , BO )']
French sentence sample (first 3): ['ngspitz :', 'face nordest directe', 'Michel Piola , Vernier']
Source language: German, Number of sentences: 137
Target language: French, Number of sentences: 155
Embedding source and target text using LaBSE ...
Performing first-step alignment ...
First-step alignment results (length): 0
First-step alignment details: []
Performing second-step alignment ...
Top-k similarity shape: (137, 3)
Max similarity: 0.0
Mean similarity: 0.0
Performing second-step alignment ...
Traceback (most recent call last):
File "test1.py", line 17, in
aligner.align_sents()
File "/root/autodl-tmp/bertalign/bertalign/aligner.py", line 92, in align_sents
second_pointers = second_pass_align(self.src_vecs, self.tgt_vecs, self.src_lens, self.tgt_lens,
ValueError: cannot compute fingerprint of empty list
(venv) root@autodl-container-593c4a8c36-dd617beb:
/autodl-tmp/bertalign#

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions