module Markup for marking up subphrases with html tags (or other things). Implemented for Eng and Swe so far.

This commit is contained in:
aarne
2014-02-11 15:42:17 +00:00
parent f3ad73ec00
commit 18f00948af
10 changed files with 115 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
abstract Markup = Cat, MarkHTML ** {
-- Adding markup to sentences and their parts. By default both start and end tags.
-- For instance
--
-- MarkupNP boldMarkup everything_NP ==> <b> everything </b>
--
-- AR 11/2/2014
fun
MarkupCN : Mark -> CN -> CN ;
MarkupNP : Mark -> NP -> NP ;
MarkupAP : Mark -> AP -> AP ;
MarkupAdv : Mark -> Adv -> Adv ;
MarkupS : Mark -> S -> S ;
MarkupUtt : Mark -> Utt -> Utt ;
MarkupPhr : Mark -> Phr -> Phr ;
MarkupText : Mark -> Text -> Text ;
}