【问题标题】:GATE developer_Requesting for SuggestionGATE 开发者_征求建议
【发布时间】:2016-11-03 00:15:18
【问题描述】:

我想将文档[使用 GATE 开发人员工具突出显示] 的突出显示注释发布到新文件 [word 或 Excel]。有人可以帮我提出任何建议或这个吗? 提前致谢。

问候, 加亚特里

【问题讨论】:

    标签: gate


    【解决方案1】:

    抱歉,我还不能评论...

    这里有类似的问题Read annotated data from GATE datastore

    提供的答案(由 Ian Roberts 提供)可以将选定的注释存储在文件中。

    建议:使用嵌入式 GATE(使用 Java)。

    【讨论】:

      【解决方案2】:

      在 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 中查看:

      1. 在 MS Word 中打开保存的带注释的 xml 文件。
      2. 将 css 文件添加到存储注释文档的同一目录中。
      3. 在 Word 中打开“开发人员”选项卡。
      4. 选择文档模板图标。
      5. 选择 Linked CSS 选项卡,导航到带注释的文档和 css 文件的位置。
      6. 将 css 文件添加到链接样式表中。
      7. 将文档另存为网页。
      8. 导航到您保存 html 页面的位置并在您喜欢的浏览器中打开。
      9. 确保您已从页面设置中选择了打印背景颜色和图像。
      10. 为突出显示的文档打印。

      有点头疼,但如果您想要打印副本,它会起作用。该文档不会在 Word 中显示 css。我希望这会有所帮助。

      【讨论】:

        猜你喜欢
        • 2011-05-09
        • 2010-12-08
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-12-28
        • 1970-01-01
        • 2020-12-29
        • 1970-01-01
        相关资源
        最近更新 更多