Skip to content

This code snippet will make the translation for the last paragraph of each html disappear #39

@zhuhui-in

Description

@zhuhui-in
  # # 有时 LLM 会将多段融合在一起,这里尽可能让译文靠后,将空白段留在前面。
  # # 这样看起来一大段的译文对应若干小段原文,观感更好。
  # for i in range(len(fragments)):
  #   fragment = fragments[i]
  #   if fragment is not None and i < len(fragments) - 1:
  #     next_fragment = fragments[i + 1]
  #     if next_fragment is None:
  #       fragments[i] = None
  #       fragments[i + 1] = fragment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions