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

判例の構造化についてかっこの分離をXMLを使って行う #6

Open
kyoichi001 opened this issue Dec 23, 2022 · 0 comments

Comments

@kyoichi001
Copy link
Owner

kyoichi001 commented Dec 23, 2022

判例の文からかっこを分離するとき、jsonにして挿入位置や文のIDを保存するのではなく、XMLを使い、復元や分離がしやすいようにする。

例:

<text id="0">~~は<serif id="1">「~~」</serif>といった。<kakko id="2">(***)</kakko></text>

XMLにするのは文だけで、ヘッダーなどはそもままJSON

{
  "contents" : [
    {
      "header" : "***",
      "header_type" : "***",
      "texts" : [
        "<text id=\"0\">~~は<serif id=\"1\">「~~」</serif>といった。<kakko id=\"2\">(***)</kakko></text>" ,
        ...
      ]
    },...
  ]
}
@kyoichi001 kyoichi001 changed the title 判例の構造化でかっこの分離をXMLを使って行う 判例の構造化についてかっこの分離をXMLを使って行う Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant