NU IT
Northwestern University Information Technology
MorphAdorner Northwestern
 
MorphAdorner Server Services: CorpusConfig Service

Service name: corpusconfig
Service description: List available corpus configurations.
HTTP methods allowed: GET, POST, OPTIONS
POST accepts as input: application/x-www-form-urlencoded
HTTP return codes: 200: service succeeded
400: service failed with an error

Query parameters

    media Result format. One of json, xml, html, text .

Sample POST form

<form accept-charset="UTF-8" method="post" action="corpusconfig"
      target="_blank"
      name="corpusconfig">
<table cellpadding="0" cellspacing="5">
<tr>
<td valign="top">
<strong>Results format:</strong>
</td>
<td>
<input type="radio" name="media" value="json">JSON format</input><br />
<input type="radio" name="media" value="xml" checked="checked">XML format</input><br />
<input type="radio" name="media" value="html">HTML format</input><br />
<input type="radio" name="media" value="text">Text format</input>
</td>
</tr>
<tr>
<td>
<input type="submit" name="corpusconfig" value="Get configurations" />
</td>
</tr>
<tr>
</table>
</form>

Output

Here is sample corpus configuration output for the default set of configurations distributed with the MorphAdorner Server. In the JSON and XML output formats, the CorpusConfigResult contains a list of CorpusConfigInfo objects wrapped by a corpusConfigs container. Each CorpusConfigInfo object provides the name and description of a corpus configuration made available by the server. The HTML and text versions provide the same information in formats suitable for display.

JSON output

{
  "CorpusConfigResult": {
    "corpusConfigs": [
      {
        "CorpusConfigInfo": [
          {
            "name": "ece",
            "description": "Eighteenth Century English"
          },
          {
            "name": "eme",
            "description": "Early Modern English (~1475 to 1700)"
          },
          {
            "name": "ncf",
            "description": "Nineteeth Century British Fiction"
          }
        ]
      }
    ]
  }
}

XML output

<CorpusConfigResult>
    <corpusConfigs>
        <CorpusConfigInfo>
            <name>ece</name>
            <description>Eighteenth Century English</description>
        </CorpusConfigInfo>
        <CorpusConfigInfo>
            <name>eme</name>
            <description>Early Modern English (~1475 to 1700)</description>
        </CorpusConfigInfo>
        <CorpusConfigInfo>
            <name>ncf</name>
            <description>Nineteeth Century British Fiction</description>
        </CorpusConfigInfo>
    </corpusConfigs>
</CorpusConfigResult>

HTML output (source)

<h3>3 corpus configurations found.</h3>
<table border="0">
<tr>
<th align="left">Name</th>
<th align="left">Description</th>
</tr>
<tr>
<td valign="top" align="left"><strong>ece</strong></td>
<td valign="top" align="left">Eighteenth Century English</td>
</tr>
<tr>
<td valign="top" align="left"><strong>eme</strong></td>
<td valign="top" align="left">Early Modern English (~1475 to 1700)</td>
</tr>
<tr>
<td valign="top" align="left"><strong>ncf</strong></td>
<td valign="top" align="left">Nineteeth Century British Fiction</td>
</tr>
</table>

HTML output (display)

3 corpus configurations found.

Name Description
ece Eighteenth Century English
eme Early Modern English (~1475 to 1700)
ncf Nineteeth Century British Fiction

Text output

3 corpus configurations found.
Name	Description
ece	Eighteenth Century English
eme	Early Modern English (~1475 to 1700)
ncf	Nineteeth Century British Fiction
Home
 
Announcements and News
 
Documentation
 
Download MorphAdorner
 
Glossary
 
Helpful References
 
Licenses
 
Server
 
Talks
 
Tech Talk