getAllStatuses(); $renderer = get_active_status_renderer(); echo ''; } function topic_icons_css() { echo "\n"; } function topic_icons_label( $label ) { global $topic; if (bb_is_front() || bb_is_forum() || bb_is_view() || bb_is_tag()) { $icon_set_name = topic_icons_get_active_icon_set(); $icon_set_url = ICON_SET_URL_BASE . $icon_set_name; $status = get_active_status_interpreter()->getStatus(bb_get_location(), $topic); $renderer = get_active_status_renderer(); $image = $renderer->renderStatus($status); $tooltip = $renderer->renderStatusTooltip($status); $exists = file_exists(dirname(__FILE__).'/icon-sets/'.$icon_set_name.'/'.$image); if (!$exists) { return sprintf(__('
%s
%s'), get_topic_link($topic->topic_id), ICON_SET_URL_BASE.'/empty.png', ICON_WIDTH, ICON_HEIGHT, $tooltip, $label); } else if (strlen($tooltip) > 0) { return sprintf(__('
%s%s
%s'), get_topic_link($topic->topic_id), $icon_set_url.'/'.$image, ICON_WIDTH, ICON_HEIGHT, $tooltip, $tooltip, $label); } else { return sprintf(__('
%s
%s'), get_topic_link($topic->topic_id), $icon_set_url.'/'.$image, ICON_WIDTH, ICON_HEIGHT, $tooltip, $label); } } return $label; } function topic_icons_init( ) { remove_filter('bb_topic_labels', 'bb_closed_label', 10); remove_filter('bb_topic_labels', 'bb_sticky_label', 20); add_filter('bb_topic_labels', 'topic_icons_label', 11); add_action('bb_head', 'topic_icons_css'); add_action('bb_admin_menu_generator', 'topic_icons_admin_page_add'); add_action('bb_admin-header.php', 'topic_icons_admin_page_process'); topic_icons_register_status_interpreter('default', new DefaultStatusInterpreter(BUSY_THRESHOLD)); topic_icons_register_status_renderer('default', new DefaultStatusRenderer()); } topic_icons_init(); ?> Digital Humanities Questions & Answers » Topic: Semantic Tagging in TEI http://digitalhumanities.org/answers/topic/semantic-tagging-in-tei Digital Humanities Questions & Answers » Topic: Semantic Tagging in TEI en-US Sun, 24 Mar 2019 23:20:48 +0000 http://bbpress.org/?v=1.0.2 <![CDATA[Search]]> q http://digitalhumanities.org/answers/search.php Kevin Hawkins on "Semantic Tagging in TEI" http://digitalhumanities.org/answers/topic/semantic-tagging-in-tei#post-1896 Fri, 22 Feb 2013 16:04:33 +0000 Kevin Hawkins 1896@http://digitalhumanities.org/answers/ <p>For the record, this question was reposted to TEI-L, where discussion ensued:</p> <p><a href="http://listserv.brown.edu/archives/cgi-bin/wa?A2=ind1302&amp;L=TEI-L&amp;F=&amp;S=&amp;P=137189" rel="nofollow">http://listserv.brown.edu/archives/cgi-bin/wa?A2=ind1302&amp;L=TEI-L&amp;F=&amp;S=&amp;P=137189</a> </p> Conal Tuohy on "Semantic Tagging in TEI" http://digitalhumanities.org/answers/topic/semantic-tagging-in-tei#post-1890 Sat, 16 Feb 2013 22:08:05 +0000 Conal Tuohy 1890@http://digitalhumanities.org/answers/ <p>How to encode an index:</p> <p><a href="http://www.tei-c.org/release/doc/tei-p5-doc/en/html/CO.html#CONOIX" rel="nofollow">http://www.tei-c.org/release/doc/tei-p5-doc/en/html/CO.html#CONOIX</a> </p> Conal Tuohy on "Semantic Tagging in TEI" http://digitalhumanities.org/answers/topic/semantic-tagging-in-tei#post-1889 Sat, 16 Feb 2013 22:06:32 +0000 Conal Tuohy 1889@http://digitalhumanities.org/answers/ <p>Further to Kevin's suggestion of interp, I'd suggest you look at <a href="http://www.tei-c.org/release/doc/tei-p5-doc/en/html/CO.html#CONOIX" rel="nofollow">http://www.tei-c.org/release/doc/tei-p5-doc/en/html/CO.html#CONOIX</a> which explains how to encode keywords latent in the text, for construction of an index. </p> Kevin Hawkins on "Semantic Tagging in TEI" http://digitalhumanities.org/answers/topic/semantic-tagging-in-tei#post-1888 Sat, 16 Feb 2013 17:57:49 +0000 Kevin Hawkins 1888@http://digitalhumanities.org/answers/ <p>Indeed, 'term' isn't appropriate, both because it can only used within paragraphs, quotes, etc., but also because, as in the definition of the element in the Guidelines, it is meant for technical terms. Instead you should use 'span' or 'interp'. See section 17.3 of the TEI Guidelines.</p> <p>As for tagging genre, you mean labeling an entire text as being of a certain genre? If there is only ever one text per TEI document, you can use 'textClass' in the header. But if your TEI documents contain more than one 'text' or sometimes contain 'floatingText's, with which you also want to associate a genre, you might instead use the ana= attribute on the 'text' or 'floatingText' to point to specific genres mentioned in 'textClass'. </p> knechtelruth@gmail.com on "Semantic Tagging in TEI" http://digitalhumanities.org/answers/topic/semantic-tagging-in-tei#post-1886 Fri, 15 Feb 2013 22:21:19 +0000 knechtelruth@gmail.com 1886@http://digitalhumanities.org/answers/ <p>Hi Friendly DHers:</p> <p>The Dynamic Table of Contexts team is developing a semantic tagset that will be used to encode a collection of scholarly essays.<br />  <br /> We are currently trying to incorporate this tagset, which is largely based off of Orlando’s tagset, into a TEI-based schema. We intend to tag sections of the text (whole paragraphs, single words, etc.) that corresponds to index-like concepts, such as ‘history’ or ‘politics’.<br />  <br /> To tag these concepts, we have employed TEI’s ‘term’ element. The various semantic categories feature as values of the ‘term’ element, e.g. &lt;term type=”politics”&gt;.<br />  <br /> The problem with using the ‘term’ tag in this way is that it is unable to handle nested quote tags or paragraph tags. That is, TEI does not allow &lt;q&gt; tags inside a ‘term’ tag, nor does it allow the ‘term’ tag to wrap around a &lt;p&gt; tag. This restricts the ‘term’ tag’s usage. Ideally, we want to be able to identify concepts across paragraphs.<br />  <br /> We have searched for an alternative to the ‘term’ tag in the TEI catalogue but apart from customizing the schema, we have not found an adequate solution. At this point in the project, we are interested in sticking to the TEI’s standards. Is there a term-like tag in TEI that we have overlooked?<br />  <br /> We would appreciate some feedback on this issue of semantic tagging in TEI.<br />  <br /> ALSO, we are interested in tagging instances of genre in the collection, but again, TEI does not provide a ‘genre’ tag. Is there a clear solution here that we have missed? </p>