Sha256: cdedce32eea1058293f06377fe8e1b4d66ce18bd16d6ffe29c0b672113960730

Contents?: true

Size: 1.75 KB

Versions: 5

Compression:

Stored size: 1.75 KB

Contents

<!DOCTYPE html>
<html>
    <head>
        <link type="text/css" rel="stylesheet" href="markdown.css" />

        <title>NER Webservice</title>
    </head>
    <body>
        <h1>NER Webservice</h1>

        <p>
        * required

        <br />

        ** When entering a value no response will be displayed in the browser.
        </p>

        <form action="<%=url("/")%>" method="POST">
            <div>
                <label for="input">KAF input *</label>
                <br />

                <textarea id="input" name="input" cols="50" rows="10"></textarea>
            </div>
            <% 10.times do |t| %>
            <div>
              <label for="callbacks">Callback URL <%=t+1%>(**)</label>
              <br />

              <input id="callbacks" type="text" name="callbacks[]" />
            </div>
            <% end %>

            <div>
                <label for="error_callback">Error Callback</label>
                <br />

                <input id="error_callback" type="text" name="error_callback" />
            </div>

            <input type="submit" value="Submit" />
        </form>

        <h2>Actions</h2>

        <dl>
            <dt>GET /</dt>
            <dd>Shows this page</dd>

            <dt>POST /</dt>
            <dd>Submits a KAF document</dd>
        </dl>

        <h2>Parameters</h2>

        <dl>
            <dt>text *</dt>
            <dd>The KAF document to tag.</dd>

            <dt>language</dt>
            <dd>The language (code) to use, e.g. "en" or "fr".</dd>

            <dt>callbacks</dt>
            <dd>A collection of callback URLs that are processed as a chain.</dd>

            <dt>error_callback</dt>
            <dd>Errors are submitted to this URL in the "error" field.</dd>
        </dl>
    </body>
</html>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
opener-ner-2.0.4 lib/opener/ner/views/index.erb
opener-ner-2.0.3 lib/opener/ner/views/index.erb
opener-ner-2.0.2 lib/opener/ner/views/index.erb
opener-ner-2.0.1 lib/opener/ner/views/index.erb
opener-ner-2.0.0 lib/opener/ner/views/index.erb