885 | | |
886 | | }}} |
887 | | Command: |
888 | | {{{ |
889 | | |
890 | | }}} |
891 | | Output: |
892 | | {{{ |
893 | | |
| 885 | Match pattern 'lexeme(kot)'. Mark beginning (BOM) and end (EOM) of each matching. |
| 886 | }}} |
| 887 | Command: |
| 888 | {{{ |
| 889 | echo 'Ala ma kota. Ola ma kota. Bartosz ma psa.' | tok | lem -1 | mar -e 'lexeme(kot)' |
| 890 | }}} |
| 891 | Output: |
| 892 | {{{ |
| 893 | 0000 03 W Ala |
| 894 | 0003 01 S _ |
| 895 | 0004 02 W ma lem:mieć,V/AiMdNsP3R?TfrVp;mój,ADJPRO/CnvGfNsZs |
| 896 | 0006 01 S _ |
| 897 | 0007 00 BOM * |
| 898 | 0007 04 W kota lem:kota,N/CnGfNs;kot,N/CaGaNs,N/CgGaNs |
| 899 | 0011 00 EOM * |
| 900 | 0011 01 P . |
| 901 | 0012 01 S _ |
| 902 | 0013 03 W Ola |
| 903 | 0016 01 S _ |
| 904 | 0017 02 W ma lem:mieć,V/AiMdNsP3R?TfrVp;mój,ADJPRO/CnvGfNsZs |
| 905 | 0019 01 S _ |
| 906 | 0020 00 BOM * |
| 907 | 0020 04 W kota lem:kota,N/CnGfNs;kot,N/CaGaNs,N/CgGaNs |
| 908 | 0024 00 EOM * |
| 909 | 0024 01 P . |
| 910 | 0025 01 S _ |
| 911 | 0026 07 W Bartosz lem:Bartosz,N/CnGpNs |
| 912 | 0033 01 S _ |
| 913 | 0034 02 W ma lem:mieć,V/AiMdNsP3R?TfrVp;mój,ADJPRO/CnvGfNsZs |
| 914 | 0036 01 S _ |
| 915 | 0037 03 W psa lem:pies,N/CaGaNs,N/CgGaNs |
| 916 | 0040 01 P . |
| 917 | 0041 01 S \n |
899 | | |
900 | | }}} |
901 | | Command: |
902 | | {{{ |
903 | | |
904 | | }}} |
905 | | Output: |
906 | | {{{ |
907 | | |
| 923 | Match pattern 'lexeme(kot)'. Mark matching parts with MATCH tags (before and after any form of lexeme 'kot'). |
| 924 | }}} |
| 925 | Command: |
| 926 | {{{ |
| 927 | echo 'Ala ma kota. Ola ma kota. Bartosz ma psa.' | tok | lem -1 | mar -e '@MATCH lexeme(kot) @MATCH' |
| 928 | }}} |
| 929 | Output: |
| 930 | {{{ |
| 931 | 0000 03 W Ala |
| 932 | 0003 01 S _ |
| 933 | 0004 02 W ma lem:mieć,V/AiMdNsP3R?TfrVp;mój,ADJPRO/CnvGfNsZs |
| 934 | 0006 01 S _ |
| 935 | 0007 00 MATCH * |
| 936 | 0007 04 W kota lem:kota,N/CnGfNs;kot,N/CaGaNs,N/CgGaNs |
| 937 | 0011 00 MATCH * |
| 938 | 0011 01 P . |
| 939 | 0012 01 S _ |
| 940 | 0013 03 W Ola |
| 941 | 0016 01 S _ |
| 942 | 0017 02 W ma lem:mieć,V/AiMdNsP3R?TfrVp;mój,ADJPRO/CnvGfNsZs |
| 943 | 0019 01 S _ |
| 944 | 0020 00 MATCH * |
| 945 | 0020 04 W kota lem:kota,N/CnGfNs;kot,N/CaGaNs,N/CgGaNs |
| 946 | 0024 00 MATCH * |
| 947 | 0024 01 P . |
| 948 | 0025 01 S _ |
| 949 | 0026 07 W Bartosz lem:Bartosz,N/CnGpNs |
| 950 | 0033 01 S _ |
| 951 | 0034 02 W ma lem:mieć,V/AiMdNsP3R?TfrVp;mój,ADJPRO/CnvGfNsZs |
| 952 | 0036 01 S _ |
| 953 | 0037 03 W psa lem:pies,N/CaGaNs,N/CgGaNs |
| 954 | 0040 01 P . |
| 955 | 0041 01 S \n |
913 | | |
914 | | }}} |
915 | | Command: |
916 | | {{{ |
917 | | |
918 | | }}} |
919 | | Output: |
920 | | {{{ |
921 | | |
| 961 | Match pattern 'lexeme(kot)'. Mark matching parts with BEGINMATCH tags (only before any form of lexeme 'kot'). |
| 962 | }}} |
| 963 | Command: |
| 964 | {{{ |
| 965 | echo 'Ala ma kota. Ola ma kota.' | tok | lem -1 | mar -e '@BEGINMATCH lexeme(kot)' |
| 966 | }}} |
| 967 | Output: |
| 968 | {{{ |
| 969 | 0000 03 W Ala |
| 970 | 0003 01 S _ |
| 971 | 0004 02 W ma lem:mieć,V/AiMdNsP3R?TfrVp;mój,ADJPRO/CnvGfNsZs |
| 972 | 0006 01 S _ |
| 973 | 0007 00 BEGINMATCH * |
| 974 | 0007 04 W kota lem:kota,N/CnGfNs;kot,N/CaGaNs,N/CgGaNs |
| 975 | 0011 01 P . |
| 976 | 0012 01 S _ |
| 977 | 0013 03 W Ola |
| 978 | 0016 01 S _ |
| 979 | 0017 02 W ma lem:mieć,V/AiMdNsP3R?TfrVp;mój,ADJPRO/CnvGfNsZs |
| 980 | 0019 01 S _ |
| 981 | 0020 00 BEGINMATCH * |
| 982 | 0020 04 W kota lem:kota,N/CnGfNs;kot,N/CaGaNs,N/CgGaNs |
| 983 | 0024 01 P . |
| 984 | 0025 01 S \n |
927 | | |
928 | | }}} |
929 | | Command: |
930 | | {{{ |
931 | | |
932 | | }}} |
933 | | Output: |
934 | | {{{ |
935 | | |
| 990 | Match pattern 'lexeme(kot)'. Mark matching parts with ENDMATCH tags (only after any form of lexeme 'kot'). |
| 991 | }}} |
| 992 | Command: |
| 993 | {{{ |
| 994 | echo 'Ala ma kota. Ola ma kota.' | tok | lem -1 | mar -e 'lexeme(kot) @ENDMATCH' |
| 995 | }}} |
| 996 | Output: |
| 997 | {{{ |
| 998 | 0000 03 W Ala |
| 999 | 0003 01 S _ |
| 1000 | 0004 02 W ma lem:mieć,V/AiMdNsP3R?TfrVp;mój,ADJPRO/CnvGfNsZs |
| 1001 | 0006 01 S _ |
| 1002 | 0007 04 W kota lem:kota,N/CnGfNs;kot,N/CaGaNs,N/CgGaNs |
| 1003 | 0011 00 ENDMATCH * |
| 1004 | 0011 01 P . |
| 1005 | 0012 01 S _ |
| 1006 | 0013 03 W Ola |
| 1007 | 0016 01 S _ |
| 1008 | 0017 02 W ma lem:mieć,V/AiMdNsP3R?TfrVp;mój,ADJPRO/CnvGfNsZs |
| 1009 | 0019 01 S _ |
| 1010 | 0020 04 W kota lem:kota,N/CnGfNs;kot,N/CaGaNs,N/CgGaNs |
| 1011 | 0024 00 ENDMATCH * |
| 1012 | 0024 01 P . |
| 1013 | 0025 01 S \n |
941 | | |
942 | | }}} |
943 | | Command: |
944 | | {{{ |
945 | | |
946 | | }}} |
947 | | Output: |
948 | | {{{ |
949 | | |
| 1019 | Match pattern 'word(ma) space lexeme(kot)'. Mark matching parts with MA (before and after each word 'ma') and KOT (before and after any form of lexeme 'kot') tags. |
| 1020 | }}} |
| 1021 | Command: |
| 1022 | {{{ |
| 1023 | echo 'Ala ma kota. Ola ma kota.' | tok | lem -1 | mar -e '@MA word(ma) @MA space @KOT lexeme(kot) @KOT' |
| 1024 | }}} |
| 1025 | Output: |
| 1026 | {{{ |
| 1027 | 0000 03 W Ala |
| 1028 | 0003 01 S _ |
| 1029 | 0004 00 MA * |
| 1030 | 0004 02 W ma lem:mieć,V/AiMdNsP3R?TfrVp;mój,ADJPRO/CnvGfNsZs |
| 1031 | 0006 00 MA * |
| 1032 | 0006 01 S _ |
| 1033 | 0007 00 KOT * |
| 1034 | 0007 04 W kota lem:kota,N/CnGfNs;kot,N/CaGaNs,N/CgGaNs |
| 1035 | 0011 00 KOT * |
| 1036 | 0011 01 P . |
| 1037 | 0012 01 S _ |
| 1038 | 0013 03 W Ola |
| 1039 | 0016 01 S _ |
| 1040 | 0017 00 MA * |
| 1041 | 0017 02 W ma lem:mieć,V/AiMdNsP3R?TfrVp;mój,ADJPRO/CnvGfNsZs |
| 1042 | 0019 00 MA * |
| 1043 | 0019 01 S _ |
| 1044 | 0020 00 KOT * |
| 1045 | 0020 04 W kota lem:kota,N/CnGfNs;kot,N/CaGaNs,N/CgGaNs |
| 1046 | 0024 00 KOT * |
| 1047 | 0024 01 P . |
| 1048 | 0025 01 S \n |
955 | | |
956 | | }}} |
957 | | Command: |
958 | | {{{ |
959 | | |
960 | | }}} |
961 | | Output: |
962 | | {{{ |
963 | | |
| 1054 | Match pattern 'word(ma) space lexeme(kot)'. Mark matching parts with MA (before and after each word 'ma'), KOT (before and after any form of lexeme 'kot'), BEGINMATCH, ENDMATCH (before and after each matching) tags. |
| 1055 | }}} |
| 1056 | Command: |
| 1057 | {{{ |
| 1058 | echo 'Ala ma kota. Ola ma kota.' | tok | lem -1 | mar -e '@BEGINMATCH @MA word(ma) @MA space @KOT lexeme(kot) @KOT @ENDMATCH' |
| 1059 | }}} |
| 1060 | Output: |
| 1061 | {{{ |
| 1062 | 0000 03 W Ala |
| 1063 | 0003 01 S _ |
| 1064 | 0004 0004 00 BEGINMATCH * |
| 1065 | 0004 00 MA * |
| 1066 | 0004 02 W ma lem:mieć,V/AiMdNsP3R?TfrVp;mój,ADJPRO/CnvGfNsZs |
| 1067 | 0006 00 MA * |
| 1068 | 0006 01 S _ |
| 1069 | 0007 00 KOT * |
| 1070 | 0007 04 W kota lem:kota,N/CnGfNs;kot,N/CaGaNs,N/CgGaNs |
| 1071 | 0011 00 KOT * |
| 1072 | 0011 00 ENDMATCH * |
| 1073 | 0011 01 P . |
| 1074 | 0012 01 S _ |
| 1075 | 0013 03 W Ola |
| 1076 | 0016 01 S _ |
| 1077 | 0017 0017 00 BEGINMATCH * |
| 1078 | 0017 00 MA * |
| 1079 | 0017 02 W ma lem:mieć,V/AiMdNsP3R?TfrVp;mój,ADJPRO/CnvGfNsZs |
| 1080 | 0019 00 MA * |
| 1081 | 0019 01 S _ |
| 1082 | 0020 00 KOT * |
| 1083 | 0020 04 W kota lem:kota,N/CnGfNs;kot,N/CaGaNs,N/CgGaNs |
| 1084 | 0024 00 KOT * |
| 1085 | 0024 00 ENDMATCH * |
| 1086 | 0024 01 P . |
| 1087 | 0025 01 S \n |