class_docstr: Base class for WK3l datasets (WK3l-15k, WK3l-120k, CN3l).
docstr: Load entity alignment information for the given graph pair.
docstr_tok: ["Load","entity","alignment","information","for","the","given","graph","pair","."]
code: def _load_alignment(self) -> pandas.DataFrame:  # noqa: D102
      """Load entity alignment information for the given graph pair."""
      logger.info("Loading alignment information")
      # load mappings for both sides
      dfs = [
          self._load_df(key=key, names=list(key))
          for key in (EA_SIDES, EA_SIDES_R)
      ]
      # load triple alignments
      df = self._load_df(
          key=None,
          names=[
              (side, column)
              for side in EA_SIDES
              for column in COLUMN_LABELS
          ],
      )
      # extract entity alignments
      # (h1, r1, t1) = (h2, r2, t2) => h1 = h2 and t1 = t2
      for column in [LABEL_HEAD, LABEL_TAIL]:
          part = df.loc[
              :, [(EA_SIDE_LEFT, column), (EA_SIDE_RIGHT, column)]
          ].copy()
          part.columns = list(EA_SIDES)
          dfs.append(part)
      return pandas.concat(dfs)
  
imports: import itertools
  import logging
  import pathlib
  from abc import ABC
  from typing import ClassVar, Iterable, Literal, Mapping, Tuple, Union
  import click
  import pandas
  from docdata import parse_docdata
  from more_click import verbose_option
  from pystow.utils import read_zipfile_csv
  from .base import EADataset
  from ...constants import COLUMN_LABELS, PYKEEN_DATASETS_MODULE
  from ...triples import TriplesFactory
  from ...typing import EA_SIDE_LEFT, EA_SIDE_RIGHT, EA_SIDES, LABEL_HEAD, LABEL_TAIL, EASide
label_desc: Use image node_id 6 for calling the MTransEDataset obj's underlying member method code with example usage: obj._load_alignment() and returns: pandas