OpenPecha / toolkit-v2

OpenPecha toolkit version 2
MIT License
0 stars 0 forks source link

OPT20004: Create Alignment abstraction (4 days) #4

Closed ta4tsering closed 2 months ago

ta4tsering commented 3 months ago

Description: Given two stem opf path to the repo or opf_id of the repo, Need to create OPA using the given data.

Completion Criteria: When pipeline to create the OPA is ready with the test passed.

Openpecha Alignment Structure:

pecha_id
- pecha_id.opf
     - meta.json
     - DA11.json

Pecha's Meta Attributes:

id: str
title: list[str]
author: list[str]
created_at: datetime
source: str
source_metadata: dict
alignment_to_base:
  I85DC3838/FF44: BFD5
  I6CF42067/B49C: BFD5

Pecha's Alignment Attributes:

segment_sources:
  I85DC3838:
    type: translation
    relation: source
    lang: bo
    base: FF44
  I6CF42067:
    type: translation
    relation: target
    lang: en
    base: B49C
segment_pairs:
  6e97393b35da4c3faf292740c2551013:
    I85DC3838: 3f859478997e4047bedc8adf0006959b
    I6CF42067: e15e5078006f4f0daf81335619399fff

Subtasks:

ta4tsering commented 3 months ago

Waiting for the read pecha method and Comment from @10zinten on the card.