【发布时间】:2016-11-03 00:15:18
【问题描述】:
我想将文档[使用 GATE 开发人员工具突出显示] 的突出显示注释发布到新文件 [word 或 Excel]。有人可以帮我提出任何建议或这个吗? 提前致谢。
问候, 加亚特里
【问题讨论】:
标签: gate
我想将文档[使用 GATE 开发人员工具突出显示] 的突出显示注释发布到新文件 [word 或 Excel]。有人可以帮我提出任何建议或这个吗? 提前致谢。
问候, 加亚特里
【问题讨论】:
标签: gate
抱歉,我还不能评论...
这里有类似的问题Read annotated data from GATE datastore
提供的答案(由 Ian Roberts 提供)可以将选定的注释存储在文件中。
建议:使用嵌入式 GATE(使用 Java)。
【讨论】:
在 html 中阅读带注释的文档相当简单。您可以按照printing 的说明进行操作,该说明可以使用文本编辑器执行。请记住选择您希望显示的注释并使用“保存保留格式”保存工件。生成的 xml 将在保存的文档中嵌入您选择的注释标签。
您还可以在 html 中进行可视化。
<!DOCTYPE html>
<div id="topContent">
<h1>Report Example</h1>
<p>
This example provide a visualization of a annotated document produced by GATE using ANNIE with defaults. To use with Javascript, the document can be formatted as an xml document using xmlHttpRequest.
</p>
</div>
<div id="pageView">
<div id="legendView">
<h3>Document Legend</h3>
<div>
<table id="annotationTable">
<tr>
<th>Facet</th>
<th>Color</th>
</tr>
<tr>
<td>Date</td>
<td id="dateFill"></td>
</tr>
<tr>
<td>Location</td>
<td id="locationFill"></td>
</tr>
<tr>
<td>Organization</td>
<td id="organizationFill"></td>
</tr>
<tr>
<td>Person</td>
<td id="personFill"></td>
</tr>
</table>
</div>
</div>
<p>..Add GATE XML contents here..</p>
</div>
设置好 html 后,添加 css:
body {}
table, th, td {
border: 1px solid black;
text-align: center;
font-family: arial;
}
#annotationTable {
border-collapse: collapse;
width: 10%;
}
#topContent {
font: 18px arial;
}
#pageView {
border: 1px solid black;
font: 14px arial;
}
#legendView {
margin: 10px 10px 10px 10px;
}
#dateFill {background-color: rgb(51, 255, 119)}
#locationFill {background-color: rgb(204, 153, 255)}
#organizationFill {background-color: rgb(102, 255, 255)}
#personFill {background-color: rgb(255, 204, 153)}
Date {background-color: rgb(51, 255, 119)}
Location {background-color: rgb(204, 153, 255)}
Organization {background-color: rgb(102, 255, 255)}
Person {background-color: rgb(255, 204, 153)}
这提供了 GATE 注释的基本视图。当然,根据您要表达的内容,它可能会更复杂。见Fiddle
在 MS Word 中查看:
有点头疼,但如果您想要打印副本,它会起作用。该文档不会在 Word 中显示 css。我希望这会有所帮助。
【讨论】: