GramWord: Difference between revisions
imported>Gfis sister projects |
imported>Gfis colored |
||
Line 4: | Line 4: | ||
Several decision algorithms use these tables to determine the grammatical type of all words in a text. In the HTML output, the recognized words are shown in different colors. | Several decision algorithms use these tables to determine the grammatical type of all words in a text. In the HTML output, the recognized words are shown in different colors. | ||
<!-- | |||
GramWord uses the following sister projects on [[Main Page|teherba.org]]: | GramWord uses the following sister projects on [[Main Page|teherba.org]]: | ||
* [[Common]] | * [[Common]] | ||
Line 10: | Line 10: | ||
* [[NumWord]] for number words, months and weekdays and | * [[NumWord]] for number words, months and weekdays and | ||
* [[Xtrans]] for XML filtering. | * [[Xtrans]] for XML filtering. | ||
--> | |||
===Short Example=== | ===Short Example=== | ||
A sentence from "Don Quijote": | A sentence from "Don Quijote" (hold the mouse over a colored word to see the type of the morphem): | ||
<blockquote> | <blockquote><span style="color:red;background:yellow" title="">Nachdem</span> <span style="color:white;background:crimson" title="SgPersNomvMs3">er</span> <span style="color:black;background:lightblue" title="Qant">alle</span> <span style="color:black;background:lightblue" title="Qant">diese</span> <span style="color:black;background:pink" title="Pl">Vorkehrungen</span> <span style="color:yellow;background:blue" title="SPa0">getroffen</span>, <span style="color:yellow;background:blue" title="SIp11">wollte</span> <span style="color:white;background:crimson" title="SgPersNomvMs3">er</span> <span style="color:white;background:gray" title="">nicht</span> <span style="color:black;background:lightblue" title="Cmpr">länger</span> <span style="color:yellow;background:blue" title="SIn0">warten</span>, <span style="color:yellow;background:blue" title="SIn0">sein</span> <span style="color:yellow;background:blue" title="RtWeak">Vorhaben</span> <span style="color:red;background:yellow" title="Shor">ins</span> <span style="color:black;background:pink" title="SgNt">Werk</span> <span style="color:red;background:yellow" title="Prim">zu</span> <span style="color:yellow;background:blue" title="RtWeak">setzen</span>; <span style="color:white;background:crimson" title="SgPersNomvNt3">es</span> drängte <span style="color:white;background:crimson" title="SgPersAccv3Ms">ihn</span> <span style="color:black;background:red" title="">dazu</span> <span style="color:white;background:green" title="DetmNomvSgMs">der</span> <span style="color:black;background:pink" title="SgMs">Gedanke</span> <span style="color:red;background:yellow" title="Prim">an</span> <span style="color:white;background:green" title="DetmNomvSgFm">die</span> <span style="color:black;background:pink" title="SgFm">Entbehrung</span>, <span style="color:white;background:green" title="DetmNomvSgFm">die</span> <span style="color:white;background:green" title="DetmNomvSgFm">die</span> <span style="color:black;background:pink" title="SgFm">Welt</span> <span style="color:red;background:yellow" title="">durch</span> <span style="color:yellow;background:blue" title="SIn0">sein</span> <span style="color:yellow;background:blue" title="RtWeak">Zögern</span> <span style="color:yellow;background:blue" title="SCs13">erleide</span>, derart <span style="color:yellow;background:blue" title="SIp91">waren</span> <span style="color:white;background:green" title="DetmNomvSgFm">die</span> Unbilden, <span style="color:white;background:crimson" title="Relt">denen</span> <span style="color:white;background:crimson" title="SgPersNomvMs3">er</span> <span style="color:red;background:yellow" title="Prim">zu</span> <span style="color:yellow;background:blue" title="RtWeak">steuern</span>, <span style="color:white;background:green" title="DetmNomvSgFm">die</span> <span style="color:black;background:pink" title="Pl">Ungerechtigkeiten</span>, <span style="color:white;background:green" title="DetmNomvSgFm">die</span> <span style="color:white;background:crimson" title="SgPersNomvMs3">er</span> <span style="color:yellow;background:blue" title="SCs93">zurechtzubringen</span>, <span style="color:white;background:green" title="DetmNomvSgFm">die</span> Ungebühr, <span style="color:white;background:green" title="DetmNomvSgMs">der</span> <span style="color:white;background:crimson" title="SgPersNomvMs3">er</span> <span style="color:yellow;background:blue" title="SCs93">abzuhelfen</span>, <span style="color:white;background:green" title="DetmNomvSgFm">die</span> Mißbräuche, <span style="color:white;background:green" title="DetmNomvSgFm">die</span> <span style="color:white;background:crimson" title="SgPersNomvMs3">er</span> wiedergutzumachen, <span style="color:black;background:lightblue" title="Root">kurz</span>, <span style="color:white;background:green" title="DetmNomvSgFm">die</span> <span style="color:black;background:pink" title="Pl">Pflichten</span>, <span style="color:white;background:crimson" title="Relt">denen</span> <span style="color:white;background:crimson" title="SgPersNomvMs3">er</span> <span style="color:red;background:yellow" title="Prim">zu</span> <span style="color:yellow;background:blue" title="RtWeak">genügen</span> <span style="color:yellow;background:blue" title="SIp13">gedachte</span>. <span style="color:blue;background:yellow" title="">Und</span> <span style="color:white;background:gray" title="">so</span>, <span style="color:white;background:gray" title="">ohne</span> | ||
irgendeinem <span style="color:red;background:yellow" title="Prim">von</span> <span style="color:white;background:crimson" title="SgPersGenv3Ms">seiner</span> Absicht <span style="color:black;background:pink" title="SgFm">Kunde</span> <span style="color:red;background:yellow" title="Prim">zu</span> <span style="color:yellow;background:blue" title="SIn0">geben</span> <span style="color:blue;background:yellow" title="">und</span> <span style="color:white;background:gray" title="">ohne</span> <span style="color:blue;background:yellow" title="">daß</span> <span style="color:white;background:crimson" title="UndtNomv">jemand</span> <span style="color:white;background:crimson" title="SgPersAccv3Ms">ihn</span> <span style="color:yellow;background:blue" title="SIp11">sah</span>, bewehrte <span style="color:white;background:crimson" title="SgPersNomvMs3">er</span> <span style="color:white;background:crimson" title="ReflSg3">sich</span> <span style="color:white;background:green" title="UndtGenvSgMs">eines</span> <span style="color:blue;background:chartreuse" title="PersSurn">Morgens</span> <span style="color:red;background:yellow" title="Prim">vor</span> Anbruch <span style="color:white;background:green" title="DetmGenvSgMs">des</span> <span style="color:black;background:pink" title="SgGe">Tages</span> - <span style="color:white;background:crimson" title="SgPersNomvNt3">es</span> <span style="color:yellow;background:blue" title="SIp11">war</span> <span style="color:white;background:green" title="UndtGenvSgFm">einer</span> <span style="color:white;background:green" title="DetmNomvSgMs">der</span> <span style="color:yellow;background:blue" title="SIn0">heißen</span> Julitage - <span style="color:red;background:yellow" title="Prim">mit</span> <span style="color:white;background:crimson" title="SgPersGenv3Ms">seiner</span> <span style="color:black;background:lightblue" title="Qant">ganzen</span> <span style="color:black;background:pink" title="SgFm">Rüstung</span>, <span style="color:yellow;background:blue" title="SIp11">stieg</span> <span style="color:red;background:yellow" title="Prim">auf</span> <span style="color:white;background:green" title="DetmDatvPl">den</span> <span style="color:blue;background:chartreuse" title="FmZool">Rosinante</span>, <span style="color:red;background:yellow" title="">nachdem</span> <span style="color:white;background:crimson" title="SgPersNomvMs3">er</span> <span style="color:white;background:crimson" title="SgPossDatvPl3">seinen</span> | |||
zusammengeflickten Turnierhelm aufgesetzt, faßte <span style="color:white;background:crimson" title="SgPossNomvFm3">seine</span> <span style="color:black;background:pink" title="SgFm">Tartsche</span> | |||
<span style="color:red;background:yellow" title="Prim">in</span> <span style="color:white;background:green" title="DetmDatvPl">den</span> <span style="color:black;background:pink" title="SgMsBody">Arm</span>, <span style="color:yellow;background:blue" title="SIp11">nahm</span> <span style="color:white;background:crimson" title="SgPossDatvPl3">seinen</span> <span style="color:black;background:pink" title="SgMs">Speer</span> <span style="color:blue;background:yellow" title="">und</span> <span style="color:yellow;background:blue" title="SIp11">zog</span> <span style="color:red;background:yellow" title="">durch</span> <span style="color:white;background:green" title="DetmNomvSgFm">die</span> Hinterpforte <span style="color:white;background:crimson" title="SgPossGenvMs3">seines</span> <span style="color:black;background:pink" title="SgGe">Hofes</span> <span style="color:red;background:yellow" title="">hinaus</span> <span style="color:red;background:yellow" title="Shor">aufs</span> <span style="color:black;background:pink" title="SgNt">Feld</span>, <span style="color:red;background:yellow" title="Prim">mit</span> <span style="color:black;background:lightblue" title="XC">gewaltiger</span> <span style="color:black;background:pink" title="SgFm">Befriedigung</span> <span style="color:blue;background:yellow" title="">und</span> Herzensfreude <span style="color:black;background:red" title="ModlAnct">darob</span>, <span style="color:red;background:yellow" title="Prim">mit</span> <span style="color:green;background:yellow" title="Prim">wie</span> <span style="color:blue;background:chartreuse" title="PersSurn">großer</span> <span style="color:black;background:pink" title="SgFm">Leichtigkeit</span> <span style="color:white;background:crimson" title="SgPersNomvMs3">er</span> <span style="color:yellow;background:blue" title="SIn0">sein</span> <span style="color:black;background:lightblue" title="XP">löbliches</span> <span style="color:yellow;background:blue" title="RtWeak">Vorhaben</span> <span style="color:yellow;background:blue" title="SCt93">auszuführen</span> <span style="color:yellow;background:blue" title="SPa0">begonnen</span>. | |||
</blockquote> | |||
<span | |||
<span | |||
<span | |||
<span | |||
<span | |||
<span | |||
<span | |||
<span | |||
<span | |||
<span | |||
<span | |||
<span | |||
'''[[GramWord/tempx|Longer Example]]''' (Chapters 1 - 4 from "Don Quijote")<br /> | '''[[GramWord/tempx|Longer Example]]''' (Chapters 1 - 4 from "Don Quijote")<br /> | ||
'''[[GramWord/docs/coding|Coding of Syntactic and Semantic Attributes of Words]]'''<br /> | '''[[GramWord/docs/coding|Coding of Syntactic and Semantic Attributes of Words]]'''<br /> | ||
'''[[GramWord/docs/decisions|Decision Algorithms]]'''<br /> | '''[[GramWord/docs/decisions|Decision Algorithms]]'''<br /> | ||
'''[[GramWord/docs/developer|Hints for developers]]'''<br /> | '''[[GramWord/docs/developer|Hints for developers]]'''<br /> | ||
'''[[GramWord/docs/bugs|Limitations and Bugs]]''' | '''[[GramWord/docs/bugs|Limitations and Bugs]]''' |
Revision as of 07:53, 19 September 2016
GramWord is a Java package which uses a relational (MySql) database to recognize a limited set of German words.
Sets of common words, names, roots and endings of verbs, substantives, adjectives and adverbs, together with their grammatical type and conjugation/declination are preloaded from dictionary files into database tables.
Several decision algorithms use these tables to determine the grammatical type of all words in a text. In the HTML output, the recognized words are shown in different colors.
Short Example
A sentence from "Don Quijote" (hold the mouse over a colored word to see the type of the morphem):
Nachdem er alle diese Vorkehrungen getroffen, wollte er nicht länger warten, sein Vorhaben ins Werk zu setzen; es drängte ihn dazu der Gedanke an die Entbehrung, die die Welt durch sein Zögern erleide, derart waren die Unbilden, denen er zu steuern, die Ungerechtigkeiten, die er zurechtzubringen, die Ungebühr, der er abzuhelfen, die Mißbräuche, die er wiedergutzumachen, kurz, die Pflichten, denen er zu genügen gedachte. Und so, ohne
irgendeinem von seiner Absicht Kunde zu geben und ohne daß jemand ihn sah, bewehrte er sich eines Morgens vor Anbruch des Tages - es war einer der heißen Julitage - mit seiner ganzen Rüstung, stieg auf den Rosinante, nachdem er seinen zusammengeflickten Turnierhelm aufgesetzt, faßte seine Tartsche in den Arm, nahm seinen Speer und zog durch die Hinterpforte seines Hofes hinaus aufs Feld, mit gewaltiger Befriedigung und Herzensfreude darob, mit wie großer Leichtigkeit er sein löbliches Vorhaben auszuführen begonnen.
Longer Example (Chapters 1 - 4 from "Don Quijote")
Coding of Syntactic and Semantic Attributes of Words
Decision Algorithms
Hints for developers
Limitations and Bugs