TableSematicParserSchema¶
Bases: BaseSchema
ソースコード位置: src/yomitoku/schemas/table_semantic_parser.py
728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 | |
find_table_by_id(table_id)
¶
Search for a table by its ID. テーブルIDに対応するテーブルを返す
引数:
| 名前 | タイプ | デスクリプション | デフォルト |
|---|---|---|---|
table_id
|
str
|
検索するテーブルID |
必須 |
ソースコード位置: src/yomitoku/schemas/table_semantic_parser.py
find_table_by_position(box)
¶
Search for a table by its bounding box. テーブルの位置情報(bounding box)に対応するテーブルを返す
引数:
| 名前 | タイプ | デスクリプション | デフォルト |
|---|---|---|---|
box
|
List[int]
|
検索するバウンディングボックス [x1, y1, x2, y2] |
必須 |
ソースコード位置: src/yomitoku/schemas/table_semantic_parser.py
search_kv_items_by_key(key)
¶
search for key-value items or grid cells where the key matches the query string. クエリーに部分一致するキーを持つKVアイテムおよびグリッドセルを返す
引数:
| 名前 | タイプ | デスクリプション | デフォルト |
|---|---|---|---|
key
|
str
|
検索するクエリ文字列. キー部分に部分一致するものを検索 |
必須 |
ソースコード位置: src/yomitoku/schemas/table_semantic_parser.py
search_words_by_position(bbox)
¶
Search for words by their bounding box. 位置情報(bounding box)に対応する文字列を返す
引数:
| 名前 | タイプ | デスクリプション | デフォルト |
|---|---|---|---|
box
|
List[int]
|
検索するバウンディングボックス [x1, y1, x2, y2] |
必須 |