niobures commited on
Commit
7b63815
·
verified ·
1 Parent(s): 4f6bb58

stanford-corenlp-v4.5.7

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +21 -0
  2. CoreNLP/stanford-corenlp-4.5.7/CoreNLP-to-HTML.xsl +188 -0
  3. CoreNLP/stanford-corenlp-4.5.7/LIBRARY-LICENSES +63 -0
  4. CoreNLP/stanford-corenlp-4.5.7/LICENSE.txt +674 -0
  5. CoreNLP/stanford-corenlp-4.5.7/Makefile +25 -0
  6. CoreNLP/stanford-corenlp-4.5.7/README.txt +180 -0
  7. CoreNLP/stanford-corenlp-4.5.7/RESOURCE-LICENSES +10 -0
  8. CoreNLP/stanford-corenlp-4.5.7/SemgrexDemo.java +56 -0
  9. CoreNLP/stanford-corenlp-4.5.7/ShiftReduceDemo.java +55 -0
  10. CoreNLP/stanford-corenlp-4.5.7/StanfordCoreNlpDemo.java +156 -0
  11. CoreNLP/stanford-corenlp-4.5.7/StanfordDependenciesManual.pdf +3 -0
  12. CoreNLP/stanford-corenlp-4.5.7/build.xml +192 -0
  13. CoreNLP/stanford-corenlp-4.5.7/corenlp.sh +22 -0
  14. CoreNLP/stanford-corenlp-4.5.7/ejml-core-0.39-sources.jar +3 -0
  15. CoreNLP/stanford-corenlp-4.5.7/ejml-core-0.39.jar +3 -0
  16. CoreNLP/stanford-corenlp-4.5.7/ejml-ddense-0.39-sources.jar +3 -0
  17. CoreNLP/stanford-corenlp-4.5.7/ejml-ddense-0.39.jar +3 -0
  18. CoreNLP/stanford-corenlp-4.5.7/ejml-simple-0.39-sources.jar +0 -0
  19. CoreNLP/stanford-corenlp-4.5.7/ejml-simple-0.39.jar +3 -0
  20. CoreNLP/stanford-corenlp-4.5.7/input.txt +1 -0
  21. CoreNLP/stanford-corenlp-4.5.7/input.txt.out +62 -0
  22. CoreNLP/stanford-corenlp-4.5.7/input.txt.xml +324 -0
  23. CoreNLP/stanford-corenlp-4.5.7/istack-commons-runtime-3.0.7-sources.jar +0 -0
  24. CoreNLP/stanford-corenlp-4.5.7/istack-commons-runtime-3.0.7.jar +0 -0
  25. CoreNLP/stanford-corenlp-4.5.7/javax.activation-api-1.2.0-sources.jar +0 -0
  26. CoreNLP/stanford-corenlp-4.5.7/javax.activation-api-1.2.0.jar +0 -0
  27. CoreNLP/stanford-corenlp-4.5.7/javax.json-api-1.0-sources.jar +0 -0
  28. CoreNLP/stanford-corenlp-4.5.7/javax.json.jar +0 -0
  29. CoreNLP/stanford-corenlp-4.5.7/jaxb-api-2.4.0-b180830.0359-sources.jar +3 -0
  30. CoreNLP/stanford-corenlp-4.5.7/jaxb-api-2.4.0-b180830.0359.jar +3 -0
  31. CoreNLP/stanford-corenlp-4.5.7/jaxb-impl-2.4.0-b180830.0438-sources.jar +3 -0
  32. CoreNLP/stanford-corenlp-4.5.7/jaxb-impl-2.4.0-b180830.0438.jar +3 -0
  33. CoreNLP/stanford-corenlp-4.5.7/joda-time-2.10.5-sources.jar +3 -0
  34. CoreNLP/stanford-corenlp-4.5.7/joda-time.jar +3 -0
  35. CoreNLP/stanford-corenlp-4.5.7/jollyday-0.4.9-sources.jar +3 -0
  36. CoreNLP/stanford-corenlp-4.5.7/jollyday.jar +3 -0
  37. CoreNLP/stanford-corenlp-4.5.7/patterns/example.properties +297 -0
  38. CoreNLP/stanford-corenlp-4.5.7/patterns/goldnames.txt +85 -0
  39. CoreNLP/stanford-corenlp-4.5.7/patterns/goldplaces.txt +2 -0
  40. CoreNLP/stanford-corenlp-4.5.7/patterns/names.txt +3 -0
  41. CoreNLP/stanford-corenlp-4.5.7/patterns/otherpeople.txt +4 -0
  42. CoreNLP/stanford-corenlp-4.5.7/patterns/places.txt +3 -0
  43. CoreNLP/stanford-corenlp-4.5.7/patterns/presidents.txt +275 -0
  44. CoreNLP/stanford-corenlp-4.5.7/patterns/stopwords.txt +257 -0
  45. CoreNLP/stanford-corenlp-4.5.7/pom-java-11.xml +228 -0
  46. CoreNLP/stanford-corenlp-4.5.7/pom-java-17.xml +228 -0
  47. CoreNLP/stanford-corenlp-4.5.7/pom.xml +222 -0
  48. CoreNLP/stanford-corenlp-4.5.7/protobuf-java-3.19.6.jar +3 -0
  49. CoreNLP/stanford-corenlp-4.5.7/sample-project-pom.xml +83 -0
  50. CoreNLP/stanford-corenlp-4.5.7/slf4j-api.jar +0 -0
.gitattributes CHANGED
@@ -143,3 +143,24 @@ CoreNLP/edu/stanford/nlp/models/dcoref/ne.signatures.txt filter=lfs diff=lfs mer
143
  CoreNLP/edu/stanford/nlp/models/kbp/english/gazetteers/regexner_caseless.tab filter=lfs diff=lfs merge=lfs -text
144
  CoreNLP/edu/stanford/nlp/models/pos-tagger/english-left3words-distsim.tagger filter=lfs diff=lfs merge=lfs -text
145
  CoreNLP/edu/stanford/nlp/models/supervised_relation_extractor/roth_relation_model_pipelineNER.ser filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  CoreNLP/edu/stanford/nlp/models/kbp/english/gazetteers/regexner_caseless.tab filter=lfs diff=lfs merge=lfs -text
144
  CoreNLP/edu/stanford/nlp/models/pos-tagger/english-left3words-distsim.tagger filter=lfs diff=lfs merge=lfs -text
145
  CoreNLP/edu/stanford/nlp/models/supervised_relation_extractor/roth_relation_model_pipelineNER.ser filter=lfs diff=lfs merge=lfs -text
146
+ CoreNLP/stanford-corenlp-4.5.7/ejml-core-0.39-sources.jar filter=lfs diff=lfs merge=lfs -text
147
+ CoreNLP/stanford-corenlp-4.5.7/ejml-core-0.39.jar filter=lfs diff=lfs merge=lfs -text
148
+ CoreNLP/stanford-corenlp-4.5.7/ejml-ddense-0.39-sources.jar filter=lfs diff=lfs merge=lfs -text
149
+ CoreNLP/stanford-corenlp-4.5.7/ejml-ddense-0.39.jar filter=lfs diff=lfs merge=lfs -text
150
+ CoreNLP/stanford-corenlp-4.5.7/ejml-simple-0.39.jar filter=lfs diff=lfs merge=lfs -text
151
+ CoreNLP/stanford-corenlp-4.5.7/jaxb-api-2.4.0-b180830.0359-sources.jar filter=lfs diff=lfs merge=lfs -text
152
+ CoreNLP/stanford-corenlp-4.5.7/jaxb-api-2.4.0-b180830.0359.jar filter=lfs diff=lfs merge=lfs -text
153
+ CoreNLP/stanford-corenlp-4.5.7/jaxb-impl-2.4.0-b180830.0438-sources.jar filter=lfs diff=lfs merge=lfs -text
154
+ CoreNLP/stanford-corenlp-4.5.7/jaxb-impl-2.4.0-b180830.0438.jar filter=lfs diff=lfs merge=lfs -text
155
+ CoreNLP/stanford-corenlp-4.5.7/joda-time-2.10.5-sources.jar filter=lfs diff=lfs merge=lfs -text
156
+ CoreNLP/stanford-corenlp-4.5.7/joda-time.jar filter=lfs diff=lfs merge=lfs -text
157
+ CoreNLP/stanford-corenlp-4.5.7/jollyday-0.4.9-sources.jar filter=lfs diff=lfs merge=lfs -text
158
+ CoreNLP/stanford-corenlp-4.5.7/jollyday.jar filter=lfs diff=lfs merge=lfs -text
159
+ CoreNLP/stanford-corenlp-4.5.7/protobuf-java-3.19.6.jar filter=lfs diff=lfs merge=lfs -text
160
+ CoreNLP/stanford-corenlp-4.5.7/stanford-corenlp-4.5.7-javadoc.jar filter=lfs diff=lfs merge=lfs -text
161
+ CoreNLP/stanford-corenlp-4.5.7/stanford-corenlp-4.5.7-models.jar filter=lfs diff=lfs merge=lfs -text
162
+ CoreNLP/stanford-corenlp-4.5.7/stanford-corenlp-4.5.7-sources.jar filter=lfs diff=lfs merge=lfs -text
163
+ CoreNLP/stanford-corenlp-4.5.7/stanford-corenlp-4.5.7.jar filter=lfs diff=lfs merge=lfs -text
164
+ CoreNLP/stanford-corenlp-4.5.7/StanfordDependenciesManual.pdf filter=lfs diff=lfs merge=lfs -text
165
+ CoreNLP/stanford-corenlp-4.5.7/xom-1.3.9-sources.jar filter=lfs diff=lfs merge=lfs -text
166
+ CoreNLP/stanford-corenlp-4.5.7/xom.jar filter=lfs diff=lfs merge=lfs -text
CoreNLP/stanford-corenlp-4.5.7/CoreNLP-to-HTML.xsl ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <xsl:stylesheet version="1.0"
4
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5
+ xmlns:d="http://nlp.stanford.edu/CoreNLP/v1">
6
+
7
+ <xsl:output method="html"/>
8
+
9
+ <xsl:template match="/">
10
+ <html>
11
+ <body>
12
+ <center><h2>Stanford CoreNLP XML Output</h2></center>
13
+ <hr size="3" color="#333333"/>
14
+ <center><h3>Document</h3></center>
15
+
16
+ <table border="1" style="background-color:#f0f0f0;" align="center">
17
+ <tr><th>Document Info</th></tr>
18
+ <tr><td>
19
+ <xsl:if test="root/document/docId">
20
+ <br/><i>DocId</i>: <xsl:value-of select="root/document/docId"/>
21
+ </xsl:if>
22
+ <xsl:if test="root/document/docDate">
23
+ <br/><i>DocDate</i>: <xsl:value-of select="root/document/docDate"/>
24
+ </xsl:if>
25
+ <xsl:if test="root/document/docSourceType">
26
+ <br/><i>DocSourceType</i>: <xsl:value-of select="root/document/docSourceType"/>
27
+ </xsl:if>
28
+ <xsl:if test="root/document/docType">
29
+ <br/><i>DocType</i>: <xsl:value-of select="root/document/docType"/>
30
+ </xsl:if>
31
+ <xsl:if test="root/document/author">
32
+ <br/><i>Author</i>: <xsl:value-of select="root/document/author"/>
33
+ </xsl:if>
34
+ <xsl:if test="root/document/location">
35
+ <br/><i>Location</i>: <xsl:value-of select="root/document/location"/>
36
+ </xsl:if>
37
+ </td></tr>
38
+
39
+ <xsl:if test="root/document/text">
40
+ <tr><th>Text</th></tr>
41
+ <tr><td>
42
+ <div class="preformatted">
43
+ <xsl:value-of select="root/document/text"/>
44
+ </div>
45
+ </td></tr>
46
+ </xsl:if>
47
+
48
+ <tr><th>Sentences</th></tr>
49
+ <xsl:for-each select="root/document/sentences/sentence">
50
+ <tr><td>
51
+ <xsl:apply-templates select=".">
52
+ <xsl:with-param name="position" select="position()"/>
53
+ </xsl:apply-templates>
54
+ </td></tr>
55
+ </xsl:for-each>
56
+
57
+ <tr><th>Coreference resolution graph</th></tr>
58
+ <tr><td>
59
+ <xsl:apply-templates select="root/document/coreference"/>
60
+ </td></tr>
61
+ </table>
62
+
63
+ </body>
64
+ </html>
65
+ </xsl:template>
66
+
67
+ <xsl:template match="root/document/sentences/sentence">
68
+ <xsl:param name="position" select="'0'"/>
69
+ <p><i><b>Sentence #<xsl:value-of select="$position"/></b></i>
70
+ <xsl:if test="@sentiment">
71
+ <xsl:text> Sentiment: </xsl:text><xsl:value-of select="@sentiment"/>
72
+ </xsl:if>
73
+ </p>
74
+
75
+ <p>
76
+ <i>Tokens</i><br/>
77
+ <xsl:apply-templates select="tokens"/>
78
+ </p>
79
+
80
+ <p>
81
+ <i>Parse tree</i><br/>
82
+ <xsl:value-of select="parse"/>
83
+ </p>
84
+
85
+ <p>
86
+ <i>Uncollapsed dependencies</i>
87
+ <ul>
88
+ <xsl:for-each select="dependencies[@type='basic-dependencies']">
89
+ <xsl:apply-templates select="dep"/>
90
+ </xsl:for-each>
91
+ </ul>
92
+ </p>
93
+
94
+ <p>
95
+ <i>Enhanced dependencies</i>
96
+ <ul>
97
+ <xsl:for-each select="dependencies[@type='collapsed-ccprocessed-dependencies']">
98
+ <xsl:apply-templates select="dep"/>
99
+ </xsl:for-each>
100
+ </ul>
101
+ </p>
102
+ </xsl:template>
103
+
104
+ <xsl:template match="tokens">
105
+ <table border="1">
106
+ <tr>
107
+ <th>Id</th>
108
+ <th>Word</th>
109
+ <th>Lemma</th>
110
+ <th>Char begin</th>
111
+ <th>Char end</th>
112
+ <th>POS</th>
113
+ <th>NER</th>
114
+ <th>Normalized NER</th>
115
+ <th>Speaker</th>
116
+ <th>Sentiment</th>
117
+ </tr>
118
+ <xsl:for-each select="token">
119
+ <tr>
120
+ <td><xsl:value-of select="@id"/></td>
121
+ <td><xsl:value-of select="word"/></td>
122
+ <td><xsl:value-of select="lemma"/></td>
123
+ <td><xsl:value-of select="CharacterOffsetBegin"/></td>
124
+ <td><xsl:value-of select="CharacterOffsetEnd"/></td>
125
+ <td><xsl:value-of select="POS"/></td>
126
+ <td><xsl:value-of select="NER"/></td>
127
+ <td><xsl:value-of select="NormalizedNER"/></td>
128
+ <td><xsl:value-of select="Speaker"/></td>
129
+ <td><xsl:value-of select="sentiment"/></td>
130
+ </tr>
131
+ </xsl:for-each>
132
+ </table>
133
+ </xsl:template>
134
+
135
+ <xsl:template match="dependencies">
136
+ <ul>
137
+ <xsl:for-each select="dep">
138
+ <xsl:apply-templates select="."/>
139
+ </xsl:for-each>
140
+ </ul>
141
+ </xsl:template>
142
+
143
+ <xsl:template match="dep">
144
+ <li>
145
+ <xsl:value-of select="@type"/>
146
+ (
147
+ <xsl:value-of select="governor"/><xsl:if test="governor/@copy">^<xsl:value-of select="governor/@copy"/></xsl:if>-<xsl:value-of select="governor/@idx"/>
148
+ ,
149
+ <xsl:value-of select="dependent"/><xsl:if test="dependent/@copy">^<xsl:value-of select="dependent/@copy"/></xsl:if>-<xsl:value-of select="dependent/@idx"/>
150
+ )
151
+ <xsl:if test="@extra">(extra)</xsl:if>
152
+ </li>
153
+ </xsl:template>
154
+
155
+ <xsl:template match="coreference">
156
+ <ol>
157
+ <xsl:for-each select="coreference">
158
+ <li>
159
+ <table border="1">
160
+ <tr>
161
+ <th>Sentence</th>
162
+ <th>Head</th>
163
+ <th>Text</th>
164
+ <th>Context</th>
165
+ </tr>
166
+ <xsl:for-each select="mention">
167
+ <tr>
168
+ <td><xsl:value-of select="sentence"/></td>
169
+ <td><xsl:value-of select="head"/> <xsl:if test="@representative"> (gov) </xsl:if></td>
170
+ <td><xsl:value-of select="text"/></td>
171
+ <td><xsl:if test="leftContext or rightContext">
172
+ ...<xsl:value-of select="leftContext"/>
173
+ <span style="background-color: #99ff99;">
174
+ <xsl:text> </xsl:text>
175
+ <xsl:value-of select="text"/></span>
176
+ <xsl:text> </xsl:text>
177
+ <xsl:value-of select="rightContext"/>...
178
+ </xsl:if>
179
+ </td>
180
+ </tr>
181
+ </xsl:for-each>
182
+ </table>
183
+ </li>
184
+ </xsl:for-each>
185
+ </ol>
186
+ </xsl:template>
187
+
188
+ </xsl:stylesheet>
CoreNLP/stanford-corenlp-4.5.7/LIBRARY-LICENSES ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ These are the 3rd party libraries which we currently distribute with Stanford CoreNLP.
2
+ All of them have licenses that are compatible with GPL v3.
3
+ All but the JSON library allow commercial use.
4
+ A compatible JSON library is a component of Java EE (JSR 374).
5
+
6
+ -----------------------------------------------------------------
7
+
8
+ ejml-0.38.jar
9
+
10
+ URL: http://ejml.org/
11
+
12
+ License: Apache v2.0
13
+
14
+ -----------------------------------------------------------------
15
+
16
+ javax.json.jar
17
+
18
+ URL: http://central.maven.org/maven2/javax/json/javax.json-api/1.0/javax.json-api-1.0.pom
19
+ https://json-processing-spec.java.net/
20
+
21
+ License: GNU GPLv2 with Classpath Exception (or CDDL)
22
+
23
+ -----------------------------------------------------------------
24
+
25
+ joda-time-2.9.4.jar
26
+
27
+ URL: http://www.joda.org/joda-time/
28
+
29
+ License: Apache License 2.0
30
+ http://www.joda.org/joda-time/license.html
31
+
32
+ -----------------------------------------
33
+
34
+ jollyday-0.4.9.jar
35
+
36
+ URL: http://jollyday.sourceforge.net/
37
+
38
+ License: Apache License 2.0
39
+ http://jollyday.sourceforge.net/license.html
40
+
41
+ -----------------------------------------
42
+
43
+ protobuf.jar
44
+
45
+ URL: https://github.com/google/protobuf/
46
+ https://developers.google.com/protocol-buffers/
47
+
48
+ License: BSD 3-clause license
49
+ https://github.com/google/protobuf/blob/master/LICENSE
50
+ http://opensource.org/licenses/BSD-3-Clause
51
+
52
+ -----------------------------------------
53
+
54
+ xom-1.2.10.jar
55
+
56
+ Url: http://www.xom.nu/
57
+ OR http://www.cafeconleche.org/XOM/
58
+
59
+ License: LGPL v2.1 Gnu lesser general public license
60
+ http://www.xom.nu/license.xhtml
61
+
62
+ -----------------------------------------
63
+
CoreNLP/stanford-corenlp-4.5.7/LICENSE.txt ADDED
@@ -0,0 +1,674 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU General Public License is a free, copyleft license for
11
+ software and other kinds of works.
12
+
13
+ The licenses for most software and other practical works are designed
14
+ to take away your freedom to share and change the works. By contrast,
15
+ the GNU General Public License is intended to guarantee your freedom to
16
+ share and change all versions of a program--to make sure it remains free
17
+ software for all its users. We, the Free Software Foundation, use the
18
+ GNU General Public License for most of our software; it applies also to
19
+ any other work released this way by its authors. You can apply it to
20
+ your programs, too.
21
+
22
+ When we speak of free software, we are referring to freedom, not
23
+ price. Our General Public Licenses are designed to make sure that you
24
+ have the freedom to distribute copies of free software (and charge for
25
+ them if you wish), that you receive source code or can get it if you
26
+ want it, that you can change the software or use pieces of it in new
27
+ free programs, and that you know you can do these things.
28
+
29
+ To protect your rights, we need to prevent others from denying you
30
+ these rights or asking you to surrender the rights. Therefore, you have
31
+ certain responsibilities if you distribute copies of the software, or if
32
+ you modify it: responsibilities to respect the freedom of others.
33
+
34
+ For example, if you distribute copies of such a program, whether
35
+ gratis or for a fee, you must pass on to the recipients the same
36
+ freedoms that you received. You must make sure that they, too, receive
37
+ or can get the source code. And you must show them these terms so they
38
+ know their rights.
39
+
40
+ Developers that use the GNU GPL protect your rights with two steps:
41
+ (1) assert copyright on the software, and (2) offer you this License
42
+ giving you legal permission to copy, distribute and/or modify it.
43
+
44
+ For the developers' and authors' protection, the GPL clearly explains
45
+ that there is no warranty for this free software. For both users' and
46
+ authors' sake, the GPL requires that modified versions be marked as
47
+ changed, so that their problems will not be attributed erroneously to
48
+ authors of previous versions.
49
+
50
+ Some devices are designed to deny users access to install or run
51
+ modified versions of the software inside them, although the manufacturer
52
+ can do so. This is fundamentally incompatible with the aim of
53
+ protecting users' freedom to change the software. The systematic
54
+ pattern of such abuse occurs in the area of products for individuals to
55
+ use, which is precisely where it is most unacceptable. Therefore, we
56
+ have designed this version of the GPL to prohibit the practice for those
57
+ products. If such problems arise substantially in other domains, we
58
+ stand ready to extend this provision to those domains in future versions
59
+ of the GPL, as needed to protect the freedom of users.
60
+
61
+ Finally, every program is threatened constantly by software patents.
62
+ States should not allow patents to restrict development and use of
63
+ software on general-purpose computers, but in those that do, we wish to
64
+ avoid the special danger that patents applied to a free program could
65
+ make it effectively proprietary. To prevent this, the GPL assures that
66
+ patents cannot be used to render the program non-free.
67
+
68
+ The precise terms and conditions for copying, distribution and
69
+ modification follow.
70
+
71
+ TERMS AND CONDITIONS
72
+
73
+ 0. Definitions.
74
+
75
+ "This License" refers to version 3 of the GNU General Public License.
76
+
77
+ "Copyright" also means copyright-like laws that apply to other kinds of
78
+ works, such as semiconductor masks.
79
+
80
+ "The Program" refers to any copyrightable work licensed under this
81
+ License. Each licensee is addressed as "you". "Licensees" and
82
+ "recipients" may be individuals or organizations.
83
+
84
+ To "modify" a work means to copy from or adapt all or part of the work
85
+ in a fashion requiring copyright permission, other than the making of an
86
+ exact copy. The resulting work is called a "modified version" of the
87
+ earlier work or a work "based on" the earlier work.
88
+
89
+ A "covered work" means either the unmodified Program or a work based
90
+ on the Program.
91
+
92
+ To "propagate" a work means to do anything with it that, without
93
+ permission, would make you directly or secondarily liable for
94
+ infringement under applicable copyright law, except executing it on a
95
+ computer or modifying a private copy. Propagation includes copying,
96
+ distribution (with or without modification), making available to the
97
+ public, and in some countries other activities as well.
98
+
99
+ To "convey" a work means any kind of propagation that enables other
100
+ parties to make or receive copies. Mere interaction with a user through
101
+ a computer network, with no transfer of a copy, is not conveying.
102
+
103
+ An interactive user interface displays "Appropriate Legal Notices"
104
+ to the extent that it includes a convenient and prominently visible
105
+ feature that (1) displays an appropriate copyright notice, and (2)
106
+ tells the user that there is no warranty for the work (except to the
107
+ extent that warranties are provided), that licensees may convey the
108
+ work under this License, and how to view a copy of this License. If
109
+ the interface presents a list of user commands or options, such as a
110
+ menu, a prominent item in the list meets this criterion.
111
+
112
+ 1. Source Code.
113
+
114
+ The "source code" for a work means the preferred form of the work
115
+ for making modifications to it. "Object code" means any non-source
116
+ form of a work.
117
+
118
+ A "Standard Interface" means an interface that either is an official
119
+ standard defined by a recognized standards body, or, in the case of
120
+ interfaces specified for a particular programming language, one that
121
+ is widely used among developers working in that language.
122
+
123
+ The "System Libraries" of an executable work include anything, other
124
+ than the work as a whole, that (a) is included in the normal form of
125
+ packaging a Major Component, but which is not part of that Major
126
+ Component, and (b) serves only to enable use of the work with that
127
+ Major Component, or to implement a Standard Interface for which an
128
+ implementation is available to the public in source code form. A
129
+ "Major Component", in this context, means a major essential component
130
+ (kernel, window system, and so on) of the specific operating system
131
+ (if any) on which the executable work runs, or a compiler used to
132
+ produce the work, or an object code interpreter used to run it.
133
+
134
+ The "Corresponding Source" for a work in object code form means all
135
+ the source code needed to generate, install, and (for an executable
136
+ work) run the object code and to modify the work, including scripts to
137
+ control those activities. However, it does not include the work's
138
+ System Libraries, or general-purpose tools or generally available free
139
+ programs which are used unmodified in performing those activities but
140
+ which are not part of the work. For example, Corresponding Source
141
+ includes interface definition files associated with source files for
142
+ the work, and the source code for shared libraries and dynamically
143
+ linked subprograms that the work is specifically designed to require,
144
+ such as by intimate data communication or control flow between those
145
+ subprograms and other parts of the work.
146
+
147
+ The Corresponding Source need not include anything that users
148
+ can regenerate automatically from other parts of the Corresponding
149
+ Source.
150
+
151
+ The Corresponding Source for a work in source code form is that
152
+ same work.
153
+
154
+ 2. Basic Permissions.
155
+
156
+ All rights granted under this License are granted for the term of
157
+ copyright on the Program, and are irrevocable provided the stated
158
+ conditions are met. This License explicitly affirms your unlimited
159
+ permission to run the unmodified Program. The output from running a
160
+ covered work is covered by this License only if the output, given its
161
+ content, constitutes a covered work. This License acknowledges your
162
+ rights of fair use or other equivalent, as provided by copyright law.
163
+
164
+ You may make, run and propagate covered works that you do not
165
+ convey, without conditions so long as your license otherwise remains
166
+ in force. You may convey covered works to others for the sole purpose
167
+ of having them make modifications exclusively for you, or provide you
168
+ with facilities for running those works, provided that you comply with
169
+ the terms of this License in conveying all material for which you do
170
+ not control copyright. Those thus making or running the covered works
171
+ for you must do so exclusively on your behalf, under your direction
172
+ and control, on terms that prohibit them from making any copies of
173
+ your copyrighted material outside their relationship with you.
174
+
175
+ Conveying under any other circumstances is permitted solely under
176
+ the conditions stated below. Sublicensing is not allowed; section 10
177
+ makes it unnecessary.
178
+
179
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
+
181
+ No covered work shall be deemed part of an effective technological
182
+ measure under any applicable law fulfilling obligations under article
183
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184
+ similar laws prohibiting or restricting circumvention of such
185
+ measures.
186
+
187
+ When you convey a covered work, you waive any legal power to forbid
188
+ circumvention of technological measures to the extent such circumvention
189
+ is effected by exercising rights under this License with respect to
190
+ the covered work, and you disclaim any intention to limit operation or
191
+ modification of the work as a means of enforcing, against the work's
192
+ users, your or third parties' legal rights to forbid circumvention of
193
+ technological measures.
194
+
195
+ 4. Conveying Verbatim Copies.
196
+
197
+ You may convey verbatim copies of the Program's source code as you
198
+ receive it, in any medium, provided that you conspicuously and
199
+ appropriately publish on each copy an appropriate copyright notice;
200
+ keep intact all notices stating that this License and any
201
+ non-permissive terms added in accord with section 7 apply to the code;
202
+ keep intact all notices of the absence of any warranty; and give all
203
+ recipients a copy of this License along with the Program.
204
+
205
+ You may charge any price or no price for each copy that you convey,
206
+ and you may offer support or warranty protection for a fee.
207
+
208
+ 5. Conveying Modified Source Versions.
209
+
210
+ You may convey a work based on the Program, or the modifications to
211
+ produce it from the Program, in the form of source code under the
212
+ terms of section 4, provided that you also meet all of these conditions:
213
+
214
+ a) The work must carry prominent notices stating that you modified
215
+ it, and giving a relevant date.
216
+
217
+ b) The work must carry prominent notices stating that it is
218
+ released under this License and any conditions added under section
219
+ 7. This requirement modifies the requirement in section 4 to
220
+ "keep intact all notices".
221
+
222
+ c) You must license the entire work, as a whole, under this
223
+ License to anyone who comes into possession of a copy. This
224
+ License will therefore apply, along with any applicable section 7
225
+ additional terms, to the whole of the work, and all its parts,
226
+ regardless of how they are packaged. This License gives no
227
+ permission to license the work in any other way, but it does not
228
+ invalidate such permission if you have separately received it.
229
+
230
+ d) If the work has interactive user interfaces, each must display
231
+ Appropriate Legal Notices; however, if the Program has interactive
232
+ interfaces that do not display Appropriate Legal Notices, your
233
+ work need not make them do so.
234
+
235
+ A compilation of a covered work with other separate and independent
236
+ works, which are not by their nature extensions of the covered work,
237
+ and which are not combined with it such as to form a larger program,
238
+ in or on a volume of a storage or distribution medium, is called an
239
+ "aggregate" if the compilation and its resulting copyright are not
240
+ used to limit the access or legal rights of the compilation's users
241
+ beyond what the individual works permit. Inclusion of a covered work
242
+ in an aggregate does not cause this License to apply to the other
243
+ parts of the aggregate.
244
+
245
+ 6. Conveying Non-Source Forms.
246
+
247
+ You may convey a covered work in object code form under the terms
248
+ of sections 4 and 5, provided that you also convey the
249
+ machine-readable Corresponding Source under the terms of this License,
250
+ in one of these ways:
251
+
252
+ a) Convey the object code in, or embodied in, a physical product
253
+ (including a physical distribution medium), accompanied by the
254
+ Corresponding Source fixed on a durable physical medium
255
+ customarily used for software interchange.
256
+
257
+ b) Convey the object code in, or embodied in, a physical product
258
+ (including a physical distribution medium), accompanied by a
259
+ written offer, valid for at least three years and valid for as
260
+ long as you offer spare parts or customer support for that product
261
+ model, to give anyone who possesses the object code either (1) a
262
+ copy of the Corresponding Source for all the software in the
263
+ product that is covered by this License, on a durable physical
264
+ medium customarily used for software interchange, for a price no
265
+ more than your reasonable cost of physically performing this
266
+ conveying of source, or (2) access to copy the
267
+ Corresponding Source from a network server at no charge.
268
+
269
+ c) Convey individual copies of the object code with a copy of the
270
+ written offer to provide the Corresponding Source. This
271
+ alternative is allowed only occasionally and noncommercially, and
272
+ only if you received the object code with such an offer, in accord
273
+ with subsection 6b.
274
+
275
+ d) Convey the object code by offering access from a designated
276
+ place (gratis or for a charge), and offer equivalent access to the
277
+ Corresponding Source in the same way through the same place at no
278
+ further charge. You need not require recipients to copy the
279
+ Corresponding Source along with the object code. If the place to
280
+ copy the object code is a network server, the Corresponding Source
281
+ may be on a different server (operated by you or a third party)
282
+ that supports equivalent copying facilities, provided you maintain
283
+ clear directions next to the object code saying where to find the
284
+ Corresponding Source. Regardless of what server hosts the
285
+ Corresponding Source, you remain obligated to ensure that it is
286
+ available for as long as needed to satisfy these requirements.
287
+
288
+ e) Convey the object code using peer-to-peer transmission, provided
289
+ you inform other peers where the object code and Corresponding
290
+ Source of the work are being offered to the general public at no
291
+ charge under subsection 6d.
292
+
293
+ A separable portion of the object code, whose source code is excluded
294
+ from the Corresponding Source as a System Library, need not be
295
+ included in conveying the object code work.
296
+
297
+ A "User Product" is either (1) a "consumer product", which means any
298
+ tangible personal property which is normally used for personal, family,
299
+ or household purposes, or (2) anything designed or sold for incorporation
300
+ into a dwelling. In determining whether a product is a consumer product,
301
+ doubtful cases shall be resolved in favor of coverage. For a particular
302
+ product received by a particular user, "normally used" refers to a
303
+ typical or common use of that class of product, regardless of the status
304
+ of the particular user or of the way in which the particular user
305
+ actually uses, or expects or is expected to use, the product. A product
306
+ is a consumer product regardless of whether the product has substantial
307
+ commercial, industrial or non-consumer uses, unless such uses represent
308
+ the only significant mode of use of the product.
309
+
310
+ "Installation Information" for a User Product means any methods,
311
+ procedures, authorization keys, or other information required to install
312
+ and execute modified versions of a covered work in that User Product from
313
+ a modified version of its Corresponding Source. The information must
314
+ suffice to ensure that the continued functioning of the modified object
315
+ code is in no case prevented or interfered with solely because
316
+ modification has been made.
317
+
318
+ If you convey an object code work under this section in, or with, or
319
+ specifically for use in, a User Product, and the conveying occurs as
320
+ part of a transaction in which the right of possession and use of the
321
+ User Product is transferred to the recipient in perpetuity or for a
322
+ fixed term (regardless of how the transaction is characterized), the
323
+ Corresponding Source conveyed under this section must be accompanied
324
+ by the Installation Information. But this requirement does not apply
325
+ if neither you nor any third party retains the ability to install
326
+ modified object code on the User Product (for example, the work has
327
+ been installed in ROM).
328
+
329
+ The requirement to provide Installation Information does not include a
330
+ requirement to continue to provide support service, warranty, or updates
331
+ for a work that has been modified or installed by the recipient, or for
332
+ the User Product in which it has been modified or installed. Access to a
333
+ network may be denied when the modification itself materially and
334
+ adversely affects the operation of the network or violates the rules and
335
+ protocols for communication across the network.
336
+
337
+ Corresponding Source conveyed, and Installation Information provided,
338
+ in accord with this section must be in a format that is publicly
339
+ documented (and with an implementation available to the public in
340
+ source code form), and must require no special password or key for
341
+ unpacking, reading or copying.
342
+
343
+ 7. Additional Terms.
344
+
345
+ "Additional permissions" are terms that supplement the terms of this
346
+ License by making exceptions from one or more of its conditions.
347
+ Additional permissions that are applicable to the entire Program shall
348
+ be treated as though they were included in this License, to the extent
349
+ that they are valid under applicable law. If additional permissions
350
+ apply only to part of the Program, that part may be used separately
351
+ under those permissions, but the entire Program remains governed by
352
+ this License without regard to the additional permissions.
353
+
354
+ When you convey a copy of a covered work, you may at your option
355
+ remove any additional permissions from that copy, or from any part of
356
+ it. (Additional permissions may be written to require their own
357
+ removal in certain cases when you modify the work.) You may place
358
+ additional permissions on material, added by you to a covered work,
359
+ for which you have or can give appropriate copyright permission.
360
+
361
+ Notwithstanding any other provision of this License, for material you
362
+ add to a covered work, you may (if authorized by the copyright holders of
363
+ that material) supplement the terms of this License with terms:
364
+
365
+ a) Disclaiming warranty or limiting liability differently from the
366
+ terms of sections 15 and 16 of this License; or
367
+
368
+ b) Requiring preservation of specified reasonable legal notices or
369
+ author attributions in that material or in the Appropriate Legal
370
+ Notices displayed by works containing it; or
371
+
372
+ c) Prohibiting misrepresentation of the origin of that material, or
373
+ requiring that modified versions of such material be marked in
374
+ reasonable ways as different from the original version; or
375
+
376
+ d) Limiting the use for publicity purposes of names of licensors or
377
+ authors of the material; or
378
+
379
+ e) Declining to grant rights under trademark law for use of some
380
+ trade names, trademarks, or service marks; or
381
+
382
+ f) Requiring indemnification of licensors and authors of that
383
+ material by anyone who conveys the material (or modified versions of
384
+ it) with contractual assumptions of liability to the recipient, for
385
+ any liability that these contractual assumptions directly impose on
386
+ those licensors and authors.
387
+
388
+ All other non-permissive additional terms are considered "further
389
+ restrictions" within the meaning of section 10. If the Program as you
390
+ received it, or any part of it, contains a notice stating that it is
391
+ governed by this License along with a term that is a further
392
+ restriction, you may remove that term. If a license document contains
393
+ a further restriction but permits relicensing or conveying under this
394
+ License, you may add to a covered work material governed by the terms
395
+ of that license document, provided that the further restriction does
396
+ not survive such relicensing or conveying.
397
+
398
+ If you add terms to a covered work in accord with this section, you
399
+ must place, in the relevant source files, a statement of the
400
+ additional terms that apply to those files, or a notice indicating
401
+ where to find the applicable terms.
402
+
403
+ Additional terms, permissive or non-permissive, may be stated in the
404
+ form of a separately written license, or stated as exceptions;
405
+ the above requirements apply either way.
406
+
407
+ 8. Termination.
408
+
409
+ You may not propagate or modify a covered work except as expressly
410
+ provided under this License. Any attempt otherwise to propagate or
411
+ modify it is void, and will automatically terminate your rights under
412
+ this License (including any patent licenses granted under the third
413
+ paragraph of section 11).
414
+
415
+ However, if you cease all violation of this License, then your
416
+ license from a particular copyright holder is reinstated (a)
417
+ provisionally, unless and until the copyright holder explicitly and
418
+ finally terminates your license, and (b) permanently, if the copyright
419
+ holder fails to notify you of the violation by some reasonable means
420
+ prior to 60 days after the cessation.
421
+
422
+ Moreover, your license from a particular copyright holder is
423
+ reinstated permanently if the copyright holder notifies you of the
424
+ violation by some reasonable means, this is the first time you have
425
+ received notice of violation of this License (for any work) from that
426
+ copyright holder, and you cure the violation prior to 30 days after
427
+ your receipt of the notice.
428
+
429
+ Termination of your rights under this section does not terminate the
430
+ licenses of parties who have received copies or rights from you under
431
+ this License. If your rights have been terminated and not permanently
432
+ reinstated, you do not qualify to receive new licenses for the same
433
+ material under section 10.
434
+
435
+ 9. Acceptance Not Required for Having Copies.
436
+
437
+ You are not required to accept this License in order to receive or
438
+ run a copy of the Program. Ancillary propagation of a covered work
439
+ occurring solely as a consequence of using peer-to-peer transmission
440
+ to receive a copy likewise does not require acceptance. However,
441
+ nothing other than this License grants you permission to propagate or
442
+ modify any covered work. These actions infringe copyright if you do
443
+ not accept this License. Therefore, by modifying or propagating a
444
+ covered work, you indicate your acceptance of this License to do so.
445
+
446
+ 10. Automatic Licensing of Downstream Recipients.
447
+
448
+ Each time you convey a covered work, the recipient automatically
449
+ receives a license from the original licensors, to run, modify and
450
+ propagate that work, subject to this License. You are not responsible
451
+ for enforcing compliance by third parties with this License.
452
+
453
+ An "entity transaction" is a transaction transferring control of an
454
+ organization, or substantially all assets of one, or subdividing an
455
+ organization, or merging organizations. If propagation of a covered
456
+ work results from an entity transaction, each party to that
457
+ transaction who receives a copy of the work also receives whatever
458
+ licenses to the work the party's predecessor in interest had or could
459
+ give under the previous paragraph, plus a right to possession of the
460
+ Corresponding Source of the work from the predecessor in interest, if
461
+ the predecessor has it or can get it with reasonable efforts.
462
+
463
+ You may not impose any further restrictions on the exercise of the
464
+ rights granted or affirmed under this License. For example, you may
465
+ not impose a license fee, royalty, or other charge for exercise of
466
+ rights granted under this License, and you may not initiate litigation
467
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
468
+ any patent claim is infringed by making, using, selling, offering for
469
+ sale, or importing the Program or any portion of it.
470
+
471
+ 11. Patents.
472
+
473
+ A "contributor" is a copyright holder who authorizes use under this
474
+ License of the Program or a work on which the Program is based. The
475
+ work thus licensed is called the contributor's "contributor version".
476
+
477
+ A contributor's "essential patent claims" are all patent claims
478
+ owned or controlled by the contributor, whether already acquired or
479
+ hereafter acquired, that would be infringed by some manner, permitted
480
+ by this License, of making, using, or selling its contributor version,
481
+ but do not include claims that would be infringed only as a
482
+ consequence of further modification of the contributor version. For
483
+ purposes of this definition, "control" includes the right to grant
484
+ patent sublicenses in a manner consistent with the requirements of
485
+ this License.
486
+
487
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
488
+ patent license under the contributor's essential patent claims, to
489
+ make, use, sell, offer for sale, import and otherwise run, modify and
490
+ propagate the contents of its contributor version.
491
+
492
+ In the following three paragraphs, a "patent license" is any express
493
+ agreement or commitment, however denominated, not to enforce a patent
494
+ (such as an express permission to practice a patent or covenant not to
495
+ sue for patent infringement). To "grant" such a patent license to a
496
+ party means to make such an agreement or commitment not to enforce a
497
+ patent against the party.
498
+
499
+ If you convey a covered work, knowingly relying on a patent license,
500
+ and the Corresponding Source of the work is not available for anyone
501
+ to copy, free of charge and under the terms of this License, through a
502
+ publicly available network server or other readily accessible means,
503
+ then you must either (1) cause the Corresponding Source to be so
504
+ available, or (2) arrange to deprive yourself of the benefit of the
505
+ patent license for this particular work, or (3) arrange, in a manner
506
+ consistent with the requirements of this License, to extend the patent
507
+ license to downstream recipients. "Knowingly relying" means you have
508
+ actual knowledge that, but for the patent license, your conveying the
509
+ covered work in a country, or your recipient's use of the covered work
510
+ in a country, would infringe one or more identifiable patents in that
511
+ country that you have reason to believe are valid.
512
+
513
+ If, pursuant to or in connection with a single transaction or
514
+ arrangement, you convey, or propagate by procuring conveyance of, a
515
+ covered work, and grant a patent license to some of the parties
516
+ receiving the covered work authorizing them to use, propagate, modify
517
+ or convey a specific copy of the covered work, then the patent license
518
+ you grant is automatically extended to all recipients of the covered
519
+ work and works based on it.
520
+
521
+ A patent license is "discriminatory" if it does not include within
522
+ the scope of its coverage, prohibits the exercise of, or is
523
+ conditioned on the non-exercise of one or more of the rights that are
524
+ specifically granted under this License. You may not convey a covered
525
+ work if you are a party to an arrangement with a third party that is
526
+ in the business of distributing software, under which you make payment
527
+ to the third party based on the extent of your activity of conveying
528
+ the work, and under which the third party grants, to any of the
529
+ parties who would receive the covered work from you, a discriminatory
530
+ patent license (a) in connection with copies of the covered work
531
+ conveyed by you (or copies made from those copies), or (b) primarily
532
+ for and in connection with specific products or compilations that
533
+ contain the covered work, unless you entered into that arrangement,
534
+ or that patent license was granted, prior to 28 March 2007.
535
+
536
+ Nothing in this License shall be construed as excluding or limiting
537
+ any implied license or other defenses to infringement that may
538
+ otherwise be available to you under applicable patent law.
539
+
540
+ 12. No Surrender of Others' Freedom.
541
+
542
+ If conditions are imposed on you (whether by court order, agreement or
543
+ otherwise) that contradict the conditions of this License, they do not
544
+ excuse you from the conditions of this License. If you cannot convey a
545
+ covered work so as to satisfy simultaneously your obligations under this
546
+ License and any other pertinent obligations, then as a consequence you may
547
+ not convey it at all. For example, if you agree to terms that obligate you
548
+ to collect a royalty for further conveying from those to whom you convey
549
+ the Program, the only way you could satisfy both those terms and this
550
+ License would be to refrain entirely from conveying the Program.
551
+
552
+ 13. Use with the GNU Affero General Public License.
553
+
554
+ Notwithstanding any other provision of this License, you have
555
+ permission to link or combine any covered work with a work licensed
556
+ under version 3 of the GNU Affero General Public License into a single
557
+ combined work, and to convey the resulting work. The terms of this
558
+ License will continue to apply to the part which is the covered work,
559
+ but the special requirements of the GNU Affero General Public License,
560
+ section 13, concerning interaction through a network will apply to the
561
+ combination as such.
562
+
563
+ 14. Revised Versions of this License.
564
+
565
+ The Free Software Foundation may publish revised and/or new versions of
566
+ the GNU General Public License from time to time. Such new versions will
567
+ be similar in spirit to the present version, but may differ in detail to
568
+ address new problems or concerns.
569
+
570
+ Each version is given a distinguishing version number. If the
571
+ Program specifies that a certain numbered version of the GNU General
572
+ Public License "or any later version" applies to it, you have the
573
+ option of following the terms and conditions either of that numbered
574
+ version or of any later version published by the Free Software
575
+ Foundation. If the Program does not specify a version number of the
576
+ GNU General Public License, you may choose any version ever published
577
+ by the Free Software Foundation.
578
+
579
+ If the Program specifies that a proxy can decide which future
580
+ versions of the GNU General Public License can be used, that proxy's
581
+ public statement of acceptance of a version permanently authorizes you
582
+ to choose that version for the Program.
583
+
584
+ Later license versions may give you additional or different
585
+ permissions. However, no additional obligations are imposed on any
586
+ author or copyright holder as a result of your choosing to follow a
587
+ later version.
588
+
589
+ 15. Disclaimer of Warranty.
590
+
591
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599
+
600
+ 16. Limitation of Liability.
601
+
602
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610
+ SUCH DAMAGES.
611
+
612
+ 17. Interpretation of Sections 15 and 16.
613
+
614
+ If the disclaimer of warranty and limitation of liability provided
615
+ above cannot be given local legal effect according to their terms,
616
+ reviewing courts shall apply local law that most closely approximates
617
+ an absolute waiver of all civil liability in connection with the
618
+ Program, unless a warranty or assumption of liability accompanies a
619
+ copy of the Program in return for a fee.
620
+
621
+ END OF TERMS AND CONDITIONS
622
+
623
+ How to Apply These Terms to Your New Programs
624
+
625
+ If you develop a new program, and you want it to be of the greatest
626
+ possible use to the public, the best way to achieve this is to make it
627
+ free software which everyone can redistribute and change under these terms.
628
+
629
+ To do so, attach the following notices to the program. It is safest
630
+ to attach them to the start of each source file to most effectively
631
+ state the exclusion of warranty; and each file should have at least
632
+ the "copyright" line and a pointer to where the full notice is found.
633
+
634
+ <one line to give the program's name and a brief idea of what it does.>
635
+ Copyright (C) <year> <name of author>
636
+
637
+ This program is free software: you can redistribute it and/or modify
638
+ it under the terms of the GNU General Public License as published by
639
+ the Free Software Foundation, either version 3 of the License, or
640
+ (at your option) any later version.
641
+
642
+ This program is distributed in the hope that it will be useful,
643
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
644
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645
+ GNU General Public License for more details.
646
+
647
+ You should have received a copy of the GNU General Public License
648
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
649
+
650
+ Also add information on how to contact you by electronic and paper mail.
651
+
652
+ If the program does terminal interaction, make it output a short
653
+ notice like this when it starts in an interactive mode:
654
+
655
+ <program> Copyright (C) <year> <name of author>
656
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657
+ This is free software, and you are welcome to redistribute it
658
+ under certain conditions; type `show c' for details.
659
+
660
+ The hypothetical commands `show w' and `show c' should show the appropriate
661
+ parts of the General Public License. Of course, your program's commands
662
+ might be different; for a GUI interface, you would use an "about box".
663
+
664
+ You should also get your employer (if you work as a programmer) or school,
665
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
666
+ For more information on this, and how to apply and follow the GNU GPL, see
667
+ <http://www.gnu.org/licenses/>.
668
+
669
+ The GNU General Public License does not permit incorporating your program
670
+ into proprietary programs. If your program is a subroutine library, you
671
+ may consider it more useful to permit linking proprietary applications with
672
+ the library. If this is what you want to do, use the GNU Lesser General
673
+ Public License instead of this License. But first, please read
674
+ <http://www.gnu.org/philosophy/why-not-lgpl.html>.
CoreNLP/stanford-corenlp-4.5.7/Makefile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This is a rudimentary Makefile for rebuilding Stanford CoreNLP.
2
+ # We actually use ant (q.v.) or a Java IDE.
3
+
4
+ JAVAC = javac
5
+ JAVAFLAGS = -O -d classes -encoding utf-8
6
+
7
+ # Builds the classes' jar file
8
+ corenlp: source
9
+ mkdir -p classes
10
+ $(JAVAC) $(JAVAFLAGS) src/edu/stanford/nlp/*/*.java \
11
+ src/edu/stanford/nlp/*/*/*.java \
12
+ src/edu/stanford/nlp/*/*/*/*.java \
13
+ src/edu/stanford/nlp/*/*/*/*/*.java \
14
+ src/edu/stanford/nlp/*/*/*/*/*/*.java
15
+ cd classes ; jar -cfm ../stanford-corenlp-`date +%Y-%m-%d`.jar ../src/META-INF/MANIFEST.MF edu ; cd ..
16
+
17
+ # Before making, unjar the source jar file in the 'src' directory
18
+ source:
19
+ if [ ! -e src ] ; then \
20
+ mkdir src ; cd src ; jar -xf ../stanford-corenlp-*-sources.jar; \
21
+ fi;
22
+
23
+ clean:
24
+ rm -rf classes
25
+ rm -rf src
CoreNLP/stanford-corenlp-4.5.7/README.txt ADDED
@@ -0,0 +1,180 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Stanford CoreNLP - Stanford's Suite of NLP Tools
2
+ ------------------------------------------------
3
+
4
+ Copyright © 2009-2020 The Board of Trustees of
5
+ The Leland Stanford Junior University. All Rights Reserved.
6
+
7
+ DOCUMENTATION
8
+
9
+ Please look at the URL below for documentation for Stanford CoreNLP:
10
+
11
+ https://nlp.stanford.edu/software/corenlp.html
12
+
13
+ LICENSE
14
+
15
+ //
16
+ // StanfordCoreNLP -- a suite of NLP tools
17
+ // Copyright © 2009-2020 The Board of Trustees of
18
+ // The Leland Stanford Junior University. All Rights Reserved.
19
+ //
20
+ // This program is free software; you can redistribute it and/or
21
+ // modify it under the terms of the GNU General Public License
22
+ // as published by the Free Software Foundation; either version 2
23
+ // of the License, or (at your option) any later version.
24
+ //
25
+ // This program is distributed in the hope that it will be useful,
26
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
27
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
+ // GNU General Public License for more details.
29
+ //
30
+ // You should have received a copy of the GNU General Public License
31
+ // along with this program. If not, see http://www.gnu.org/licenses/ .
32
+ //
33
+ // For more information, bug reports, fixes, contact:
34
+ // Christopher Manning
35
+ // Dept of Computer Science, Gates 2A
36
+ // Stanford CA 94305-9020
37
+ // USA
38
+ //
39
+
40
+ ---------------------------------
41
+ CHANGES
42
+ ---------------------------------
43
+
44
+ 2024-04-18 4.5.7 Add the f1 scores to the parser output,
45
+ improve the dependency converter
46
+
47
+ 2024-04-18 4.5.7 Add the f1 scores to the parser output
48
+
49
+ 2024-01-31 4.5.6 Minor lemmatizer and tokenizer fixes
50
+
51
+ 2023-09-06 4.5.5 Fix up some SD and UD conversion errors. Add
52
+ SceneGraph to the server. Fix Tregex optional
53
+ bug. "fourty" and forty (40) days in SUTime.
54
+
55
+ 2023-03-15 4.5.4 Minor updates to Ssurgeon, include the
56
+ Morphology CLI
57
+
58
+ 2023-03-10 4.5.3 Fix the collinizer. Add an Ssurgeon interface
59
+
60
+ 2023-01-19 4.5.2 Update package dependencies to avoid security
61
+ problems. Add protobuf CLI tools for use in
62
+ Python or elsewhere
63
+
64
+ 2022-08-29 4.5.1 Bugfixes to tokenizer and semgrex
65
+
66
+ 2022-07-21 4.5.0 Tokenizer and lemmatizer upgrades, along with
67
+ a new tsurgeon operation and some bugfixes
68
+
69
+ 2022-01-20 4.4.0 Fix issue with Italian depparse, tsurgeon CLI,
70
+ fix security issues, bug fixes
71
+
72
+ 2021-10-14 4.3.1 Minor bugfixes to German umlaut tokenization,
73
+ CDC tokenizer offset, Hungarian model package
74
+
75
+ 2021-09-26 4.3.0 Add trained tokenizer from corenlp-it, add
76
+ Italian and Hungarian pipelines using data
77
+ from FBK, UD, Szeged, NYTK, and SPMRL. Better
78
+ emoji support in the PTB tokenizer
79
+
80
+ 2021-05-14 4.2.2 Fix issue with demo.
81
+
82
+ 2021-05-05 4.2.1 Fix Turkish locale bug, QuoteAnnotator crash
83
+ fixes, smaller srparser models, improvements
84
+ to enhanced UD converter, Updated dependencies
85
+ (istack, protobuf), batch processing of
86
+ semgrex & enhancer requests when using stanza
87
+
88
+ 2020-11-16 4.2.0 Bug fixes, Retrained English parser models
89
+ with improved trees, Updated dependencies
90
+ (ejml, junit, jflex), Speed up loading
91
+ Wikidict annotator, New features for server
92
+ handling of tokensregex and tregex requests,
93
+ Release built directly from GitHub repo
94
+
95
+ 2020-07-31 4.1.0 Improved server interface, improved memory
96
+ usage of sutime, spanish tokenization upgrades
97
+
98
+ 2020-04-19 4.0.0 Changed to UDv2 tokenization ("new" LDC Treebank,
99
+ for English); handles multi-word-tokens;
100
+ improved UDv2-based taggers and parsers for
101
+ English, French, German, Spanish; new French NER;
102
+ new Chinese segmenter; library updates, bug fixes
103
+
104
+ 2018-10-05 3.9.2 improved NER pipeline and entity mention
105
+ confidences; support for Java 11; new POS
106
+ models for English; 4 methods for setting
107
+ document dates; tokenizer improvements;
108
+ CoreNLP runs as filter from stdin to stdout;
109
+ bug fixes
110
+
111
+ 2018-02-27 3.9.1 Bug fixes, minor enhancements
112
+
113
+ 2018-01-31 3.9.0 Spanish KBP and new dependency parse model,
114
+ wrapper API for data, quote attribution
115
+ improvements, easier use of coref info, bug
116
+ fixes
117
+
118
+ 2017-06-09 3.8.0 Web service annotator, discussion forum
119
+ handling, new French and Spanish models
120
+
121
+ 2016-10-31 3.7.0 KBP Annotator, improved coreference, Arabic
122
+ pipeline
123
+
124
+ 2015-12-09 3.6.0 Improved coreference, OpenIE integration,
125
+ Stanford CoreNLP server
126
+
127
+ 2015-04-20 3.5.2 Switch to Universal dependencies, add Chinese
128
+ coreference system to CoreNLP
129
+
130
+ 2015-01-29 3.5.1 NER, dependency parser, SPIED improvements;
131
+ general bugfixes
132
+
133
+ 2014-10-26 3.5.0 Upgrade to Java 1.8; add annotators for
134
+ dependency parsing and relation extraction
135
+
136
+ 2014-08-27 3.4.1 Add Spanish models
137
+
138
+ 2014-06-16 3.4 Add shift reduce parser
139
+
140
+ 2014-01-04 3.3.1 Bugfix release
141
+
142
+ 2013-11-12 3.3.0 Add sentiment model, minor sutime improvements
143
+
144
+ 2013-06-19 3.2.0 New RNN parser model, more efficient tagger
145
+
146
+ 2013-04-04 1.3.5 Speed improvements, coref improvements,
147
+ Chinese version, -nthreads option
148
+
149
+ 2012-11-12 1.3.4 Improved ner model and dependency code,
150
+ now possible to change annotator pool for
151
+ later StanfordCoreNLP objects
152
+
153
+ 2012-07-09 1.3.3 Minor bug fixes
154
+
155
+ 2012-05-22 1.3.2 Improvements to sutime
156
+
157
+ 2012-03-09 1.3.1 Now supports caseless models (available as DLC)
158
+
159
+ 2011-12-16 1.3.0 Threadsafe!
160
+ Bugs in time annotation fixed
161
+
162
+ 2011-09-14 1.2.0 Time expression recognizer added to ner annotator
163
+ Output bugfixes
164
+ Parser can now substitute for tagger
165
+
166
+ 2011-06-19 1.1.0 Improved coref release
167
+
168
+ 2011-05-15 1.0.4 More efficient dcoref data structure
169
+ Supports already-tokenized input text
170
+
171
+ 2011-04-17 1.0.3 Compatible with other releases
172
+ Support loading arbitrary annotators
173
+ Tagger bug fixes, such as "EOS" token
174
+
175
+ 2010-11-11 1.0.2 Remove wn.jar
176
+
177
+ 2010-11-11 1.0.1 Add xml removal
178
+
179
+ 2010-10-07 1.0 Initial release
180
+
CoreNLP/stanford-corenlp-4.5.7/RESOURCE-LICENSES ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ These resources were used in the creation of Stanford CoreNLP:
2
+
3
+ -----------------------------------------------------------------
4
+ Spanish Billion Word Corpus Embeddings
5
+
6
+ Notes: These embeddings were used in the training of the Spanish dependency parser.
7
+
8
+ URL: http://crscardellino.me/SBWCE/
9
+
10
+ License: Creative Commons Attribution-ShareAlike 4.0 International License
CoreNLP/stanford-corenlp-4.5.7/SemgrexDemo.java ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import edu.stanford.nlp.parser.lexparser.TreebankLangParserParams;
3
+ import edu.stanford.nlp.parser.lexparser.EnglishTreebankParserParams;
4
+ import edu.stanford.nlp.semgraph.SemanticGraph;
5
+ import edu.stanford.nlp.semgraph.SemanticGraphFactory;
6
+ import edu.stanford.nlp.semgraph.semgrex.SemgrexMatcher;
7
+ import edu.stanford.nlp.semgraph.semgrex.SemgrexPattern;
8
+ import edu.stanford.nlp.trees.GrammaticalStructure;
9
+ import edu.stanford.nlp.trees.GrammaticalStructureFactory;
10
+ import edu.stanford.nlp.trees.Tree;
11
+ import edu.stanford.nlp.util.logging.Redwood;
12
+
13
+ /**
14
+ * A small demo that shows how to convert a tree to a SemanticGraph
15
+ * and then run a SemgrexPattern on it
16
+ *
17
+ * @author John Bauer
18
+ */
19
+ public class SemgrexDemo {
20
+
21
+ /** A logger for this class */
22
+ private static final Redwood.RedwoodChannels log = Redwood.channels(SemgrexDemo.class);
23
+
24
+ private SemgrexDemo() {} // just static main
25
+
26
+ public static void main(String[] args) {
27
+ String treeString = "(ROOT (S (NP (PRP$ My) (NN dog)) (ADVP (RB also)) (VP (VBZ likes) (S (VP (VBG eating) (NP (NN sausage))))) (. .)))";
28
+ // Typically the tree is constructed by parsing or reading a
29
+ // treebank. This is just for example purposes
30
+ Tree tree = Tree.valueOf(treeString);
31
+
32
+ // This creates English uncollapsed dependencies as a
33
+ // SemanticGraph. If you are creating many SemanticGraphs, you
34
+ // should use a GrammaticalStructureFactory and use it to generate
35
+ // the intermediate GrammaticalStructure instead
36
+ SemanticGraph graph = SemanticGraphFactory.generateUncollapsedDependencies(tree);
37
+
38
+ // Alternatively, this could have been the Chinese params or any
39
+ // other language supported. As of 2014, only English and Chinese
40
+ TreebankLangParserParams params = new EnglishTreebankParserParams();
41
+ GrammaticalStructureFactory gsf = params.treebankLanguagePack().grammaticalStructureFactory(params.treebankLanguagePack().punctuationWordRejectFilter(), params.typedDependencyHeadFinder());
42
+
43
+ GrammaticalStructure gs = gsf.newGrammaticalStructure(tree);
44
+
45
+ log.info(graph);
46
+
47
+ SemgrexPattern semgrex = SemgrexPattern.compile("{}=A <<nsubj {}=B");
48
+ SemgrexMatcher matcher = semgrex.matcher(graph);
49
+ // This will produce two results on the given tree: "likes" is an
50
+ // ancestor of both "dog" and "my" via the nsubj relation
51
+ while (matcher.find()) {
52
+ log.info(matcher.getNode("A") + " <<nsubj " + matcher.getNode("B"));
53
+ }
54
+ }
55
+
56
+ }
CoreNLP/stanford-corenlp-4.5.7/ShiftReduceDemo.java ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import edu.stanford.nlp.util.logging.Redwood;
2
+
3
+ import java.io.StringReader;
4
+ import java.util.List;
5
+
6
+ import edu.stanford.nlp.ling.HasWord;
7
+ import edu.stanford.nlp.ling.TaggedWord;
8
+ import edu.stanford.nlp.parser.shiftreduce.ShiftReduceParser;
9
+ import edu.stanford.nlp.process.DocumentPreprocessor;
10
+ import edu.stanford.nlp.tagger.maxent.MaxentTagger;
11
+ import edu.stanford.nlp.trees.Tree;
12
+
13
+ /**
14
+ * Demonstrates how to first use the tagger, then use the
15
+ * ShiftReduceParser. Note that ShiftReduceParser will not work
16
+ * on untagged text.
17
+ *
18
+ * @author John Bauer
19
+ */
20
+ public class ShiftReduceDemo {
21
+
22
+ /** A logger for this class */
23
+ private static Redwood.RedwoodChannels log = Redwood.channels(ShiftReduceDemo.class);
24
+ public static void main(String[] args) {
25
+ String modelPath = "edu/stanford/nlp/models/srparser/englishSR.ser.gz";
26
+ String taggerPath = "edu/stanford/nlp/models/pos-tagger/english-left3words-distsim.tagger";
27
+
28
+ for (int argIndex = 0; argIndex < args.length; ) {
29
+ switch (args[argIndex]) {
30
+ case "-tagger":
31
+ taggerPath = args[argIndex + 1];
32
+ argIndex += 2;
33
+ break;
34
+ case "-model":
35
+ modelPath = args[argIndex + 1];
36
+ argIndex += 2;
37
+ break;
38
+ default:
39
+ throw new RuntimeException("Unknown argument " + args[argIndex]);
40
+ }
41
+ }
42
+
43
+ String text = "My dog likes to shake his stuffed chickadee toy.";
44
+
45
+ MaxentTagger tagger = new MaxentTagger(taggerPath);
46
+ ShiftReduceParser model = ShiftReduceParser.loadModel(modelPath);
47
+
48
+ DocumentPreprocessor tokenizer = new DocumentPreprocessor(new StringReader(text));
49
+ for (List<HasWord> sentence : tokenizer) {
50
+ List<TaggedWord> tagged = tagger.tagSentence(sentence);
51
+ Tree tree = model.apply(tagged);
52
+ log.info(tree);
53
+ }
54
+ }
55
+ }
CoreNLP/stanford-corenlp-4.5.7/StanfordCoreNlpDemo.java ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import java.io.*;
3
+ import java.util.*;
4
+
5
+ import edu.stanford.nlp.coref.CorefCoreAnnotations;
6
+
7
+ import edu.stanford.nlp.coref.data.CorefChain;
8
+ import edu.stanford.nlp.io.*;
9
+ import edu.stanford.nlp.ling.*;
10
+ import edu.stanford.nlp.pipeline.*;
11
+ import edu.stanford.nlp.semgraph.SemanticGraph;
12
+ import edu.stanford.nlp.semgraph.SemanticGraphCoreAnnotations;
13
+ import edu.stanford.nlp.semgraph.SemanticGraphEdge;
14
+ import edu.stanford.nlp.sentiment.SentimentCoreAnnotations;
15
+ import edu.stanford.nlp.trees.*;
16
+ import edu.stanford.nlp.util.*;
17
+
18
+ /** This class demonstrates building and using a Stanford CoreNLP pipeline. */
19
+ public class StanfordCoreNlpDemo {
20
+
21
+ private StanfordCoreNlpDemo() { } // static meain metho
22
+
23
+ /** Usage: java -cp "*" StanfordCoreNlpDemo [inputFile [outputTextFile [outputXmlFile]]] */
24
+ public static void main(String[] args) throws IOException {
25
+ // set up optional output files
26
+ PrintWriter out;
27
+ if (args.length > 1) {
28
+ out = new PrintWriter(args[1]);
29
+ } else {
30
+ out = new PrintWriter(System.out);
31
+ }
32
+ PrintWriter xmlOut = null;
33
+ if (args.length > 2) {
34
+ xmlOut = new PrintWriter(args[2]);
35
+ }
36
+
37
+ // Create a CoreNLP pipeline. To build the default pipeline, you can just use:
38
+ // StanfordCoreNLP pipeline = new StanfordCoreNLP(props);
39
+ // Here's a more complex setup example:
40
+ // Properties props = new Properties();
41
+ // props.put("annotators", "tokenize, ssplit, pos, lemma, ner, depparse");
42
+ // props.put("ner.model", "edu/stanford/nlp/models/ner/english.all.3class.distsim.crf.ser.gz");
43
+ // props.put("ner.applyNumericClassifiers", "false");
44
+ // StanfordCoreNLP pipeline = new StanfordCoreNLP(props);
45
+
46
+ // Add in sentiment
47
+ Properties props = new Properties();
48
+ props.setProperty("annotators", "tokenize, ssplit, pos, lemma, ner, parse, dcoref, sentiment");
49
+
50
+ StanfordCoreNLP pipeline = new StanfordCoreNLP(props);
51
+
52
+ // Initialize an Annotation with some text to be annotated. The text is the argument to the constructor.
53
+ Annotation annotation;
54
+ if (args.length > 0) {
55
+ annotation = new Annotation(IOUtils.slurpFileNoExceptions(args[0]));
56
+ } else {
57
+ annotation = new Annotation("Kosgi Santosh sent an email to Stanford University. He didn't get a reply.");
58
+ }
59
+
60
+ // run all the selected Annotators on this text
61
+ pipeline.annotate(annotation);
62
+
63
+ // this prints out the results of sentence analysis to file(s) in good formats
64
+ pipeline.prettyPrint(annotation, out);
65
+ if (xmlOut != null) {
66
+ pipeline.xmlPrint(annotation, xmlOut);
67
+ }
68
+
69
+ // Access the Annotation in code
70
+ // The toString() method on an Annotation just prints the text of the Annotation
71
+ // But you can see what is in it with other methods like toShorterString()
72
+ out.println();
73
+ out.println("The top level annotation");
74
+ out.println(annotation.toShorterString());
75
+ out.println();
76
+
77
+ // An Annotation is a Map with Class keys for the linguistic analysis types.
78
+ // You can get and use the various analyses individually.
79
+ // For instance, this gets the parse tree of the first sentence in the text.
80
+ List<CoreMap> sentences = annotation.get(CoreAnnotations.SentencesAnnotation.class);
81
+ if (sentences != null && ! sentences.isEmpty()) {
82
+ CoreMap sentence = sentences.get(0);
83
+ out.println("The keys of the first sentence's CoreMap are:");
84
+ out.println(sentence.keySet());
85
+ out.println();
86
+ out.println("The first sentence is:");
87
+ out.println(sentence.toShorterString());
88
+ out.println();
89
+ out.println("The first sentence tokens are:");
90
+ for (CoreMap token : sentence.get(CoreAnnotations.TokensAnnotation.class)) {
91
+ out.println(token.toShorterString());
92
+ }
93
+ Tree tree = sentence.get(TreeCoreAnnotations.TreeAnnotation.class);
94
+ out.println();
95
+ out.println("The first sentence parse tree is:");
96
+ tree.pennPrint(out);
97
+ out.println();
98
+ out.println("The first sentence basic dependencies are:");
99
+ out.println(sentence.get(SemanticGraphCoreAnnotations.BasicDependenciesAnnotation.class).toString(SemanticGraph.OutputFormat.LIST));
100
+ out.println("The first sentence collapsed, CC-processed dependencies are:");
101
+ SemanticGraph graph = sentence.get(SemanticGraphCoreAnnotations.CollapsedCCProcessedDependenciesAnnotation.class);
102
+ out.println(graph.toString(SemanticGraph.OutputFormat.LIST));
103
+
104
+ // Print out dependency structure around one word
105
+ // This give some idea of how to navigate the dependency structure in a SemanticGraph
106
+ IndexedWord node = graph.getNodeByIndexSafe(5);
107
+ // The below way also works
108
+ // IndexedWord node = new IndexedWord(sentences.get(0).get(CoreAnnotations.TokensAnnotation.class).get(5 - 1));
109
+ out.println("Printing dependencies around \"" + node.word() + "\" index " + node.index());
110
+ List<SemanticGraphEdge> edgeList = graph.getIncomingEdgesSorted(node);
111
+ if (! edgeList.isEmpty()) {
112
+ assert edgeList.size() == 1;
113
+ int head = edgeList.get(0).getGovernor().index();
114
+ String headWord = edgeList.get(0).getGovernor().word();
115
+ String deprel = edgeList.get(0).getRelation().toString();
116
+ out.println("Parent is word \"" + headWord + "\" index " + head + " via " + deprel);
117
+ } else {
118
+ out.println("Parent is ROOT via root");
119
+ }
120
+ edgeList = graph.outgoingEdgeList(node);
121
+ for (SemanticGraphEdge edge : edgeList) {
122
+ String depWord = edge.getDependent().word();
123
+ int depIdx = edgeList.get(0).getDependent().index();
124
+ String deprel = edge.getRelation().toString();
125
+ out.println("Child is \"" + depWord + "\" (" + depIdx + ") via " + deprel);
126
+ }
127
+ out.println();
128
+
129
+
130
+ // Access coreference. In the coreference link graph,
131
+ // each chain stores a set of mentions that co-refer with each other,
132
+ // along with a method for getting the most representative mention.
133
+ // Both sentence and token offsets start at 1!
134
+ out.println("Coreference information");
135
+ Map<Integer, CorefChain> corefChains =
136
+ annotation.get(CorefCoreAnnotations.CorefChainAnnotation.class);
137
+ if (corefChains == null) { return; }
138
+ for (Map.Entry<Integer,CorefChain> entry: corefChains.entrySet()) {
139
+ out.println("Chain " + entry.getKey());
140
+ for (CorefChain.CorefMention m : entry.getValue().getMentionsInTextualOrder()) {
141
+ // We need to subtract one since the indices count from 1 but the Lists start from 0
142
+ List<CoreLabel> tokens = sentences.get(m.sentNum - 1).get(CoreAnnotations.TokensAnnotation.class);
143
+ // We subtract two for end: one for 0-based indexing, and one because we want last token of mention not one following.
144
+ out.println(" " + m + ", i.e., 0-based character offsets [" + tokens.get(m.startIndex - 1).beginPosition() +
145
+ ", " + tokens.get(m.endIndex - 2).endPosition() + ')');
146
+ }
147
+ }
148
+ out.println();
149
+
150
+ out.println("The first sentence overall sentiment rating is " + sentence.get(SentimentCoreAnnotations.SentimentClass.class));
151
+ }
152
+ IOUtils.closeIgnoringExceptions(out);
153
+ IOUtils.closeIgnoringExceptions(xmlOut);
154
+ }
155
+
156
+ }
CoreNLP/stanford-corenlp-4.5.7/StanfordDependenciesManual.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6a90a59b2fa5f2a15b034b873ae50e45aa149d4b1eb4e28070480a75694c367
3
+ size 199885
CoreNLP/stanford-corenlp-4.5.7/build.xml ADDED
@@ -0,0 +1,192 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!-- build.xml file for ant for Stanford CoreNLP -->
2
+
3
+ <!-- Before using this, unjar the sources' jar file into the src/ directory! -->
4
+
5
+ <!-- A "project" describes a set of targets that may be requested
6
+ when Ant is executed. The "default" attribute defines the
7
+ target which is executed if no specific target is requested,
8
+ and the "basedir" attribute defines the current working directory
9
+ from which Ant executes the requested task. This is normally
10
+ set to the current working directory.
11
+ -->
12
+
13
+ <project name="StanfordCoreNLP" default="compile" basedir=".">
14
+
15
+ <property name="build.home" value="${basedir}/classes"/>
16
+ <property name="build.tests" value="${basedir}/classes"/>
17
+ <property name="docs.home" value="${basedir}/docs"/>
18
+ <property name="src.home" value="${basedir}/src"/>
19
+ <property name="javadoc.home" value="${basedir}/javadoc"/>
20
+
21
+
22
+ <!-- ==================== Compilation Control Options ==================== -->
23
+
24
+ <!--
25
+
26
+ These properties control option settings on the Javac compiler when it
27
+ is invoked using the <javac> task.
28
+
29
+ compile.debug Should compilation include the debug option?
30
+
31
+ compile.deprecation Should compilation include the deprecation option?
32
+
33
+ compile.optimize Should compilation include the optimize option?
34
+
35
+ compile.source Source version compatibility
36
+
37
+ compile.target Target class version compatibility
38
+
39
+ -->
40
+
41
+ <property name="compile.debug" value="true"/>
42
+ <property name="compile.deprecation" value="false"/>
43
+ <property name="compile.optimize" value="true"/>
44
+ <property name="compile.source" value="1.8" />
45
+ <property name="compile.target" value="1.8" />
46
+ <property name="compile.encoding" value="utf-8" />
47
+
48
+
49
+
50
+
51
+ <!-- ==================== All Target ====================================== -->
52
+
53
+ <!--
54
+
55
+ The "all" target is a shortcut for running the "clean" target followed
56
+ by the "compile" target, to force a complete recompile.
57
+
58
+ -->
59
+
60
+ <target name="all" depends="clean,compile"
61
+ description="Clean build and dist directories, then compile"/>
62
+
63
+
64
+
65
+ <!-- ==================== Clean Target ==================================== -->
66
+
67
+ <!--
68
+
69
+ The "clean" target deletes any previous "build" and "dist" directory,
70
+ so that you can be ensured the application can be built from scratch.
71
+
72
+ -->
73
+
74
+ <target name="clean" description="Delete old classes">
75
+ <delete dir="${build.home}/edu"/>
76
+ </target>
77
+
78
+
79
+
80
+ <!-- ==================== Compile Target ================================== -->
81
+
82
+ <!--
83
+
84
+ The "compile" target transforms source files (from your "src" directory)
85
+ into object files in the appropriate location in the build directory.
86
+ This example assumes that you will be including your classes in an
87
+ unpacked directory hierarchy under "/WEB-INF/classes".
88
+
89
+ -->
90
+
91
+ <target name="compile" depends="prepare"
92
+ description="Compile Java sources">
93
+
94
+ <!-- Compile Java classes as necessary -->
95
+ <mkdir dir="${build.home}"/>
96
+ <javac srcdir="${src.home}"
97
+ destdir="${build.home}"
98
+ debug="${compile.debug}"
99
+ encoding="${compile.encoding}"
100
+ deprecation="${compile.deprecation}"
101
+ optimize="${compile.optimize}"
102
+ source="${compile.source}"
103
+ target="${compile.target}"
104
+ includeantruntime="false">
105
+ <compilerarg value="-Xmaxerrs"/>
106
+ <compilerarg value="20"/>
107
+ <classpath>
108
+ <fileset dir="${basedir}">
109
+ <include name="*.jar"/>
110
+ <exclude name="stanford-corenlp*"/>
111
+ </fileset>
112
+ </classpath>
113
+ <!-- <compilerarg value="-Xlint"/> -->
114
+ </javac>
115
+
116
+ <!-- Copy application resources -->
117
+ <!--
118
+ <copy todir="${build.home}/WEB-INF/classes">
119
+ <fileset dir="${src.home}" excludes="**/*.java"/>
120
+ </copy>
121
+ -->
122
+
123
+ </target>
124
+
125
+
126
+ <!-- ==================== Javadoc Target ================================== -->
127
+
128
+ <!--
129
+
130
+ The "javadoc" target creates Javadoc API documentation for the Java
131
+ classes included in your application. Normally, this is only required
132
+ when preparing a distribution release, but is available as a separate
133
+ target in case the developer wants to create Javadocs independently.
134
+
135
+ -->
136
+
137
+ <target name="javadoc" depends="compile"
138
+ description="Create Javadoc API documentation">
139
+
140
+ <mkdir dir="${javadoc.home}"/>
141
+ <javadoc sourcepath="${src.home}"
142
+ destdir="${javadoc.home}"
143
+ maxmemory="1g"
144
+ author="true"
145
+ source="${compile.source}"
146
+ overview="${src.home}/edu/stanford/nlp/overview.html"
147
+ doctitle="Stanford JavaNLP API Documentation"
148
+ windowtitle="Stanford JavaNLP API"
149
+ encoding="${compile.encoding}"
150
+ docencoding="${compile.encoding}"
151
+ charset="${compile.encoding}"
152
+ packagenames="*">
153
+ <!-- Allow @generated, @modifiable and @ordered tags -->
154
+ <tag name="generated" scope="all" description="Generated" />
155
+ <tag name="modifiable" scope="all" description="Modifiable" />
156
+ <tag name="ordered" scope="all" description="Ordered" />
157
+ <!-- Depends on lib and classes folders -->
158
+ <classpath>
159
+ <fileset dir="${basedir}">
160
+ <include name="*.jar"/>
161
+ <exclude name="stanford-corenlp*"/>
162
+ </fileset>
163
+ <pathelement path="${build.home}" />
164
+ </classpath>
165
+ <bottom><![CDATA[<font size="2"><a href="https://nlp.stanford.edu" target="_top">Stanford NLP Group</a></font>]]></bottom>
166
+ <link href="https://docs.oracle.com/javase/8/docs/api/"/>
167
+ </javadoc>
168
+
169
+ </target>
170
+
171
+
172
+ <!-- ==================== Prepare Target ================================== -->
173
+
174
+ <!--
175
+
176
+ The "prepare" target is used to create the "build" destination directory,
177
+ and copy the static contents of your web application to it. If you need
178
+ to copy static files from external dependencies, you can customize the
179
+ contents of this task.
180
+
181
+ Normally, this task is executed indirectly when needed.
182
+
183
+ -->
184
+
185
+ <target name="prepare">
186
+
187
+ <!-- Create build directories as needed -->
188
+ <mkdir dir="${build.home}"/>
189
+
190
+ </target>
191
+
192
+ </project>
CoreNLP/stanford-corenlp-4.5.7/corenlp.sh ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ #
3
+ # Runs Stanford CoreNLP.
4
+ # Simple uses for xml and plain text output to files are:
5
+ # ./corenlp.sh -file filename
6
+ # ./corenlp.sh -file filename -outputFormat text
7
+ # Split into sentences, run POS tagger and NER, write CoNLL-style TSV file:
8
+ # ./corenlp.sh -annotators tokenize,ssplit,pos,lemma,ner -outputFormat conll -file input.txt
9
+ # You can also start a simple shell where you can enter sentences to be processed:
10
+ # ./corenlp.sh
11
+
12
+ OS=`uname`
13
+ # Some machines (older OS X, BSD, Windows environments) don't support readlink -e
14
+ if hash readlink 2>/dev/null; then
15
+ scriptdir=`dirname $0`
16
+ else
17
+ scriptpath=$(readlink -e "$0") || scriptpath=$0
18
+ scriptdir=$(dirname "$scriptpath")
19
+ fi
20
+
21
+ echo java -mx5g -cp \"$scriptdir/*\" edu.stanford.nlp.pipeline.StanfordCoreNLP $*
22
+ java -mx5g -cp "$scriptdir/*" edu.stanford.nlp.pipeline.StanfordCoreNLP $*
CoreNLP/stanford-corenlp-4.5.7/ejml-core-0.39-sources.jar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1a325d01adf3fb42c049578e75e9bcd0189d96a35a3b7e73229528fda09ef8e
3
+ size 196966
CoreNLP/stanford-corenlp-4.5.7/ejml-core-0.39.jar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:175ae3369898dd5f2648c59832727c8985e067e207f747757d9f336df8f37a2d
3
+ size 199192
CoreNLP/stanford-corenlp-4.5.7/ejml-ddense-0.39-sources.jar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea6ca7416d27b0e7a91ff4ea703b3948f80913b412f07fd89088c7a237adb6d7
3
+ size 314835
CoreNLP/stanford-corenlp-4.5.7/ejml-ddense-0.39.jar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2083041c0e1af8f7cb6ebb6ffda2aedd869d0e331275f3731ad16ce36bc510ca
3
+ size 335068
CoreNLP/stanford-corenlp-4.5.7/ejml-simple-0.39-sources.jar ADDED
Binary file (79 kB). View file
 
CoreNLP/stanford-corenlp-4.5.7/ejml-simple-0.39.jar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29d0c255a792c7441cc22cefce35e977078790ee74605c6bab96847a499a4d76
3
+ size 178321
CoreNLP/stanford-corenlp-4.5.7/input.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Stanford University is located in California. It is a great university, founded in 1891.
CoreNLP/stanford-corenlp-4.5.7/input.txt.out ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Document: ID=input.txt (2 sentences, 17 tokens)
2
+
3
+ Sentence #1 (7 tokens):
4
+ Stanford University is located in California.
5
+
6
+ Tokens:
7
+ [Text=Stanford CharacterOffsetBegin=0 CharacterOffsetEnd=8 PartOfSpeech=NNP Lemma=Stanford NamedEntityTag=ORGANIZATION]
8
+ [Text=University CharacterOffsetBegin=9 CharacterOffsetEnd=19 PartOfSpeech=NNP Lemma=University NamedEntityTag=ORGANIZATION]
9
+ [Text=is CharacterOffsetBegin=20 CharacterOffsetEnd=22 PartOfSpeech=VBZ Lemma=be NamedEntityTag=O]
10
+ [Text=located CharacterOffsetBegin=23 CharacterOffsetEnd=30 PartOfSpeech=VBN Lemma=locate NamedEntityTag=O]
11
+ [Text=in CharacterOffsetBegin=31 CharacterOffsetEnd=33 PartOfSpeech=IN Lemma=in NamedEntityTag=O]
12
+ [Text=California CharacterOffsetBegin=34 CharacterOffsetEnd=44 PartOfSpeech=NNP Lemma=California NamedEntityTag=STATE_OR_PROVINCE]
13
+ [Text=. CharacterOffsetBegin=44 CharacterOffsetEnd=45 PartOfSpeech=. Lemma=. NamedEntityTag=O]
14
+
15
+ Dependency Parse (enhanced plus plus dependencies):
16
+ root(ROOT-0, located-4)
17
+ compound(University-2, Stanford-1)
18
+ nsubj:pass(located-4, University-2)
19
+ aux:pass(located-4, is-3)
20
+ case(California-6, in-5)
21
+ obl:in(located-4, California-6)
22
+ punct(located-4, .-7)
23
+
24
+ Extracted the following NER entity mentions:
25
+ Stanford University ORGANIZATION ORGANIZATION:0.9997806909488275
26
+ California STATE_OR_PROVINCE LOCATION:0.9994287460271556
27
+
28
+ Extracted the following KBP triples:
29
+ 1.0 Stanford University org:stateorprovince_of_headquarters California
30
+
31
+ Sentence #2 (10 tokens):
32
+ It is a great university, founded in 1891.
33
+
34
+ Tokens:
35
+ [Text=It CharacterOffsetBegin=46 CharacterOffsetEnd=48 PartOfSpeech=PRP Lemma=it NamedEntityTag=O]
36
+ [Text=is CharacterOffsetBegin=49 CharacterOffsetEnd=51 PartOfSpeech=VBZ Lemma=be NamedEntityTag=O]
37
+ [Text=a CharacterOffsetBegin=52 CharacterOffsetEnd=53 PartOfSpeech=DT Lemma=a NamedEntityTag=O]
38
+ [Text=great CharacterOffsetBegin=54 CharacterOffsetEnd=59 PartOfSpeech=JJ Lemma=great NamedEntityTag=O]
39
+ [Text=university CharacterOffsetBegin=60 CharacterOffsetEnd=70 PartOfSpeech=NN Lemma=university NamedEntityTag=O]
40
+ [Text=, CharacterOffsetBegin=70 CharacterOffsetEnd=71 PartOfSpeech=, Lemma=, NamedEntityTag=O]
41
+ [Text=founded CharacterOffsetBegin=72 CharacterOffsetEnd=79 PartOfSpeech=VBN Lemma=found NamedEntityTag=O]
42
+ [Text=in CharacterOffsetBegin=80 CharacterOffsetEnd=82 PartOfSpeech=IN Lemma=in NamedEntityTag=O]
43
+ [Text=1891 CharacterOffsetBegin=83 CharacterOffsetEnd=87 PartOfSpeech=CD Lemma=1891 NamedEntityTag=DATE NormalizedNamedEntityTag=1891 Timex=<TIMEX3 tid="t1" type="DATE" value="1891">1891</TIMEX3>]
44
+ [Text=. CharacterOffsetBegin=87 CharacterOffsetEnd=88 PartOfSpeech=. Lemma=. NamedEntityTag=O]
45
+
46
+ Dependency Parse (enhanced plus plus dependencies):
47
+ root(ROOT-0, university-5)
48
+ nsubj(university-5, It-1)
49
+ cop(university-5, is-2)
50
+ det(university-5, a-3)
51
+ amod(university-5, great-4)
52
+ punct(university-5, ,-6)
53
+ acl(university-5, founded-7)
54
+ case(1891-9, in-8)
55
+ obl:in(founded-7, 1891-9)
56
+ punct(university-5, .-10)
57
+
58
+ Extracted the following NER entity mentions:
59
+ 1891 DATE DATE:0.9867899766348976
60
+
61
+ Coreference set:
62
+ (2,1,[1,2]) -> (1,2,[1,3]), that is: "It" -> "Stanford University"
CoreNLP/stanford-corenlp-4.5.7/input.txt.xml ADDED
@@ -0,0 +1,324 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <?xml-stylesheet href="CoreNLP-to-HTML.xsl" type="text/xsl"?>
3
+ <root>
4
+ <document>
5
+ <sentences>
6
+ <sentence id="1">
7
+ <tokens>
8
+ <token id="1">
9
+ <word>Stanford</word>
10
+ <lemma>Stanford</lemma>
11
+ <CharacterOffsetBegin>0</CharacterOffsetBegin>
12
+ <CharacterOffsetEnd>8</CharacterOffsetEnd>
13
+ <POS>NNP</POS>
14
+ <NER>ORGANIZATION</NER>
15
+ </token>
16
+ <token id="2">
17
+ <word>University</word>
18
+ <lemma>University</lemma>
19
+ <CharacterOffsetBegin>9</CharacterOffsetBegin>
20
+ <CharacterOffsetEnd>19</CharacterOffsetEnd>
21
+ <POS>NNP</POS>
22
+ <NER>ORGANIZATION</NER>
23
+ </token>
24
+ <token id="3">
25
+ <word>is</word>
26
+ <lemma>be</lemma>
27
+ <CharacterOffsetBegin>20</CharacterOffsetBegin>
28
+ <CharacterOffsetEnd>22</CharacterOffsetEnd>
29
+ <POS>VBZ</POS>
30
+ <NER>O</NER>
31
+ </token>
32
+ <token id="4">
33
+ <word>located</word>
34
+ <lemma>located</lemma>
35
+ <CharacterOffsetBegin>23</CharacterOffsetBegin>
36
+ <CharacterOffsetEnd>30</CharacterOffsetEnd>
37
+ <POS>JJ</POS>
38
+ <NER>O</NER>
39
+ </token>
40
+ <token id="5">
41
+ <word>in</word>
42
+ <lemma>in</lemma>
43
+ <CharacterOffsetBegin>31</CharacterOffsetBegin>
44
+ <CharacterOffsetEnd>33</CharacterOffsetEnd>
45
+ <POS>IN</POS>
46
+ <NER>O</NER>
47
+ </token>
48
+ <token id="6">
49
+ <word>California</word>
50
+ <lemma>California</lemma>
51
+ <CharacterOffsetBegin>34</CharacterOffsetBegin>
52
+ <CharacterOffsetEnd>44</CharacterOffsetEnd>
53
+ <POS>NNP</POS>
54
+ <NER>LOCATION</NER>
55
+ </token>
56
+ <token id="7">
57
+ <word>.</word>
58
+ <lemma>.</lemma>
59
+ <CharacterOffsetBegin>44</CharacterOffsetBegin>
60
+ <CharacterOffsetEnd>45</CharacterOffsetEnd>
61
+ <POS>.</POS>
62
+ <NER>O</NER>
63
+ </token>
64
+ </tokens>
65
+ <parse>(ROOT (S (NP (NNP Stanford) (NNP University)) (VP (VBZ is) (ADJP (JJ located) (PP (IN in) (NP (NNP California))))) (. .))) </parse>
66
+ <basic-dependencies>
67
+ <dep type="nn">
68
+ <governor idx="2">University</governor>
69
+ <dependent idx="1">Stanford</dependent>
70
+ </dep>
71
+ <dep type="nsubj">
72
+ <governor idx="4">located</governor>
73
+ <dependent idx="2">University</dependent>
74
+ </dep>
75
+ <dep type="cop">
76
+ <governor idx="4">located</governor>
77
+ <dependent idx="3">is</dependent>
78
+ </dep>
79
+ <dep type="prep">
80
+ <governor idx="4">located</governor>
81
+ <dependent idx="5">in</dependent>
82
+ </dep>
83
+ <dep type="pobj">
84
+ <governor idx="5">in</governor>
85
+ <dependent idx="6">California</dependent>
86
+ </dep>
87
+ </basic-dependencies>
88
+ <collapsed-dependencies>
89
+ <dep type="nn">
90
+ <governor idx="2">University</governor>
91
+ <dependent idx="1">Stanford</dependent>
92
+ </dep>
93
+ <dep type="nsubj">
94
+ <governor idx="4">located</governor>
95
+ <dependent idx="2">University</dependent>
96
+ </dep>
97
+ <dep type="cop">
98
+ <governor idx="4">located</governor>
99
+ <dependent idx="3">is</dependent>
100
+ </dep>
101
+ <dep type="prep_in">
102
+ <governor idx="4">located</governor>
103
+ <dependent idx="6">California</dependent>
104
+ </dep>
105
+ </collapsed-dependencies>
106
+ <collapsed-ccprocessed-dependencies>
107
+ <dep type="nn">
108
+ <governor idx="2">University</governor>
109
+ <dependent idx="1">Stanford</dependent>
110
+ </dep>
111
+ <dep type="nsubj">
112
+ <governor idx="4">located</governor>
113
+ <dependent idx="2">University</dependent>
114
+ </dep>
115
+ <dep type="cop">
116
+ <governor idx="4">located</governor>
117
+ <dependent idx="3">is</dependent>
118
+ </dep>
119
+ <dep type="prep_in">
120
+ <governor idx="4">located</governor>
121
+ <dependent idx="6">California</dependent>
122
+ </dep>
123
+ </collapsed-ccprocessed-dependencies>
124
+ </sentence>
125
+ <sentence id="2">
126
+ <tokens>
127
+ <token id="1">
128
+ <word>It</word>
129
+ <lemma>it</lemma>
130
+ <CharacterOffsetBegin>46</CharacterOffsetBegin>
131
+ <CharacterOffsetEnd>48</CharacterOffsetEnd>
132
+ <POS>PRP</POS>
133
+ <NER>O</NER>
134
+ </token>
135
+ <token id="2">
136
+ <word>is</word>
137
+ <lemma>be</lemma>
138
+ <CharacterOffsetBegin>49</CharacterOffsetBegin>
139
+ <CharacterOffsetEnd>51</CharacterOffsetEnd>
140
+ <POS>VBZ</POS>
141
+ <NER>O</NER>
142
+ </token>
143
+ <token id="3">
144
+ <word>a</word>
145
+ <lemma>a</lemma>
146
+ <CharacterOffsetBegin>52</CharacterOffsetBegin>
147
+ <CharacterOffsetEnd>53</CharacterOffsetEnd>
148
+ <POS>DT</POS>
149
+ <NER>O</NER>
150
+ </token>
151
+ <token id="4">
152
+ <word>great</word>
153
+ <lemma>great</lemma>
154
+ <CharacterOffsetBegin>54</CharacterOffsetBegin>
155
+ <CharacterOffsetEnd>59</CharacterOffsetEnd>
156
+ <POS>JJ</POS>
157
+ <NER>O</NER>
158
+ </token>
159
+ <token id="5">
160
+ <word>university</word>
161
+ <lemma>university</lemma>
162
+ <CharacterOffsetBegin>60</CharacterOffsetBegin>
163
+ <CharacterOffsetEnd>70</CharacterOffsetEnd>
164
+ <POS>NN</POS>
165
+ <NER>O</NER>
166
+ </token>
167
+ <token id="6">
168
+ <word>,</word>
169
+ <lemma>,</lemma>
170
+ <CharacterOffsetBegin>70</CharacterOffsetBegin>
171
+ <CharacterOffsetEnd>71</CharacterOffsetEnd>
172
+ <POS>,</POS>
173
+ <NER>O</NER>
174
+ </token>
175
+ <token id="7">
176
+ <word>founded</word>
177
+ <lemma>found</lemma>
178
+ <CharacterOffsetBegin>72</CharacterOffsetBegin>
179
+ <CharacterOffsetEnd>79</CharacterOffsetEnd>
180
+ <POS>VBN</POS>
181
+ <NER>O</NER>
182
+ </token>
183
+ <token id="8">
184
+ <word>in</word>
185
+ <lemma>in</lemma>
186
+ <CharacterOffsetBegin>80</CharacterOffsetBegin>
187
+ <CharacterOffsetEnd>82</CharacterOffsetEnd>
188
+ <POS>IN</POS>
189
+ <NER>O</NER>
190
+ </token>
191
+ <token id="9">
192
+ <word>1891</word>
193
+ <lemma>1891</lemma>
194
+ <CharacterOffsetBegin>83</CharacterOffsetBegin>
195
+ <CharacterOffsetEnd>87</CharacterOffsetEnd>
196
+ <POS>CD</POS>
197
+ <NER>DATE</NER>
198
+ <NormalizedNER>1891</NormalizedNER>
199
+ <Timex tid="t1" type="DATE">1891</Timex>
200
+ </token>
201
+ <token id="10">
202
+ <word>.</word>
203
+ <lemma>.</lemma>
204
+ <CharacterOffsetBegin>87</CharacterOffsetBegin>
205
+ <CharacterOffsetEnd>88</CharacterOffsetEnd>
206
+ <POS>.</POS>
207
+ <NER>O</NER>
208
+ </token>
209
+ </tokens>
210
+ <parse>(ROOT (S (NP (PRP It)) (VP (VBZ is) (NP (NP (DT a) (JJ great) (NN university)) (, ,) (VP (VBN founded) (PP (IN in) (NP (CD 1891)))))) (. .))) </parse>
211
+ <basic-dependencies>
212
+ <dep type="nsubj">
213
+ <governor idx="5">university</governor>
214
+ <dependent idx="1">It</dependent>
215
+ </dep>
216
+ <dep type="cop">
217
+ <governor idx="5">university</governor>
218
+ <dependent idx="2">is</dependent>
219
+ </dep>
220
+ <dep type="det">
221
+ <governor idx="5">university</governor>
222
+ <dependent idx="3">a</dependent>
223
+ </dep>
224
+ <dep type="amod">
225
+ <governor idx="5">university</governor>
226
+ <dependent idx="4">great</dependent>
227
+ </dep>
228
+ <dep type="partmod">
229
+ <governor idx="5">university</governor>
230
+ <dependent idx="7">founded</dependent>
231
+ </dep>
232
+ <dep type="prep">
233
+ <governor idx="7">founded</governor>
234
+ <dependent idx="8">in</dependent>
235
+ </dep>
236
+ <dep type="pobj">
237
+ <governor idx="8">in</governor>
238
+ <dependent idx="9">1891</dependent>
239
+ </dep>
240
+ </basic-dependencies>
241
+ <collapsed-dependencies>
242
+ <dep type="nsubj">
243
+ <governor idx="5">university</governor>
244
+ <dependent idx="1">It</dependent>
245
+ </dep>
246
+ <dep type="cop">
247
+ <governor idx="5">university</governor>
248
+ <dependent idx="2">is</dependent>
249
+ </dep>
250
+ <dep type="det">
251
+ <governor idx="5">university</governor>
252
+ <dependent idx="3">a</dependent>
253
+ </dep>
254
+ <dep type="amod">
255
+ <governor idx="5">university</governor>
256
+ <dependent idx="4">great</dependent>
257
+ </dep>
258
+ <dep type="partmod">
259
+ <governor idx="5">university</governor>
260
+ <dependent idx="7">founded</dependent>
261
+ </dep>
262
+ <dep type="prep_in">
263
+ <governor idx="7">founded</governor>
264
+ <dependent idx="9">1891</dependent>
265
+ </dep>
266
+ </collapsed-dependencies>
267
+ <collapsed-ccprocessed-dependencies>
268
+ <dep type="nsubj">
269
+ <governor idx="5">university</governor>
270
+ <dependent idx="1">It</dependent>
271
+ </dep>
272
+ <dep type="cop">
273
+ <governor idx="5">university</governor>
274
+ <dependent idx="2">is</dependent>
275
+ </dep>
276
+ <dep type="det">
277
+ <governor idx="5">university</governor>
278
+ <dependent idx="3">a</dependent>
279
+ </dep>
280
+ <dep type="amod">
281
+ <governor idx="5">university</governor>
282
+ <dependent idx="4">great</dependent>
283
+ </dep>
284
+ <dep type="partmod">
285
+ <governor idx="5">university</governor>
286
+ <dependent idx="7">founded</dependent>
287
+ </dep>
288
+ <dep type="prep_in">
289
+ <governor idx="7">founded</governor>
290
+ <dependent idx="9">1891</dependent>
291
+ </dep>
292
+ </collapsed-ccprocessed-dependencies>
293
+ </sentence>
294
+ </sentences>
295
+ <coreference>
296
+ <coreference>
297
+ <mention representative="true">
298
+ <sentence>1</sentence>
299
+ <start>1</start>
300
+ <end>3</end>
301
+ <head>2</head>
302
+ </mention>
303
+ <mention>
304
+ <sentence>2</sentence>
305
+ <start>1</start>
306
+ <end>2</end>
307
+ <head>1</head>
308
+ </mention>
309
+ <mention>
310
+ <sentence>2</sentence>
311
+ <start>3</start>
312
+ <end>10</end>
313
+ <head>5</head>
314
+ </mention>
315
+ <mention>
316
+ <sentence>2</sentence>
317
+ <start>3</start>
318
+ <end>6</end>
319
+ <head>5</head>
320
+ </mention>
321
+ </coreference>
322
+ </coreference>
323
+ </document>
324
+ </root>
CoreNLP/stanford-corenlp-4.5.7/istack-commons-runtime-3.0.7-sources.jar ADDED
Binary file (38 kB). View file
 
CoreNLP/stanford-corenlp-4.5.7/istack-commons-runtime-3.0.7.jar ADDED
Binary file (25.5 kB). View file
 
CoreNLP/stanford-corenlp-4.5.7/javax.activation-api-1.2.0-sources.jar ADDED
Binary file (78.9 kB). View file
 
CoreNLP/stanford-corenlp-4.5.7/javax.activation-api-1.2.0.jar ADDED
Binary file (56.7 kB). View file
 
CoreNLP/stanford-corenlp-4.5.7/javax.json-api-1.0-sources.jar ADDED
Binary file (54.9 kB). View file
 
CoreNLP/stanford-corenlp-4.5.7/javax.json.jar ADDED
Binary file (85.1 kB). View file
 
CoreNLP/stanford-corenlp-4.5.7/jaxb-api-2.4.0-b180830.0359-sources.jar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80bf9ccae5e202fd898340ba1e8daf061d3e539d21c6dbd238a4cac919b84f15
3
+ size 270926
CoreNLP/stanford-corenlp-4.5.7/jaxb-api-2.4.0-b180830.0359.jar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56b9e9702753763007435162ea788055efcfefc86ab920f032c0411dc547b836
3
+ size 128032
CoreNLP/stanford-corenlp-4.5.7/jaxb-impl-2.4.0-b180830.0438-sources.jar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3fc7893d43b2e1ee222a9746e14c8ed985b9c99399a3109a6c2f5da0acc3fe6
3
+ size 1132702
CoreNLP/stanford-corenlp-4.5.7/jaxb-impl-2.4.0-b180830.0438.jar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce22a84983e330de8628aa57168398e98eea8dff0ce73c902534aba09681a63d
3
+ size 1128097
CoreNLP/stanford-corenlp-4.5.7/joda-time-2.10.5-sources.jar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:250a7b443d6cef34634b6044e4f042276d16e5f815747c46da8427eb5335ffd2
3
+ size 821105
CoreNLP/stanford-corenlp-4.5.7/joda-time.jar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ee73e7ff8e2df0d4e3408cf1a1527a59f265dd9fb43fb9b2eb818d87f93759e
3
+ size 643043
CoreNLP/stanford-corenlp-4.5.7/jollyday-0.4.9-sources.jar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bd83510a47a3d08878d7777283a3dcb8adf1b2473139aae56ab4c84684310a3
3
+ size 196945
CoreNLP/stanford-corenlp-4.5.7/jollyday.jar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:556a1a11275d1d1df094b127a3e158377c0026ad150c0e651c9c46c533027e48
3
+ size 213591
CoreNLP/stanford-corenlp-4.5.7/patterns/example.properties ADDED
@@ -0,0 +1,297 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### NOTE: for all flags and their description, see the javadoc. Important parameters (in our experience) that you should tune for your dataset are marked with ***. Pay special attention to flags like targetAllowedNERs. Use batchProcesssSents and Lucene based options if you want low memory (but slower) runs.
2
+
3
+ #***Which type of patterns. Options are SURFACE and DEP
4
+ patternType=SURFACE
5
+
6
+ #name for the saved files for the output of the system (useful for comparing results of different experiments with different variables etc.)
7
+ identifier=useNERRestriction
8
+
9
+ #Directory where data lives
10
+ DIR=patterns
11
+
12
+ outDir=SPIEDPatternsout
13
+
14
+ #If you want output in which each labeled phrase has <label> </label> around it
15
+ #markedOutputTextFile=${outDir}/markedtext.txt
16
+
17
+ #Number of threads available on the machine
18
+ numThreads=1
19
+ #***Use these options if you are limited by memory
20
+ batchProcessSents = false
21
+ #This name is a misnomer. Max number of *lines* per batch file. Works only for text file format; ser files cannot be broken down
22
+ numMaxSentencesPerBatchFile=100
23
+ saveInvertedIndex=false
24
+ invertedIndexDirectory=${outDir}/invertedIndex
25
+ #Loading index from invertedIndexDirectory
26
+ #loadInvertedIndex=true
27
+
28
+ #Useful for memory heavy apps.
29
+ #invertedIndexClass=edu.stanford.nlp.patterns.LuceneSentenceIndex
30
+
31
+
32
+ ### Example for running it on presidents biographies. For more data examples, see the bottom of this file
33
+
34
+ #can be text. the code will tokenize it.
35
+ fileFormat=text
36
+ #Input file(s) (default assumed text). Can be one or more of (concatenated by comma or semi-colon): file, directory, files with regex in the filename (for example: "mydir/health-.*-processed.txt")
37
+ file=${DIR}/presidents.txt
38
+
39
+ #to save the serialized sentences into a file - text split into sentences, processed using ner, parse etc (depending on the flags) and labeled with seed set. Existing files will get deleted (if the fileFormat is not ser).
40
+ saveSentencesSerDir=${outDir}/sents
41
+
42
+ #if you use the flag above to save the file, you can use the saved file like this
43
+ #fileFormat=ser
44
+ #file=${outDir}/sents
45
+
46
+ #We are learning names of presidential candidates, places, and other names. In each line, all text after tabs are ignored in these seed files
47
+ seedWordsFiles=NAME,${DIR}/names.txt;PLACE,${DIR}/places.txt;OTHER,${DIR}/otherpeople.txt
48
+ #Useful for matching lemmas or spelling mistakes
49
+ fuzzyMatch=false
50
+ #Used if fuzzyMatch is true. minimum length of words to do fuzzy matching.
51
+ minLen4FuzzyForPattern=6
52
+
53
+ #You can evaluate two ways; both presented here.
54
+ evaluate=true
55
+ goldEntitiesEvalFiles=NAME,${DIR}/goldnames.txt;PLACE,${DIR}/goldplaces.txt
56
+ #evalFileWithGoldLabels=${DIR}/presidents_eval.txt
57
+ #default as true, false if you want scores per token
58
+ evalPerEntity=true
59
+
60
+
61
+ #SAVE n LOAD the model (patterns and phrases) options
62
+ patternsWordsDir=${outDir}/${identifier}/model/
63
+ #save the learned patterns and learned words in patternsWordsDir directory
64
+ savePatternsWordsDir=true
65
+ #load the patterns and words from patternsWordsDir directory
66
+ #loadSavedPatternsWordsDir=true
67
+
68
+ #false if you just want to process the text into sents but not do anything with it, or you want to use loadSavedPatternsWordsDir option. Useful for batch processing and saving text as serialized objects, then running the learning system on all the serialized objects (see saveSentences* and saveEvalSent* flags) or domain adaptation.
69
+ learn=true
70
+
71
+
72
+ #posModelPath=<if you want to use a different Stanford NLP group released POS tagger; e.g. caseless etc>
73
+
74
+ #In case the seeds have overlapping words like "lung" as bodyPart and "lung cancer" as disease. "lung" in "lung cancer" will be labeled as only disease, if the flag is true.
75
+ removeOverLappingLabelsFromSeed=true
76
+
77
+ ######## creating patterns flags ##########
78
+ #***use context on the left
79
+ usePreviousContext=true
80
+
81
+ #***use context on the right
82
+ useNextContext = true
83
+
84
+ #***the context should be at least this long
85
+ minWindow4Pattern = 2
86
+
87
+ #***the context can be at most this long
88
+ maxWindow4Pattern = 4
89
+
90
+ #if the context consists of only stop words, add only if it's more than these many stop words
91
+ numMinStopWordsToAdd = 3
92
+
93
+ #***use POS tag restriction for the target phrase
94
+ usePOS4Pattern = true
95
+
96
+ #Ignore words {a, an, the} while matching the patterns to text (advisable true)
97
+ useFillerWordsInPat = false
98
+
99
+ #***Specific allowed tags' initials for the target phrase for each label while creating the patterns (if not specified, every tag is acceptable to create a pattern). Tag initials can be written as N or NN or J or N,J etc. E.g.: NAME,N,J;PLACE,N. If
100
+ targetAllowedTagsInitialsStr=NAME,N;OTHER,N
101
+
102
+ #You can save all possible patterns for all tokens in the flag allPatternsDir so you wouldn't need to calculate them everytime.
103
+ computeAllPatterns = true
104
+
105
+ #Options: MEMORY, DB, LUCENE. If using SQL for storing patterns for each token --- populate SQLConnection class, that is provide those properties!
106
+ storePatsForEachToken=MEMORY
107
+ #***If your code is running too slow, try to reduce this number. Samples % of sentences for learning patterns
108
+ sampleSentencesForSufficientStats=1.0
109
+
110
+ #Save or read (if computeAllPatterns is false) from here
111
+ allPatternsDir= ${DIR}/${identifier}_allpatterns
112
+
113
+ #***maximum Num of allowed words in the target phrase
114
+ numWordsCompound = 3
115
+
116
+ #***consider patterns without the POS restricion on the target phrase
117
+ addPatWithoutPOS = true
118
+
119
+ #Ignore common stop words occuring just before the target phrase
120
+ useStopWordsBeforeTerm=false
121
+
122
+ #Use lemma instead of words of the context tokens
123
+ useLemmaContextTokens=true
124
+
125
+ #make context matching lowercase (advisable)
126
+ matchLowerCaseContext=true
127
+
128
+ #***use named entity tag (predicted using StanfordCoreNLP NER) restriction of the target phrase
129
+ useTargetNERRestriction=true
130
+
131
+ #***If useTargetNERRestriction is true, you can give NER tags that the target phrase can take. Do not mention anything if you don't want any specific restriction
132
+ targetAllowedNERs=NAME,PERSON;PLACE,LOCATION;OTHER,PERSON
133
+
134
+ #use named entity tag restrictions for the context (neighboring) tokens
135
+ useContextNERRestriction=false
136
+
137
+ #***use the parse tag of the grandparent node as restriction (note that parent node is the POS tag of the word)
138
+ useTargetParserParentRestriction=false
139
+
140
+ #do not extract phrase in which any word is labeled with another class (for example, you don't wanna extract 'HIV patients' as disease)
141
+ doNotExtractPhraseAnyWordLabeledOtherClass = true
142
+
143
+ #### matching patterns to text ######
144
+
145
+ #kinda ignore this flag and use it as true. for those who care this too much: for each token, we use the phrase that originally matched that token instead of the token's word (in case you are using fuzzy matching)
146
+ useMatchingPhrase=true
147
+
148
+ #Use only the tokens that get matched by a pattern (advisable as false)
149
+ restrictToMatched = false
150
+
151
+ #Label the learned words in the text (advisable as true)
152
+ usePatternResultAsLabel=true
153
+
154
+ #remove common stop words from phrases to get clean phrases (for example, "disease" instead of "some disease")
155
+ removeStopWordsFromSelectedPhrases = true
156
+
157
+ #Do not learn phrases that have any stop word
158
+ removePhrasesWithStopWords = false
159
+
160
+
161
+ ### evaluating candidate patterns
162
+
163
+ #***Minimum number of positive phrases a candidate pattern should extract
164
+ minPosPhraseSupportForPat = 1
165
+
166
+ ##### thresholds for selecting paterns and words #####
167
+
168
+ #***threshold for learning a phrase
169
+ thresholdWordExtract=0.01
170
+
171
+ #***thrshold for learning a pattern
172
+ thresholdSelectPattern = 0.01
173
+
174
+ #keep lowering threshold as 0.8*threshold whenever the system doesn't learn any new patterns and phrases
175
+ tuneThresholdKeepRunning=false
176
+
177
+ #***discard phrases that do not have these many patterns extracting it
178
+ thresholdNumPatternsApplied = 1
179
+
180
+ #***max number of words to extract in each iteration
181
+ numWordsToAdd = 5
182
+
183
+ #***max number of words to extract in each pattern
184
+ numPatterns = 5
185
+
186
+ #***max number of iterations
187
+ numIterationsForPatterns = 8
188
+
189
+ #Consider words belonging to other labels as negative (advisable as true)
190
+ useOtherLabelsWordsasNegative=true
191
+
192
+ #***Pattern scoring measure. For more details, see the paper. The options are PhEvalInPatLogP, PhEvalInPat, PosNegUnlabOdds, RlogF, RlogFPosNeg, YanGarber02, PosNegOdds, LOGREG, LOGREGlogP, RatioAll, SqrtAllRatio
193
+ patternScoring=RatioAll
194
+
195
+ #Class to be used to score phrases. The valid options are edu.stanford.nlp.patterns.surface.ScorePhrasesAverageFeatures and edu.stanford.nlp.patterns.surface.ScorePhrasesLearnFeatWt
196
+ phraseScorerClass=edu.stanford.nlp.patterns.ScorePhrasesAverageFeatures
197
+ #phraseScorerClass=edu.stanford.nlp.patterns.ScorePhrasesLearnFeatWt
198
+
199
+ #***Club neighboring labeled words (of the same label) when extracting phrases
200
+ clubNeighboringLabeledWords=true
201
+
202
+ #if you want to sqrt root the pattern score
203
+ sqrtPatScore = false
204
+
205
+ #Phrase scoring measure; ignore.
206
+ wordScoring=WEIGHTEDNORM
207
+
208
+ #For scoring phrases that are OOV, a score is the average of the score of individual words (instead of min, which is default)
209
+ useAvgInsteadofMinPhraseScoring=true
210
+
211
+ #*** what all features to use to evaluate phrases. See the paper for more details on each
212
+ #only if wordClassClusterFile is provided
213
+ usePhraseEvalWordClass=false
214
+
215
+ #tf-idf scoring w.r.t to the domain
216
+ usePhraseEvalDomainNgram=false
217
+
218
+ #use pattern weights in scoring phrases extracted by them, if usePhraseEvalPatWtByFreq is true. otherwise it's just a tfidf like score
219
+ usePatternWeights=true
220
+
221
+ #basically patwt/log(freq), patwt = 1 if usePatternWeights is false
222
+ usePhraseEvalPatWtByFreq=true
223
+
224
+ #if using multiple label dictionaries etc, freq of the phrase in the label dictionary vs other dictionaries
225
+ usePhraseEvalSemanticOdds=true
226
+
227
+ #edit distance from positive entities
228
+ usePhraseEvalEditDistSame=true
229
+
230
+ #edit distance from the negative entities
231
+ usePhraseEvalEditDistOther=true
232
+
233
+ #if you have googlengrams, you can use googlengrams tf-idf scoring.
234
+ usePhraseEvalGoogleNgram=false
235
+
236
+ #% of positive labeled words with the same word class (see WordClassClassifier and chris2 for more details)
237
+ usePhraseEvalWordShape=true
238
+
239
+
240
+ #These flags are not valid if patternScoring is not PhEvalInPat* . Similar meaning as for the phrase ones above
241
+ usePatternEvalWordClass=false
242
+ usePatternEvalGoogleNgram=false
243
+ usePatternEvalSemanticOdds=true
244
+ usePatternEvalEditDistSame=true
245
+ usePatternEvalEditDistOther=true
246
+ usePatternEvalDomainNgram=false
247
+ usePatternEvalWordShape=true
248
+
249
+ #Options are LOG, NONE or SQRT
250
+ wordFreqNorm = NONE
251
+
252
+ ######For logging
253
+
254
+ #4 if you wanna print out every single thing happening in the system, 3 if you want fair amount of debug messages and justification, 2 means some debug msgs, 1 means only necessary msgs and 0 means (almost) no msgs
255
+ debug = 3
256
+
257
+
258
+
259
+ #stop words file
260
+ stopWordsPatternFiles=${DIR}/stopwords.txt
261
+
262
+ englishWordsFiles=${stopWordsPatternFiles}
263
+ commonWordsPatternFiles= ${stopWordsPatternFiles}
264
+ #You can give some common words like this
265
+ #commonWordsPatternFiles =${DIR}/lists/commonEngWords1k.txt
266
+
267
+ #If you are using Google Ngrams TF-IDF feature
268
+ #googleNGramsFile=/u/nlp/scr/google-ngrams/1gms/vocab
269
+ #weightDomainFreq=10
270
+
271
+ #below is optional; comma separated files with list of phrases that def do not belong to any of the labels
272
+ #otherSemanticClassesFiles=${DIR}/nondiseases.txt
273
+
274
+ #The flags below are used when either LOGREG is used for patternScoring or ScorePhrasesLearnFeatWt class is used for phrase scoring
275
+ #% unlabeled tokens selected as negative
276
+ #perSelectRand=0.5
277
+ #% negative tokens selected as negative
278
+ #perSelectNeg=1
279
+
280
+
281
+ ### Example for running the code on BioMed articles and NCBI corpus (instead of the toy example above)
282
+
283
+ #fileFormat=text
284
+ #file=${DIR}/BioMedSample
285
+ #saveSentencesSerFile=${DIR}/biomed_sents.ser
286
+
287
+ #evalFileWithGoldLabels=${DIR}/NCBI_corpus_testing_processed.txt
288
+ #saveEvalSentencesSerFile=${DIR}/ncbi_corpus_testing_sents.ser
289
+ #addEvalSentsToTrain=true
290
+
291
+ #seedWordsFiles=disease,${DIR}/diseases.txt;nondisease,${DIR}/nondiseases.txt
292
+
293
+ #wordClassClusterFile=${DIR}/ncbi_disease_brownclusters_200_min5.txt
294
+
295
+ #externalFeatureWeightsFile = ${DIR}/out/wordclass_weights
296
+
297
+
CoreNLP/stanford-corenlp-4.5.7/patterns/goldnames.txt ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Nelson Rockefeller
2
+ Herbert Walker Bush
3
+ contributed#
4
+ Ronald Reagan
5
+ Bush
6
+ John Fitzgerald Kennedy
7
+ Nixon
8
+ Carter
9
+ George Herber Walker Bush
10
+ William Clinton
11
+ William
12
+ Nelle
13
+ George Bush
14
+ James Earl
15
+ John
16
+ Dwight D. Eisenhower
17
+ Prescott Bush
18
+ Wilkes Booth#
19
+ Taft
20
+ Prescott#
21
+ Coolidge
22
+ Kennedy
23
+ W. Bush
24
+ George
25
+ Reagan
26
+ Adams
27
+ Eisenhower
28
+ Ronald Wilson Reagan
29
+ William Jefferson
30
+ Roger#
31
+ Blythe III
32
+ Clinton
33
+ Johnson
34
+ Richard M.
35
+ George W.
36
+ George C. Marshall
37
+ Gibbs McAdoo#
38
+ Lyndon B.
39
+ III
40
+ John Quincy
41
+ agenda#
42
+ Governor Nelson Rockefeller
43
+ President Jimmy
44
+ Warren G. Harding
45
+ promise#
46
+ General Eisenhower
47
+ business#
48
+ Gerald R. Ford
49
+ America#
50
+ family#
51
+ Administration#
52
+ pledge#
53
+ phrases#
54
+ House#
55
+ measures#
56
+ campaign#
57
+ Roosevelt
58
+ Governor Jimmy
59
+ cut taxes#
60
+ Governor Nelson
61
+ Albert Gore Jr.
62
+ Gore Jr.
63
+ Leonid I. Brezhnev#
64
+ Albert Gore
65
+ Bush
66
+ James M. Cox
67
+ Nixon
68
+ George W. Bush
69
+ Michael Dukakisi#
70
+ Ronald Wilson Reagan
71
+ Saddam Hussein#
72
+ Dan Quayle
73
+ Al Gore
74
+ Carter
75
+ John Kerry
76
+ Spiro T. Agnew
77
+ Clinton
78
+ Walter F. Mondale
79
+ Nelson Rockefeller
80
+ Gerald R. Ford
81
+ Taft
82
+ Hubert H. Humphrey
83
+ Mikhail Gorbachev#
84
+ John Kennedy
85
+ Richard M. Nixon
CoreNLP/stanford-corenlp-4.5.7/patterns/goldplaces.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ Brookline
2
+ Plymouth
CoreNLP/stanford-corenlp-4.5.7/patterns/names.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ President Obama
2
+ President Bush
3
+ Jimmy Carter
CoreNLP/stanford-corenlp-4.5.7/patterns/otherpeople.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ Sasha
2
+ Michelle
3
+ Laura Welch
4
+ Jenna
CoreNLP/stanford-corenlp-4.5.7/patterns/places.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ Hawaii
2
+ New Haven
3
+ Milton
CoreNLP/stanford-corenlp-4.5.7/patterns/presidents.txt ADDED
@@ -0,0 +1,275 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Barack H. Obama is the 44th President of the United States.
2
+
3
+ His story is the American story — values from the heartland, a middle-class upbringing in a strong family, hard work and education as the means of getting ahead, and the conviction that a life so blessed should be lived in service to others.
4
+
5
+ With a father from Kenya and a mother from Kansas, President Obama was born in Hawaii on August 4, 1961. He was raised with help from his grandfather, who served in Patton's army, and his grandmother, who worked her way up from the secretarial pool to middle management at a bank.
6
+
7
+ After working his way through college with the help of scholarships and student loans, President Obama moved to Chicago, where he worked with a group of churches to help rebuild communities devastated by the closure of local steel plants.
8
+
9
+ He went on to attend law school, where he became the first African—American president of the Harvard Law Review. Upon graduation, he returned to Chicago to help lead a voter registration drive, teach constitutional law at the University of Chicago, and remain active in his community.
10
+
11
+ President Obama's years of public service are based around his unwavering belief in the ability to unite people around a politics of purpose. In the Illinois State Senate, he passed the first major ethics reform in 25 years, cut taxes for working families, and expanded health care for children and their parents. As a United States Senator, he reached across the aisle to pass groundbreaking lobbying reform, lock up the world's most dangerous weapons, and bring transparency to government by putting federal spending online.
12
+
13
+ He was elected the 44th President of the United States on November 4, 2008, and sworn in on January 20, 2009. He and his wife, Michelle, are the proud parents of two daughters, Malia, 14, and Sasha, 11.
14
+
15
+ The airborne terrorist attacks on the World Trade Center, the Pentagon, and the thwarted flight against the White House or Capitol on September 11, 2001, in which nearly 3,000 Americans were killed, transformed George W. Bush into a wartime president. The attacks put on hold many of Bush’s hopes and plans, and Bush’s father, George Bush, the 41st president, declared that his son “faced the greatest challenge of any president since Abraham Lincoln.”
16
+
17
+ In response, Bush formed a new cabinet-level Department of Homeland Security, sent American forces into Afghanistan to break up the Taliban, a movement under Osama bin Laden that trained financed and exported terrorist teams. The Taliban was successfully disrupted but Bin Laden was not captured and was still on the loose as Bush began his second term. Following the attacks, the president also recast the nation’s intelligence gathering and analysis services, and ordered reform of the military forces to meet the new enemy. At the same time he delivered major tax cuts which had been a campaign pledge. His most controversial act was the invasion of Iraq on the belief that Iraqi President Saddam Hussein posed a grave threat to the United States. Saddam was captured, but the disruption of Iraq and the killing of American servicemen and friendly Iraqis by insurgents became the challenge of Bush’s government as he began his second term. President Bush pledged during his 2005 State of the Union Address that the United States would help the Iraqi people establish a fully democratic government because the victory of freedom in Iraq would strengthen a new ally in the war on terror, bring hope to a troubled region, and lift a threat from the lives of future generations.
18
+
19
+ Bush was born in New Haven, Connecticut while his father was attending Yale University after service in World War II. The family moved to Midland, Texas, where the senior Bush entered the oil exploration business. The son spent formative years there, attended Midland public schools, and formed friendships that stayed with him into the White House. Bush graduated from Yale, received a business degree from Harvard, and then returned to Midland where he too got into the oil business. In Midland he met and married Laura Welch, a teacher and librarian. They had twin daughters, Jenna and Barbara, now out of college and pursuing careers.
20
+
21
+ When George W. Bush, at the age of 54, became the 43rd president of the United States, it was only the second time in American history that a president’s son went on to the White House. John Quincy Adams, elected the sixth president in 1824, was the son of John Adams, the second president. While John Adams had groomed his son to be president, George Bush, the 41st president, insisted he was surprised when the eldest of his six children became interested in politics, became governor of Texas, and then went on to the White House.
22
+
23
+ During the early part of the 2000 campaign for the White House, Bush enjoyed a double-digit lead in the polls over his opponent Vice President Al Gore Jr. But the gap closed as the election approached and though Gore finally won the popular vote by 543,895 votes, victory or loss of the presidency hinged on Florida’s electoral votes. That struggle through recounts and lawsuits worked its way to the Supreme Court. In the end Bush won the electoral count 271 to 266. His new administration was focused on “compassionate conservatism,” which embraced excellence in education, tax relief and volunteerism among faith-based and community organizations.
24
+
25
+ Bush was challenged in his re-election bid in 2004 by Massachusetts Democratic Senator John Kerry. The election was a good contest, but Bush’s contention that the invasion of Iraq had made the world more secure against terrorism won the national political debate. Bush was re-elected with 51 percent to 48 percent.
26
+
27
+ On the inaugural stand, George W. Bush set the theme for his second term: “At this second gathering, our duties are defined not by the words I use, but by the history we have seen together. For half a century, America defended our own freedom by standing watch on distant borders. After the shipwreck of communism came years of relative quiet- and then there came a day of fire. There is only one force of history that can break the reign of hatred and resentment, and expose the pretensions of tyrants, and reward the hopes of the decent and tolerant, and that is the force of human freedom – tested but not weary… we are ready for the greatest achievements in the history of freedom.”
28
+
29
+
30
+
31
+ During the administration of William Jefferson Clinton, the U.S. enjoyed more peace and economic well being than at any time in its history. He was the first Democratic president since Franklin D. Roosevelt to win a second term. He could point to the lowest unemployment rate in modern times, the lowest inflation in 30 years, the highest home ownership in the country's history, dropping crime rates in many places, and reduced welfare rolls. He proposed the first balanced budget in decades and achieved a budget surplus. As part of a plan to celebrate the millennium in 2000, Clinton called for a great national initiative to end racial discrimination.
32
+
33
+ After the failure in his second year of a huge program of health care reform, Clinton shifted emphasis, declaring "the era of big government is over." He sought legislation to upgrade education, to protect jobs of parents who must care for sick children, to restrict handgun sales, and to strengthen environmental rules.
34
+
35
+ President Clinton was born William Jefferson Blythe III on August 19, 1946, in Hope, Arkansas, three months after his father died in a traffic accident. When he was four years old, his mother wed Roger Clinton, of Hot Springs, Arkansas. In high school, he took the family name.
36
+
37
+ He excelled as a student and as a saxophone player and once considered becoming a professional musician. As a delegate to Boys Nation while in high school, he met President John Kennedy in the White House Rose Garden. The encounter led him to enter a life of public service.
38
+
39
+ Clinton was graduated from Georgetown University and in 1968 won a Rhodes Scholarship to Oxford University. He received a law degree from Yale University in 1973, and entered politics in Arkansas.
40
+
41
+ He was defeated in his campaign for Congress in Arkansas's Third District in 1974. The next year he married Hillary Rodham, a graduate of Wellesley College and Yale Law School. In 1980, Chelsea, their only child, was born.
42
+
43
+ Clinton was elected Arkansas Attorney General in 1976, and won the governorship in 1978. After losing a bid for a second term, he regained the office four years later, and served until he defeated incumbent George Bush and third party candidate Ross Perot in the 1992 presidential race.
44
+
45
+ Clinton and his running mate, Tennessee's Senator Albert Gore Jr., then 44, represented a new generation in American political leadership. For the first time in 12 years both the White House and Congress were held by the same party. But that political edge was brief; the Republicans won both houses of Congress in 1994.
46
+
47
+ In 1998, as a result of issues surrounding personal indiscretions with a young woman White House intern, Clinton was the second U.S. president to be impeached by the House of Representatives. He was tried in the Senate and found not guilty of the charges brought against him. He apologized to the nation for his actions and continued to have unprecedented popular approval ratings for his job as president.
48
+
49
+ In the world, he successfully dispatched peace keeping forces to war-torn Bosnia and bombed Iraq when Saddam Hussein stopped United Nations inspections for evidence of nuclear, chemical, and biological weapons. He became a global proponent for an expanded NATO, more open international trade, and a worldwide campaign against drug trafficking. He drew huge crowds when he traveled through South America, Europe, Russia, Africa, and China, advocating U.S. style freedom.
50
+
51
+ George Bush brought to the White House a dedication to traditional American values and a determination to direct them toward making the United States "a kinder and gentler nation." In his Inaugural Address he pledged in "a moment rich with promise" to use American strength as "a force for good."
52
+
53
+ Coming from a family with a tradition of public service, George Herbert Walker Bush felt the responsibility to make his contribution both in time of war and in peace. Born in Milton, Massachusetts, on June 12, 1924, he became a student leader at Phillips Academy in Andover. On his 18th birthday he enlisted in the armed forces. The youngest pilot in the Navy when he received his wings, he flew 58 combat missions during World War II. On one mission over the Pacific as a torpedo bomber pilot he was shot down by Japanese antiaircraft fire and was rescued from the water by a U. S. submarine. He was awarded the Distinguished Flying Cross for bravery in action.
54
+
55
+ Bush next turned his energies toward completing his education and raising a family. In January 1945 he married Barbara Pierce. They had six children-- George, Robin (who died as a child), John (known as Jeb), Neil, Marvin, and Dorothy.
56
+
57
+ At Yale University he excelled both in sports and in his studies; he was captain of the baseball team and a member of Phi Beta Kappa. After graduation Bush embarked on a career in the oil industry of West Texas.
58
+
59
+ Like his father, Prescott Bush, who was elected a Senator from Connecticut in 1952, George became interested in public service and politics. He served two terms as a Representative to Congress from Texas. Twice he ran unsuccessfully for the Senate. Then he was appointed to a series of high-level positions: Ambassador to the United Nations, Chairman of the Republican National Committee, Chief of the U. S. Liaison Office in the People's Republic of China, and Director of the Central Intelligence Agency.
60
+
61
+ In 1980 Bush campaigned for the Republican nomination for President. He lost, but was chosen as a running mate by Ronald Reagan. As Vice President, Bush had responsibility in several domestic areas, including Federal deregulation and anti-drug programs, and visited scores of foreign countries. In 1988 Bush won the Republican nomination for President and, with Senator Dan Quayle of Indiana as his running mate, he defeated Massachusetts Governor Michael Dukakis in the general election.
62
+
63
+ Bush faced a dramatically changing world, as the Cold War ended after 40 bitter years, the Communist empire broke up, and the Berlin Wall fell. The Soviet Union ceased to exist; and reformist President Mikhail Gorbachev, whom Bush had supported, resigned. While Bush hailed the march of democracy, he insisted on restraint in U. S. policy toward the group of new nations.
64
+
65
+ In other areas of foreign policy, President Bush sent American troops into Panama to overthrow the corrupt regime of General Manuel Noriega, who was threatening the security of the canal and the Americans living there. Noriega was brought to the United States for trial as a drug trafficker.
66
+
67
+ Bush's greatest test came when Iraqi President Saddam Hussein invaded Kuwait, then threatened to move into Saudi Arabia. Vowing to free Kuwait, Bush rallied the United Nations, the U. S. people, and Congress and sent 425,000 American troops. They were joined by 118,000 troops from allied nations. After weeks of air and missile bombardment, the 100-hour land battle dubbed Desert Storm routed Iraq's million-man army.
68
+
69
+ Despite unprecedented popularity from this military and diplomatic triumph, Bush was unable to withstand discontent at home from a faltering economy, rising violence in inner cities, and continued high deficit spending. In 1992 he lost his bid for reelection to Democrat William Clinton.
70
+
71
+
72
+ At the end of his two terms in office, Ronald Reagan viewed with satisfaction the achievements of his innovative program known as the Reagan Revolution, which aimed to reinvigorate the American people and reduce their reliance upon Government. He felt he had fulfilled his campaign pledge of 1980 to restore "the great, confident roar of American progress and growth and optimism."
73
+
74
+ On February 6, 1911, Ronald Wilson Reagan was born to Nelle and John Reagan in Tampico, Illinois. He attended high school in nearby Dixon and then worked his way through Eureka College. There, he studied economics and sociology, played on the football team, and acted in school plays. Upon graduation, he became a radio sports announcer. A screen test in 1937 won him a contract in Hollywood. During the next two decades he appeared in 53 films.
75
+
76
+ From his first marriage to actress Jane Wyman, he had two children, Maureen and Michael. Maureen passed away in 2001. In 1952 he married Nancy Davis, who was also an actress, and they had two children, Patricia Ann and Ronald Prescott.
77
+
78
+ As president of the Screen Actors Guild, Reagan became embroiled in disputes over the issue of Communism in the film industry; his political views shifted from liberal to conservative. He toured the country as a television host, becoming a spokesman for conservatism. In 1966 he was elected Governor of California by a margin of a million votes; he was re-elected in 1970.
79
+
80
+ Ronald Reagan won the Republican Presidential nomination in 1980 and chose as his running mate former Texas Congressman and United Nations Ambassador George Bush. Voters troubled by inflation and by the year-long confinement of Americans in Iran swept the Republican ticket into office. Reagan won 489 electoral votes to 49 for President Jimmy Carter.
81
+
82
+ On January 20, 1981, Reagan took office. Only 69 days later he was shot by a would-be assassin, but quickly recovered and returned to duty. His grace and wit during the dangerous incident caused his popularity to soar.
83
+
84
+ Dealing skillfully with Congress, Reagan obtained legislation to stimulate economic growth, curb inflation, increase employment, and strengthen national defense. He embarked upon a course of cutting taxes and Government expenditures, refusing to deviate from it when the strengthening of defense forces led to a large deficit.
85
+
86
+ A renewal of national self-confidence by 1984 helped Reagan and Bush win a second term with an unprecedented number of electoral votes. Their victory turned away Democratic challengers Walter F. Mondale and Geraldine Ferraro.
87
+
88
+ In 1986 Reagan obtained an overhaul of the income tax code, which eliminated many deductions and exempted millions of people with low incomes. At the end of his administration, the Nation was enjoying its longest recorded period of peacetime prosperity without recession or depression.
89
+
90
+ In foreign policy, Reagan sought to achieve "peace through strength." During his two terms he increased defense spending 35 percent, but sought to improve relations with the Soviet Union. In dramatic meetings with Soviet leader Mikhail Gorbachev, he negotiated a treaty that would eliminate intermediate-range nuclear missiles. Reagan declared war against international terrorism, sending American bombers against Libya after evidence came out that Libya was involved in an attack on American soldiers in a West Berlin nightclub.
91
+
92
+ By ordering naval escorts in the Persian Gulf, he maintained the free flow of oil during the Iran-Iraq war. In keeping with the Reagan Doctrine, he gave support to anti-Communist insurgencies in Central America, Asia, and Africa.
93
+
94
+ Overall, the Reagan years saw a restoration of prosperity, and the goal of peace through strength seemed to be within grasp.
95
+
96
+ Jimmy Carter aspired to make Government "competent and compassionate," responsive to the American people and their expectations. His achievements were notable, but in an era of rising energy costs, mounting inflation, and continuing tensions, it was impossible for his administration to meet these high expectations.
97
+
98
+ Carter, who has rarely used his full name--James Earl Carter, Jr.--was born October 1, 1924, in Plains, Georgia. Peanut farming, talk of politics, and devotion to the Baptist faith were mainstays of his upbringing. Upon graduation in 1946 from the Naval Academy in Annapolis, Maryland, Carter married Rosalynn Smith. The Carters have three sons, John William (Jack), James Earl III (Chip), Donnel Jeffrey (Jeff), and a daughter, Amy Lynn.
99
+
100
+ After seven years' service as a naval officer, Carter returned to Plains. In 1962 he entered state politics, and eight years later he was elected Governor of Georgia. Among the new young southern governors, he attracted attention by emphasizing ecology, efficiency in government, and the removal of racial barriers.
101
+
102
+ Carter announced his candidacy for President in December 1974 and began a two-year campaign that gradually gained momentum. At the Democratic Convention, he was nominated on the first ballot. He chose Senator Walter F. Mondale of Minnesota as his running mate. Carter campaigned hard against President Gerald R. Ford, debating with him three times. Carter won by 297 electoral votes to 241 for Ford.
103
+
104
+ Carter worked hard to combat the continuing economic woes of inflation and unemployment. By the end of his administration, he could claim an increase of nearly eight million jobs and a decrease in the budget deficit, measured in percentage of the gross national product. Unfortunately, inflation and interest rates were at near record highs, and efforts to reduce them caused a short recession.
105
+
106
+ Carter could point to a number of achievements in domestic affairs. He dealt with the energy shortage by establishing a national energy policy and by decontrolling domestic petroleum prices to stimulate production. He prompted Government efficiency through civil service reform and proceeded with deregulation of the trucking and airline industries. He sought to improve the environment. His expansion of the national park system included protection of 103 million acres of Alaskan lands. To increase human and social services, he created the Department of Education, bolstered the Social Security system, and appointed record numbers of women, blacks, and Hispanics to Government jobs.
107
+
108
+ In foreign affairs, Carter set his own style. His championing of human rights was coldly received by the Soviet Union and some other nations. In the Middle East, through the Camp David agreement of 1978, he helped bring amity between Egypt and Israel. He succeeded in obtaining ratification of the Panama Canal treaties. Building upon the work of predecessors, he established full diplomatic relations with the People's Republic of China and completed negotiation of the SALT II nuclear limitation treaty with the Soviet Union.
109
+
110
+ There were serious setbacks, however. The Soviet invasion of Afghanistan caused the suspension of plans for ratification of the SALT II pact. The seizure as hostages of the U. S. embassy staff in Iran dominated the news during the last 14 months of the administration. The consequences of Iran's holding Americans captive, together with continuing inflation at home, contributed to Carter's defeat in 1980. Even then, he continued the difficult negotiations over the hostages. Iran finally released the 52 Americans the same day Carter left office.
111
+
112
+
113
+ At 2:30 on the morning of August 3, 1923, while visiting in Vermont, Calvin Coolidge received word that he was President. By the light of a kerosene lamp, his father, who was a notary public, administered the oath of office as Coolidge placed his hand on the family Bible.
114
+
115
+ Coolidge was "distinguished for character more than for heroic achievement," wrote a Democratic admirer, Alfred E. Smith. "His great task was to restore the dignity and prestige of the Presidency when it had reached the lowest ebb in our history ... in a time of extravagance and waste...."
116
+
117
+ Born in Plymouth, Vermont, on July 4, 1872, Coolidge was the son of a village storekeeper. He was graduated from Amherst College with honors, and entered law and politics in Northampton, Massachusetts. Slowly, methodically, he went up the political ladder from councilman in Northampton to Governor of Massachusetts, as a Republican. En route he became thoroughly conservative.
118
+
119
+ As President, Coolidge demonstrated his determination to preserve the old moral and economic precepts amid the material prosperity which many Americans were enjoying. He refused to use Federal economic power to check the growing boom or to ameliorate the depressed condition of agriculture and certain industries. His first message to Congress in December 1923 called for isolation in foreign policy, and for tax cuts, economy, and limited aid to farmers.
120
+
121
+ He rapidly became popular. In 1924, as the beneficiary of what was becoming known as "Coolidge prosperity," he polled more than 54 percent of the popular vote.
122
+
123
+ In his Inaugural he asserted that the country had achieved "a state of contentment seldom before seen," and pledged himself to maintain the status quo. In subsequent years he twice vetoed farm relief bills, and killed a plan to produce cheap Federal electric power on the Tennessee River.
124
+
125
+ The political genius of President Coolidge, Walter Lippmann pointed out in 1926, was his talent for effectively doing nothing: "This active inactivity suits the mood and certain of the needs of the country admirably. It suits all the business interests which want to be let alone.... And it suits all those who have become convinced that government in this country has become dangerously complicated and top-heavy...."
126
+
127
+ Coolidge was both the most negative and remote of Presidents, and the most accessible. He once explained to Bernard Baruch why he often sat silently through interviews: "Well, Baruch, many times I say only 'yes' or 'no' to people. Even that is too much. It winds them up for twenty minutes more."
128
+
129
+ But no President was kinder in permitting himself to be photographed in Indian war bonnets or cowboy dress, and in greeting a variety of delegations to the White House.
130
+
131
+ Both his dry Yankee wit and his frugality with words became legendary. His wife, Grace Goodhue Coolidge, recounted that a young woman sitting next to Coolidge at a dinner party confided to him she had bet she could get at least three words of conversation from him. Without looking at her he quietly retorted, "You lose." And in 1928, while vacationing in the Black Hills of South Dakota, he issued the most famous of his laconic statements, "I do not choose to run for President in 1928."
132
+
133
+ By the time the disaster of the Great Depression hit the country, Coolidge was in retirement. Before his death in January 1933, he confided to an old friend, ". . . I feel I no longer fit in with these times."
134
+
135
+ When Gerald R. Ford took the oath of office on August 9, 1974, he declared, "I assume the Presidency under extraordinary circumstances.... This is an hour of history that troubles our minds and hurts our hearts."
136
+
137
+ It was indeed an unprecedented time. He had been the first Vice President chosen under the terms of the Twenty-fifth Amendment and, in the aftermath of the Watergate scandal, was succeeding the first President ever to resign.
138
+
139
+ Ford was confronted with almost insuperable tasks. There were the challenges of mastering inflation, reviving a depressed economy, solving chronic energy shortages, and trying to ensure world peace.
140
+
141
+ The President acted to curb the trend toward Government intervention and spending as a means of solving the problems of American society and the economy. In the long run, he believed, this shift would bring a better life for all Americans.
142
+
143
+ Ford's reputation for integrity and openness had made him popular during his 25 years in Congress. From 1965 to 1973, he was House Minority Leader. Born in Omaha, Nebraska, in 1913, he grew up in Grand Rapids, Michigan. He starred on the University of Michigan football team, then went to Yale, where he served as assistant coach while earning his law degree. During World War II he attained the rank of lieutenant commander in the Navy. After the war he returned to Grand Rapids, where he began the practice of law, and entered Republican politics. A few weeks before his election to Congress in 1948, he married Elizabeth Bloomer. They have four children: Michael, John, Steven, and Susan.
144
+
145
+ As President, Ford tried to calm earlier controversies by granting former President Nixon a full pardon. His nominee for Vice President, former Governor Nelson Rockefeller of New York, was the second person to fill that office by appointment. Gradually, Ford selected a cabinet of his own.
146
+
147
+ Ford established his policies during his first year in office, despite opposition from a heavily Democratic Congress. His first goal was to curb inflation. Then, when recession became the Nation's most serious domestic problem, he shifted to measures aimed at stimulating the economy. But, still fearing inflation, Ford vetoed a number of non-military appropriations bills that would have further increased the already heavy budgetary deficit. During his first 14 months as President he vetoed 39 measures. His vetoes were usually sustained.
148
+
149
+ Ford continued as he had in his Congressional days to view himself as "a moderate in domestic affairs, a conservative in fiscal affairs, and a dyed-in-the-wool internationalist in foreign affairs." A major goal was to help business operate more freely by reducing taxes upon it and easing the controls exercised by regulatory agencies. "We...declared our independence 200 years ago, and we are not about to lose it now to paper shufflers and computers," he said.
150
+
151
+ In foreign affairs Ford acted vigorously to maintain U. S. power and prestige after the collapse of Cambodia and South Viet Nam. Preventing a new war in the Middle East remained a major objective; by providing aid to both Israel and Egypt, the Ford Administration helped persuade the two countries to accept an interim truce agreement. Detente with the Soviet Union continued. President Ford and Soviet leader Leonid I. Brezhnev set new limitations upon nuclear weapons.
152
+
153
+ President Ford won the Republican nomination for the Presidency in 1976, but lost the election to his Democratic opponent, former Governor Jimmy Carter of Georgia.
154
+
155
+ On Inauguration Day, President Carter began his speech: "For myself and for our Nation, I want to thank my predecessor for all he has done to heal our land." A grateful people concurred.
156
+
157
+ Before his nomination, Warren G. Harding declared, "America's present need is not heroics, but healing; not nostrums, but normalcy; not revolution, but restoration; not agitation, but adjustment; not surgery, but serenity; not the dramatic, but the dispassionate; not experiment, but equipoise; not submergence in internationality, but sustainment in triumphant nationality...."
158
+
159
+ A Democratic leader, William Gibbs McAdoo, called Harding's speeches "an army of pompous phrases moving across the landscape in search of an idea." Their very murkiness was effective, since Harding's pronouncements remained unclear on the League of Nations, in contrast to the impassioned crusade of the Democratic candidates, Governor James M. Cox of Ohio and Franklin D. Roosevelt.
160
+
161
+ Thirty-one distinguished Republicans had signed a manifesto assuring voters that a vote for Harding was a vote for the League. But Harding interpreted his election as a mandate to stay out of the League of Nations.
162
+
163
+ Harding, born near Marion, Ohio, in 1865, became the publisher of a newspaper. He married a divorcee, Mrs. Florence Kling De Wolfe. He was a trustee of the Trinity Baptist Church, a director of almost every important business, and a leader in fraternal organizations and charitable enterprises.
164
+
165
+ He organized the Citizen's Cornet Band, available for both Republican and Democratic rallies; "I played every instrument but the slide trombone and the E-flat cornet," he once remarked.
166
+
167
+ Harding's undeviating Republicanism and vibrant speaking voice, plus his willingness to let the machine bosses set policies, led him far in Ohio politics. He served in the state Senate and as Lieutenant Governor, and unsuccessfully ran for Governor. He delivered the nominating address for President Taft at the 1912 Republican Convention. In 1914 he was elected to the Senate, which he found "a very pleasant place."
168
+
169
+ An Ohio admirer, Harry Daugherty, began to promote Harding for the 1920 Republican nomination because, he later explained, "He looked like a President."
170
+
171
+ Thus a group of Senators, taking control of the 1920 Republican Convention when the principal candidates deadlocked, turned to Harding. He won the Presidential election by an unprecedented landslide of 60 percent of the popular vote.
172
+
173
+ Republicans in Congress easily got the President's signature on their bills. They eliminated wartime controls and slashed taxes, established a Federal budget system, restored the high protective tariff, and imposed tight limitations upon immigration.
174
+
175
+ By 1923 the postwar depression seemed to be giving way to a new surge of prosperity, and newspapers hailed Harding as a wise statesman carrying out his campaign promise--"Less government in business and more business in government."
176
+
177
+ Behind the facade, not all of Harding's Administration was so impressive. Word began to reach the President that some of his friends were using their official positions for their own enrichment. Alarmed, he complained, "My...friends...they're the ones that keep me walking the floors nights!"
178
+
179
+ Looking wan and depressed, Harding journeyed westward in the summer of 1923, taking with him his upright Secretary of Commerce, Herbert Hoover. "If you knew of a great scandal in our administration," he asked Hoover, "would you for the good of the country and the party expose it publicly or would you bury it?" Hoover urged publishing it, but Harding feared the political repercussions.
180
+
181
+ He did not live to find out how the public would react to the scandals of his administration. In August of 1923, he died in San Francisco of a heart attack.
182
+
183
+ Reconciliation was the first goal set by President Richard M. Nixon. The Nation was painfully divided, with turbulence in the cities and war overseas. During his Presidency, Nixon succeeded in ending American fighting in Viet Nam and improving relations with the U.S.S.R. and China. But the Watergate scandal brought fresh divisions to the country and ultimately led to his resignation.
184
+
185
+ His election in 1968 had climaxed a career unusual on two counts: his early success and his comeback after being defeated for President in 1960 and for Governor of California in 1962.
186
+
187
+ Born in California in 1913, Nixon had a brilliant record at Whittier College and Duke University Law School before beginning the practice of law. In 1940, he married Patricia Ryan; they had two daughters, Patricia (Tricia) and Julie. During World War II, Nixon served as a Navy lieutenant commander in the Pacific.
188
+
189
+ On leaving the service, he was elected to Congress from his California district. In 1950, he won a Senate seat. Two years later, General Eisenhower selected Nixon, age 39, to be his running mate.
190
+
191
+ As Vice President, Nixon took on major duties in the Eisenhower Administration. Nominated for President by acclamation in 1960, he lost by a narrow margin to John F. Kennedy. In 1968, he again won his party's nomination, and went on to defeat Vice President Hubert H. Humphrey and third-party candidate George C. Wallace.
192
+
193
+ His accomplishments while in office included revenue sharing, the end of the draft, new anticrime laws, and a broad environmental program. As he had promised, he appointed Justices of conservative philosophy to the Supreme Court. One of the most dramatic events of his first term occurred in 1969, when American astronauts made the first moon landing.
194
+
195
+ Some of his most acclaimed achievements came in his quest for world stability. During visits in 1972 to Beijing and Moscow, he reduced tensions with China and the U.S.S.R. His summit meetings with Russian leader Leonid I. Brezhnev produced a treaty to limit strategic nuclear weapons. In January 1973, he announced an accord with North Viet Nam to end American involvement in Indochina. In 1974, his Secretary of State, Henry Kissinger, negotiated disengagement agreements between Israel and
196
+ its opponents, Egypt and Syria.
197
+
198
+ In his 1972 bid for office, Nixon defeated Democratic candidate George McGovern by one of the widest margins on record.
199
+
200
+ Within a few months, his administration was embattled over the so-called "Watergate" scandal, stemming from a break-in at the offices of the Democratic National Committee during the 1972 campaign. The break-in was traced to officials of the Committee to Re-elect the President. A number of administration officials resigned; some were later convicted of offenses connected with efforts to cover up the affair. Nixon denied any personal involvement, but the courts forced him to
201
+ yield tape recordings which indicated that he had, in fact, tried to divert the investigation.
202
+
203
+ As a result of unrelated scandals in Maryland, Vice President Spiro T. Agnew resigned in 1973. Nixon nominated, and Congress approved, House Minority Leader Gerald R. Ford as Vice President.
204
+
205
+ Faced with what seemed almost certain impeachment, Nixon announced on August 8, 1974, that he would resign the next day to begin "that process of healing which is so desperately needed in America."
206
+
207
+ In his last years, Nixon gained praise as an elder statesman. By the time of his death on April 22, 1994, he had written numerous books on his experiences in public life and on foreign policy.
208
+
209
+ "A Great Society" for the American people and their fellow men elsewhere was the vision of Lyndon B. Johnson. In his first years of office he obtained passage of one of the most extensive legislative programs in the Nation's history. Maintaining collective security, he carried on the rapidly growing struggle to restrain Communist encroachment in Viet Nam.
210
+
211
+ Johnson was born on August 27, 1908, in central Texas, not far from Johnson City, which his family had helped settle. He felt the pinch of rural poverty as he grew up, working his way through Southwest Texas State Teachers College (now known as Texas State University-San Marcos); he learned compassion for the poverty of others when he taught students of Mexican descent.
212
+
213
+ In 1937 he campaigned successfully for the House of Representatives on a New Deal platform, effectively aided by his wife, the former Claudia "Lady Bird" Taylor, whom he had married in 1934.
214
+
215
+ During World War II he served briefly in the Navy as a lieutenant commander, winning a Silver Star in the South Pacific. After six terms in the House, Johnson was elected to the Senate in 1948. In 1953, he became the youngest Minority Leader in Senate history, and the following year, when the Democrats won control, Majority Leader. With rare skill he obtained passage of a number of key Eisenhower measures.
216
+
217
+ In the 1960 campaign, Johnson, as John F. Kennedy's running mate, was elected Vice President. On November 22, 1963, when Kennedy was assassinated, Johnson was sworn in as President.
218
+
219
+ First he obtained enactment of the measures President Kennedy had been urging at the time of his death--a new civil rights bill and a tax cut. Next he urged the Nation "to build a great society, a place where the meaning of man's life matches the marvels of man's labor." In 1964, Johnson won the Presidency with 61 percent of the vote and had the widest popular margin in American history--more than 15,000,000 votes.
220
+
221
+ The Great Society program became Johnson's agenda for Congress in January 1965: aid to education, attack on disease, Medicare, urban renewal, beautification, conservation, development of depressed regions, a wide-scale fight against poverty, control and prevention of crime and delinquency, removal of obstacles to the right to vote. Congress, at times augmenting or amending, rapidly enacted Johnson's recommendations. Millions of elderly people found succor through the 1965
222
+ Medicare amendment to the Social Security Act.
223
+
224
+ Under Johnson, the country made spectacular explorations of space in a program he had championed since its start. When three astronauts successfully orbited the moon in December 1968, Johnson congratulated them: "You've taken ... all of us, all over the world, into a new era. . . . "
225
+
226
+ Nevertheless, two overriding crises had been gaining momentum since 1965. Despite the beginning of new antipoverty and anti-discrimination programs, unrest and rioting in black ghettos troubled the Nation. President Johnson steadily exerted his influence against segregation and on behalf of law and order, but there was no early solution.
227
+
228
+ The other crisis arose from Viet Nam. Despite Johnson's efforts to end Communist aggression and achieve a settlement, fighting continued. Controversy over the war had become acute by the end of March 1968, when he limited the bombing of North Viet Nam in order to initiate negotiations. At the same time, he startled the world by withdrawing as a candidate for re-election so that he might devote his full efforts, unimpeded by politics, to the quest for peace.
229
+
230
+ When he left office, peace talks were under way; he did not live to see them successful, but died suddenly of a heart attack at his Texas ranch on January 22, 1973.
231
+
232
+ On November 22, 1963, when he was hardly past his first thousand days in office, John Fitzgerald Kennedy was killed by an assassin's bullets as his motorcade wound through Dallas, Texas. Kennedy was the youngest man elected President; he was the youngest to die.
233
+
234
+ Of Irish descent, he was born in Brookline, Massachusetts, on May 29, 1917. Graduating from Harvard in 1940, he entered the Navy. In 1943, when his PT boat was rammed and sunk by a Japanese destroyer, Kennedy, despite grave injuries, led the survivors through perilous waters to safety.
235
+
236
+ Back from the war, he became a Democratic Congressman from the Boston area, advancing in 1953 to the Senate. He married Jacqueline Bouvier on September 12, 1953. In 1955, while recuperating from a back operation, he wrote Profiles in Courage, which won the Pulitzer Prize in history.
237
+
238
+ In 1956 Kennedy almost gained the Democratic nomination for Vice President, and four years later was a first-ballot nominee for President. Millions watched his television debates with the Republican candidate, Richard M. Nixon. Winning by a narrow margin in the popular vote, Kennedy became the first Roman Catholic President.
239
+
240
+ His Inaugural Address offered the memorable injunction: "Ask not what your country can do for you--ask what you can do for your country." As President, he set out to redeem his campaign pledge to get America moving again. His economic programs launched the country on its longest sustained expansion since World War II; before his death, he laid plans for a massive assault on persisting pockets of privation and poverty.
241
+
242
+ Responding to ever more urgent demands, he took vigorous action in the cause of equal rights, calling for new civil rights legislation. His vision of America extended to the quality of the national culture and the central role of the arts in a vital society.
243
+
244
+ He wished America to resume its old mission as the first nation dedicated to the revolution of human rights. With the Alliance for Progress and the Peace Corps, he brought American idealism to the aid of developing nations. But the hard reality of the Communist challenge remained.
245
+
246
+ Shortly after his inauguration, Kennedy permitted a band of Cuban exiles, already armed and trained, to invade their homeland. The attempt to overthrow the regime of Fidel Castro was a failure. Soon thereafter, the Soviet Union renewed its campaign against West Berlin. Kennedy replied by reinforcing the Berlin garrison and increasing the Nation's military strength, including new efforts in outer space. Confronted by this reaction, Moscow, after the erection of the Berlin Wall, relaxed its
247
+ pressure in central Europe.
248
+
249
+ Instead, the Russians now sought to install nuclear missiles in Cuba. When this was discovered by air reconnaissance in October 1962, Kennedy imposed a quarantine on all offensive weapons bound for Cuba. While the world trembled on the brink of nuclear war, the Russians backed down and agreed to take the missiles away. The American response to the Cuban crisis evidently persuaded Moscow of the futility of nuclear blackmail.
250
+
251
+ Kennedy now contended that both sides had a vital interest in stopping the spread of nuclear weapons and slowing the arms race--a contention which led to the test ban treaty of 1963. The months after the Cuban crisis showed significant progress toward his goal of "a world of law and free choice, banishing the world of war and coercion." His administration thus saw the beginning of new hope for both the equal rights of Americans and the peace of the world.
252
+
253
+ Bringing to the Presidency his prestige as commanding general of the victorious forces in Europe during World War II, Dwight D. Eisenhower obtained a truce in Korea and worked incessantly during his two terms to ease the tensions of the Cold War. He pursued the moderate policies of "Modern Republicanism," pointing out as he left office, "America is today the strongest, most influential, and most productive nation in the world."
254
+
255
+ Born in Texas in 1890, brought up in Abilene, Kansas, Eisenhower was the third of seven sons. He excelled in sports in high school, and received an appointment to West Point. Stationed in Texas as a second lieutenant, he met Mamie Geneva Doud, whom he married in 1916.
256
+
257
+ In his early Army career, he excelled in staff assignments, serving under Generals John J. Pershing, Douglas MacArthur, and Walter Krueger. After Pearl Harbor, General George C. Marshall called him to Washington for a war plans assignment. He commanded the Allied Forces landing in North Africa in November 1942; on D-Day, 1944, he was Supreme Commander of the troops invading France.
258
+
259
+ After the war, he became President of Columbia University, then took leave to assume supreme command over the new NATO forces being assembled in 1951. Republican emissaries to his headquarters near Paris persuaded him to run for President in 1952.
260
+
261
+ "I like Ike" was an irresistible slogan; Eisenhower won a sweeping victory.
262
+
263
+ Negotiating from military strength, he tried to reduce the strains of the Cold War. In 1953, the signing of a truce brought an armed peace along the border of South Korea. The death of Stalin the same year caused shifts in relations with Russia.
264
+
265
+ New Russian leaders consented to a peace treaty neutralizing Austria. Meanwhile, both Russia and the United States had developed hydrogen bombs. With the threat of such destructive force hanging over the world, Eisenhower, with the leaders of the British, French, and Russian governments, met at Geneva in July 1955.
266
+
267
+ The President proposed that the United States and Russia exchange blueprints of each other's military establishments and "provide within our countries facilities for aerial photography to the other country." The Russians greeted the proposal with silence, but were so cordial throughout the meetings that tensions relaxed.
268
+
269
+ Suddenly, in September 1955, Eisenhower suffered a heart attack in Denver, Colorado. After seven weeks he left the hospital, and in February 1956 doctors reported his recovery. In November he was elected for his second term.
270
+
271
+ In domestic policy the President pursued a middle course, continuing most of the New Deal and Fair Deal programs, emphasizing a balanced budget. As desegregation of schools began, he sent troops into Little Rock, Arkansas, to assure compliance with the orders of a Federal court; he also ordered the complete desegregation of the Armed Forces. "There must be no second class citizens in this country," he wrote.
272
+
273
+ Eisenhower concentrated on maintaining world peace. He watched with pleasure the development of his "atoms for peace" program--the loan of American uranium to "have not" nations for peaceful purposes.
274
+
275
+ Before he left office in January 1961, for his farm in Gettysburg, he urged the necessity of maintaining an adequate military strength, but cautioned that vast, long-continued military expenditures could breed potential dangers to our way of life. He concluded with a prayer for peace "in the goodness of time." Both themes remained timely and urgent when he died, after a long illness, on March 28, 1969.
CoreNLP/stanford-corenlp-4.5.7/patterns/stopwords.txt ADDED
@@ -0,0 +1,257 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ !!
2
+ ?!
3
+ ??
4
+ !?
5
+ `
6
+ ``
7
+ ''
8
+ -lrb-
9
+ -rrb-
10
+ -lsb-
11
+ -rsb-
12
+ ,
13
+ .
14
+ :
15
+ ;
16
+ "
17
+ '
18
+ ?
19
+ <
20
+ >
21
+ {
22
+ }
23
+ [
24
+ ]
25
+ +
26
+ -
27
+ (
28
+ )
29
+ &
30
+ %
31
+ $
32
+ @
33
+ !
34
+ ^
35
+ #
36
+ *
37
+ ..
38
+ ...
39
+ 'll
40
+ 's
41
+ 'm
42
+ a
43
+ about
44
+ above
45
+ after
46
+ again
47
+ against
48
+ all
49
+ am
50
+ an
51
+ and
52
+ any
53
+ are
54
+ aren't
55
+ as
56
+ at
57
+ be
58
+ because
59
+ been
60
+ before
61
+ being
62
+ below
63
+ between
64
+ both
65
+ but
66
+ by
67
+ can
68
+ can't
69
+ cannot
70
+ could
71
+ couldn't
72
+ did
73
+ didn't
74
+ do
75
+ does
76
+ doesn't
77
+ doing
78
+ don't
79
+ down
80
+ during
81
+ each
82
+ few
83
+ for
84
+ from
85
+ further
86
+ had
87
+ hadn't
88
+ has
89
+ hasn't
90
+ have
91
+ haven't
92
+ having
93
+ he
94
+ he'd
95
+ he'll
96
+ he's
97
+ her
98
+ here
99
+ here's
100
+ hers
101
+ herself
102
+ him
103
+ himself
104
+ his
105
+ how
106
+ how's
107
+ i
108
+ i'd
109
+ i'll
110
+ i'm
111
+ i've
112
+ if
113
+ in
114
+ into
115
+ is
116
+ isn't
117
+ it
118
+ it's
119
+ its
120
+ itself
121
+ let's
122
+ me
123
+ more
124
+ most
125
+ mustn't
126
+ my
127
+ myself
128
+ no
129
+ nor
130
+ not
131
+ of
132
+ off
133
+ on
134
+ once
135
+ only
136
+ or
137
+ other
138
+ ought
139
+ our
140
+ ours
141
+ ourselves
142
+ out
143
+ over
144
+ own
145
+ same
146
+ shan't
147
+ she
148
+ she'd
149
+ she'll
150
+ she's
151
+ should
152
+ shouldn't
153
+ so
154
+ some
155
+ such
156
+ than
157
+ that
158
+ that's
159
+ the
160
+ their
161
+ theirs
162
+ them
163
+ themselves
164
+ then
165
+ there
166
+ there's
167
+ these
168
+ they
169
+ they'd
170
+ they'll
171
+ they're
172
+ they've
173
+ this
174
+ those
175
+ through
176
+ to
177
+ too
178
+ under
179
+ until
180
+ up
181
+ very
182
+ was
183
+ wasn't
184
+ we
185
+ we'd
186
+ we'll
187
+ we're
188
+ we've
189
+ were
190
+ weren't
191
+ what
192
+ what's
193
+ when
194
+ when's
195
+ where
196
+ where's
197
+ which
198
+ while
199
+ who
200
+ who's
201
+ whom
202
+ why
203
+ why's
204
+ with
205
+ won't
206
+ would
207
+ wouldn't
208
+ you
209
+ you'd
210
+ you'll
211
+ you're
212
+ you've
213
+ your
214
+ yours
215
+ yourself
216
+ yourselves
217
+ ###
218
+ return
219
+ arent
220
+ cant
221
+ couldnt
222
+ didnt
223
+ doesnt
224
+ dont
225
+ hadnt
226
+ hasnt
227
+ havent
228
+ hes
229
+ heres
230
+ hows
231
+ im
232
+ isnt
233
+ its
234
+ lets
235
+ mustnt
236
+ shant
237
+ shes
238
+ shouldnt
239
+ thats
240
+ theres
241
+ theyll
242
+ theyre
243
+ theyve
244
+ wasnt
245
+ were
246
+ werent
247
+ whats
248
+ whens
249
+ wheres
250
+ whos
251
+ whys
252
+ wont
253
+ wouldnt
254
+ youd
255
+ youll
256
+ youre
257
+ youve
CoreNLP/stanford-corenlp-4.5.7/pom-java-11.xml ADDED
@@ -0,0 +1,228 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
+ <modelVersion>4.0.0</modelVersion>
3
+ <groupId>edu.stanford.nlp</groupId>
4
+ <artifactId>stanford-corenlp</artifactId>
5
+ <version>4.5.7</version>
6
+ <packaging>jar</packaging>
7
+ <name>Stanford CoreNLP</name>
8
+ <description>Stanford CoreNLP provides a set of natural language analysis tools which can take raw English language text input and give the base forms of words, their parts of speech, whether they are names of companies, people, etc., normalize dates, times, and numeric quantities, mark up the structure of sentences in terms of phrases and word dependencies, and indicate which noun phrases refer to the same entities. It provides the foundational building blocks for higher level text understanding applications.</description>
9
+ <url>https://nlp.stanford.edu/software/corenlp.html</url>
10
+ <licenses>
11
+ <license>
12
+ <name>GNU General Public License Version 3</name>
13
+ <url>http://www.gnu.org/licenses/gpl-3.0.txt</url>
14
+ </license>
15
+ </licenses>
16
+ <scm>
17
+ <url>https://nlp.stanford.edu/software/stanford-corenlp-4.5.7.zip</url>
18
+ <connection>https://nlp.stanford.edu/software/stanford-corenlp-4.5.7.zip</connection>
19
+ </scm>
20
+ <developers>
21
+ <developer>
22
+ <id>christopher.manning</id>
23
+ <name>Christopher Manning</name>
24
+ <email>manning@stanford.edu</email>
25
+ </developer>
26
+ <developer>
27
+ <id>jason.bolton</id>
28
+ <name>Jason Bolton</name>
29
+ <email>jebolton@stanford.edu</email>
30
+ </developer>
31
+ <developer>
32
+ <id>john.bauer</id>
33
+ <name>John Bauer</name>
34
+ <email>horatio@gmail.com</email>
35
+ </developer>
36
+ </developers>
37
+ <properties>
38
+ <encoding>UTF-8</encoding>
39
+ </properties>
40
+ <dependencies>
41
+
42
+ <dependency>
43
+ <groupId>com.apple</groupId>
44
+ <artifactId>AppleJavaExtensions</artifactId>
45
+ <version>1.4</version>
46
+ </dependency>
47
+
48
+ <dependency>
49
+ <groupId>de.jollyday</groupId>
50
+ <artifactId>jollyday</artifactId>
51
+ <version>0.4.9</version>
52
+ </dependency>
53
+
54
+ <dependency>
55
+ <groupId>org.apache.commons</groupId>
56
+ <artifactId>commons-lang3</artifactId>
57
+ <version>3.3.1</version>
58
+ </dependency>
59
+
60
+ <dependency>
61
+ <groupId>org.apache.lucene</groupId>
62
+ <artifactId>lucene-queryparser</artifactId>
63
+ <version>7.5.0</version>
64
+ </dependency>
65
+
66
+ <dependency>
67
+ <groupId>org.apache.lucene</groupId>
68
+ <artifactId>lucene-analyzers-common</artifactId>
69
+ <version>7.5.0</version>
70
+ </dependency>
71
+
72
+ <dependency>
73
+ <groupId>org.apache.lucene</groupId>
74
+ <artifactId>lucene-core</artifactId>
75
+ <version>7.5.0</version>
76
+ </dependency>
77
+
78
+ <!-- https://mvnrepository.com/artifact/jakarta.servlet/jakarta.servlet-api -->
79
+ <dependency>
80
+ <groupId>jakarta.servlet</groupId>
81
+ <artifactId>jakarta.servlet-api</artifactId>
82
+ <version>4.0.4</version>
83
+ </dependency>
84
+
85
+ <dependency>
86
+ <groupId>xom</groupId>
87
+ <artifactId>xom</artifactId>
88
+ <version>1.3.9</version>
89
+ </dependency>
90
+
91
+ <!-- https://mvnrepository.com/artifact/xalan/xalan -->
92
+ <dependency>
93
+ <groupId>xalan</groupId>
94
+ <artifactId>xalan</artifactId>
95
+ <version>2.7.3</version>
96
+ </dependency>
97
+ <dependency>
98
+ <groupId>xalan</groupId>
99
+ <artifactId>serializer</artifactId>
100
+ <version>2.7.3</version>
101
+ </dependency>
102
+
103
+ <dependency>
104
+ <groupId>joda-time</groupId>
105
+ <artifactId>joda-time</artifactId>
106
+ <version>2.10.5</version>
107
+ </dependency>
108
+
109
+ <dependency>
110
+ <groupId>org.ejml</groupId>
111
+ <artifactId>ejml-core</artifactId>
112
+ <version>0.39</version>
113
+ </dependency>
114
+
115
+ <dependency>
116
+ <groupId>org.ejml</groupId>
117
+ <artifactId>ejml-ddense</artifactId>
118
+ <version>0.39</version>
119
+ </dependency>
120
+
121
+ <dependency>
122
+ <groupId>org.ejml</groupId>
123
+ <artifactId>ejml-simple</artifactId>
124
+ <version>0.39</version>
125
+ </dependency>
126
+
127
+ <dependency>
128
+ <groupId>org.glassfish</groupId>
129
+ <artifactId>javax.json</artifactId>
130
+ <version>1.0.4</version>
131
+ </dependency>
132
+
133
+ <dependency>
134
+ <groupId>org.slf4j</groupId>
135
+ <artifactId>slf4j-api</artifactId>
136
+ <version>1.7.12</version>
137
+ </dependency>
138
+
139
+ <dependency>
140
+ <groupId>com.google.protobuf</groupId>
141
+ <artifactId>protobuf-java</artifactId>
142
+ <version>3.19.6</version>
143
+ </dependency>
144
+
145
+ <dependency>
146
+ <groupId>junit</groupId>
147
+ <artifactId>junit</artifactId>
148
+ <version>4.13.1</version>
149
+ <scope>test</scope>
150
+ </dependency>
151
+
152
+ <dependency>
153
+ <groupId>com.pholser</groupId>
154
+ <artifactId>junit-quickcheck-core</artifactId>
155
+ <version>0.5</version>
156
+ <scope>test</scope>
157
+ </dependency>
158
+
159
+ <dependency>
160
+ <groupId>com.pholser</groupId>
161
+ <artifactId>junit-quickcheck-generators</artifactId>
162
+ <version>0.5</version>
163
+ <scope>test</scope>
164
+ </dependency>
165
+
166
+ <dependency>
167
+ <groupId>javax.activation</groupId>
168
+ <artifactId>javax.activation-api</artifactId>
169
+ <version>1.2.0</version>
170
+ </dependency>
171
+
172
+ <dependency>
173
+ <groupId>javax.xml.bind</groupId>
174
+ <artifactId>jaxb-api</artifactId>
175
+ <version>2.4.0-b180830.0359</version>
176
+ </dependency>
177
+
178
+ <dependency>
179
+ <groupId>com.sun.istack</groupId>
180
+ <artifactId>istack-commons-runtime</artifactId>
181
+ <version>3.0.7</version>
182
+ </dependency>
183
+
184
+ <dependency>
185
+ <groupId>com.sun.xml.bind</groupId>
186
+ <artifactId>jaxb-impl</artifactId>
187
+ <version>2.4.0-b180830.0438</version>
188
+ </dependency>
189
+
190
+ </dependencies>
191
+ <build>
192
+ <sourceDirectory>src</sourceDirectory>
193
+ <testSourceDirectory>test/src</testSourceDirectory>
194
+ <plugins>
195
+ <plugin>
196
+ <groupId>org.codehaus.mojo</groupId>
197
+ <artifactId>build-helper-maven-plugin</artifactId>
198
+ <version>1.7</version>
199
+ <executions>
200
+ <execution>
201
+ <id>attach-models</id>
202
+ <phase>package</phase>
203
+ <goals>
204
+ <goal>attach-artifact</goal>
205
+ </goals>
206
+ <configuration>
207
+ <artifacts>
208
+ <artifact>
209
+ <file>${project.basedir}/stanford-corenlp-4.5.7-models.jar</file>
210
+ <type>jar</type>
211
+ <classifier>models</classifier>
212
+ </artifact>
213
+ </artifacts>
214
+ </configuration>
215
+ </execution>
216
+ </executions>
217
+ </plugin>
218
+ <plugin>
219
+ <groupId>org.apache.maven.plugins</groupId>
220
+ <artifactId>maven-compiler-plugin</artifactId>
221
+ <version>3.8.1</version>
222
+ <configuration>
223
+ <release>11</release>
224
+ </configuration>
225
+ </plugin>
226
+ </plugins>
227
+ </build>
228
+ </project>
CoreNLP/stanford-corenlp-4.5.7/pom-java-17.xml ADDED
@@ -0,0 +1,228 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
+ <modelVersion>4.0.0</modelVersion>
3
+ <groupId>edu.stanford.nlp</groupId>
4
+ <artifactId>stanford-corenlp</artifactId>
5
+ <version>4.5.7</version>
6
+ <packaging>jar</packaging>
7
+ <name>Stanford CoreNLP</name>
8
+ <description>Stanford CoreNLP provides a set of natural language analysis tools which can take raw English language text input and give the base forms of words, their parts of speech, whether they are names of companies, people, etc., normalize dates, times, and numeric quantities, mark up the structure of sentences in terms of phrases and word dependencies, and indicate which noun phrases refer to the same entities. It provides the foundational building blocks for higher level text understanding applications.</description>
9
+ <url>https://nlp.stanford.edu/software/corenlp.html</url>
10
+ <licenses>
11
+ <license>
12
+ <name>GNU General Public License Version 3</name>
13
+ <url>http://www.gnu.org/licenses/gpl-3.0.txt</url>
14
+ </license>
15
+ </licenses>
16
+ <scm>
17
+ <url>https://nlp.stanford.edu/software/stanford-corenlp-4.5.7.zip</url>
18
+ <connection>https://nlp.stanford.edu/software/stanford-corenlp-4.5.7.zip</connection>
19
+ </scm>
20
+ <developers>
21
+ <developer>
22
+ <id>christopher.manning</id>
23
+ <name>Christopher Manning</name>
24
+ <email>manning@stanford.edu</email>
25
+ </developer>
26
+ <developer>
27
+ <id>jason.bolton</id>
28
+ <name>Jason Bolton</name>
29
+ <email>jebolton@stanford.edu</email>
30
+ </developer>
31
+ <developer>
32
+ <id>john.bauer</id>
33
+ <name>John Bauer</name>
34
+ <email>horatio@gmail.com</email>
35
+ </developer>
36
+ </developers>
37
+ <properties>
38
+ <encoding>UTF-8</encoding>
39
+ </properties>
40
+ <dependencies>
41
+
42
+ <dependency>
43
+ <groupId>com.apple</groupId>
44
+ <artifactId>AppleJavaExtensions</artifactId>
45
+ <version>1.4</version>
46
+ </dependency>
47
+
48
+ <dependency>
49
+ <groupId>de.jollyday</groupId>
50
+ <artifactId>jollyday</artifactId>
51
+ <version>0.4.9</version>
52
+ </dependency>
53
+
54
+ <dependency>
55
+ <groupId>org.apache.commons</groupId>
56
+ <artifactId>commons-lang3</artifactId>
57
+ <version>3.3.1</version>
58
+ </dependency>
59
+
60
+ <dependency>
61
+ <groupId>org.apache.lucene</groupId>
62
+ <artifactId>lucene-queryparser</artifactId>
63
+ <version>7.5.0</version>
64
+ </dependency>
65
+
66
+ <dependency>
67
+ <groupId>org.apache.lucene</groupId>
68
+ <artifactId>lucene-analyzers-common</artifactId>
69
+ <version>7.5.0</version>
70
+ </dependency>
71
+
72
+ <dependency>
73
+ <groupId>org.apache.lucene</groupId>
74
+ <artifactId>lucene-core</artifactId>
75
+ <version>7.5.0</version>
76
+ </dependency>
77
+
78
+ <!-- https://mvnrepository.com/artifact/jakarta.servlet/jakarta.servlet-api -->
79
+ <dependency>
80
+ <groupId>jakarta.servlet</groupId>
81
+ <artifactId>jakarta.servlet-api</artifactId>
82
+ <version>4.0.4</version>
83
+ </dependency>
84
+
85
+ <dependency>
86
+ <groupId>xom</groupId>
87
+ <artifactId>xom</artifactId>
88
+ <version>1.3.9</version>
89
+ </dependency>
90
+
91
+ <!-- https://mvnrepository.com/artifact/xalan/xalan -->
92
+ <dependency>
93
+ <groupId>xalan</groupId>
94
+ <artifactId>xalan</artifactId>
95
+ <version>2.7.3</version>
96
+ </dependency>
97
+ <dependency>
98
+ <groupId>xalan</groupId>
99
+ <artifactId>serializer</artifactId>
100
+ <version>2.7.3</version>
101
+ </dependency>
102
+
103
+ <dependency>
104
+ <groupId>joda-time</groupId>
105
+ <artifactId>joda-time</artifactId>
106
+ <version>2.10.5</version>
107
+ </dependency>
108
+
109
+ <dependency>
110
+ <groupId>org.ejml</groupId>
111
+ <artifactId>ejml-core</artifactId>
112
+ <version>0.39</version>
113
+ </dependency>
114
+
115
+ <dependency>
116
+ <groupId>org.ejml</groupId>
117
+ <artifactId>ejml-ddense</artifactId>
118
+ <version>0.39</version>
119
+ </dependency>
120
+
121
+ <dependency>
122
+ <groupId>org.ejml</groupId>
123
+ <artifactId>ejml-simple</artifactId>
124
+ <version>0.39</version>
125
+ </dependency>
126
+
127
+ <dependency>
128
+ <groupId>org.glassfish</groupId>
129
+ <artifactId>javax.json</artifactId>
130
+ <version>1.0.4</version>
131
+ </dependency>
132
+
133
+ <dependency>
134
+ <groupId>org.slf4j</groupId>
135
+ <artifactId>slf4j-api</artifactId>
136
+ <version>1.7.12</version>
137
+ </dependency>
138
+
139
+ <dependency>
140
+ <groupId>com.google.protobuf</groupId>
141
+ <artifactId>protobuf-java</artifactId>
142
+ <version>3.19.6</version>
143
+ </dependency>
144
+
145
+ <dependency>
146
+ <groupId>junit</groupId>
147
+ <artifactId>junit</artifactId>
148
+ <version>4.13.1</version>
149
+ <scope>test</scope>
150
+ </dependency>
151
+
152
+ <dependency>
153
+ <groupId>com.pholser</groupId>
154
+ <artifactId>junit-quickcheck-core</artifactId>
155
+ <version>0.5</version>
156
+ <scope>test</scope>
157
+ </dependency>
158
+
159
+ <dependency>
160
+ <groupId>com.pholser</groupId>
161
+ <artifactId>junit-quickcheck-generators</artifactId>
162
+ <version>0.5</version>
163
+ <scope>test</scope>
164
+ </dependency>
165
+
166
+ <dependency>
167
+ <groupId>javax.activation</groupId>
168
+ <artifactId>javax.activation-api</artifactId>
169
+ <version>1.2.0</version>
170
+ </dependency>
171
+
172
+ <dependency>
173
+ <groupId>javax.xml.bind</groupId>
174
+ <artifactId>jaxb-api</artifactId>
175
+ <version>2.4.0-b180830.0359</version>
176
+ </dependency>
177
+
178
+ <dependency>
179
+ <groupId>com.sun.istack</groupId>
180
+ <artifactId>istack-commons-runtime</artifactId>
181
+ <version>3.0.7</version>
182
+ </dependency>
183
+
184
+ <dependency>
185
+ <groupId>com.sun.xml.bind</groupId>
186
+ <artifactId>jaxb-impl</artifactId>
187
+ <version>2.4.0-b180830.0438</version>
188
+ </dependency>
189
+
190
+ </dependencies>
191
+ <build>
192
+ <sourceDirectory>src</sourceDirectory>
193
+ <testSourceDirectory>test/src</testSourceDirectory>
194
+ <plugins>
195
+ <plugin>
196
+ <groupId>org.codehaus.mojo</groupId>
197
+ <artifactId>build-helper-maven-plugin</artifactId>
198
+ <version>1.7</version>
199
+ <executions>
200
+ <execution>
201
+ <id>attach-models</id>
202
+ <phase>package</phase>
203
+ <goals>
204
+ <goal>attach-artifact</goal>
205
+ </goals>
206
+ <configuration>
207
+ <artifacts>
208
+ <artifact>
209
+ <file>${project.basedir}/stanford-corenlp-4.5.7-models.jar</file>
210
+ <type>jar</type>
211
+ <classifier>models</classifier>
212
+ </artifact>
213
+ </artifacts>
214
+ </configuration>
215
+ </execution>
216
+ </executions>
217
+ </plugin>
218
+ <plugin>
219
+ <groupId>org.apache.maven.plugins</groupId>
220
+ <artifactId>maven-compiler-plugin</artifactId>
221
+ <version>3.8.1</version>
222
+ <configuration>
223
+ <release>17</release>
224
+ </configuration>
225
+ </plugin>
226
+ </plugins>
227
+ </build>
228
+ </project>
CoreNLP/stanford-corenlp-4.5.7/pom.xml ADDED
@@ -0,0 +1,222 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
+ <modelVersion>4.0.0</modelVersion>
3
+ <groupId>edu.stanford.nlp</groupId>
4
+ <artifactId>stanford-corenlp</artifactId>
5
+ <version>4.5.7</version>
6
+ <packaging>jar</packaging>
7
+ <name>Stanford CoreNLP</name>
8
+ <description>Stanford CoreNLP provides a set of natural language analysis tools which can take raw English language text input and give the base forms of words, their parts of speech, whether they are names of companies, people, etc., normalize dates, times, and numeric quantities, mark up the structure of sentences in terms of phrases and word dependencies, and indicate which noun phrases refer to the same entities. It provides the foundational building blocks for higher level text understanding applications.</description>
9
+ <url>https://nlp.stanford.edu/software/corenlp.html</url>
10
+ <licenses>
11
+ <license>
12
+ <name>GNU General Public License Version 3</name>
13
+ <url>http://www.gnu.org/licenses/gpl-3.0.txt</url>
14
+ </license>
15
+ </licenses>
16
+ <scm>
17
+ <url>https://nlp.stanford.edu/software/stanford-corenlp-4.5.7.zip</url>
18
+ <connection>https://nlp.stanford.edu/software/stanford-corenlp-4.5.7.zip</connection>
19
+ </scm>
20
+ <developers>
21
+ <developer>
22
+ <id>christopher.manning</id>
23
+ <name>Christopher Manning</name>
24
+ <email>manning@stanford.edu</email>
25
+ </developer>
26
+ <developer>
27
+ <id>jason.bolton</id>
28
+ <name>Jason Bolton</name>
29
+ <email>jebolton@stanford.edu</email>
30
+ </developer>
31
+ <developer>
32
+ <id>john.bauer</id>
33
+ <name>John Bauer</name>
34
+ <email>horatio@gmail.com</email>
35
+ </developer>
36
+ </developers>
37
+ <properties>
38
+ <maven.compiler.source>1.8</maven.compiler.source>
39
+ <maven.compiler.target>1.8</maven.compiler.target>
40
+ <encoding>UTF-8</encoding>
41
+ </properties>
42
+ <dependencies>
43
+
44
+ <dependency>
45
+ <groupId>com.apple</groupId>
46
+ <artifactId>AppleJavaExtensions</artifactId>
47
+ <version>1.4</version>
48
+ </dependency>
49
+
50
+ <dependency>
51
+ <groupId>de.jollyday</groupId>
52
+ <artifactId>jollyday</artifactId>
53
+ <version>0.4.9</version>
54
+ </dependency>
55
+
56
+ <dependency>
57
+ <groupId>org.apache.commons</groupId>
58
+ <artifactId>commons-lang3</artifactId>
59
+ <version>3.3.1</version>
60
+ </dependency>
61
+
62
+ <dependency>
63
+ <groupId>org.apache.lucene</groupId>
64
+ <artifactId>lucene-queryparser</artifactId>
65
+ <version>7.5.0</version>
66
+ </dependency>
67
+
68
+ <dependency>
69
+ <groupId>org.apache.lucene</groupId>
70
+ <artifactId>lucene-analyzers-common</artifactId>
71
+ <version>7.5.0</version>
72
+ </dependency>
73
+
74
+ <dependency>
75
+ <groupId>org.apache.lucene</groupId>
76
+ <artifactId>lucene-core</artifactId>
77
+ <version>7.5.0</version>
78
+ </dependency>
79
+
80
+ <!-- https://mvnrepository.com/artifact/jakarta.servlet/jakarta.servlet-api -->
81
+ <dependency>
82
+ <groupId>jakarta.servlet</groupId>
83
+ <artifactId>jakarta.servlet-api</artifactId>
84
+ <version>4.0.4</version>
85
+ </dependency>
86
+
87
+ <dependency>
88
+ <groupId>xom</groupId>
89
+ <artifactId>xom</artifactId>
90
+ <version>1.3.9</version>
91
+ </dependency>
92
+
93
+ <!-- https://mvnrepository.com/artifact/xalan/xalan -->
94
+ <dependency>
95
+ <groupId>xalan</groupId>
96
+ <artifactId>xalan</artifactId>
97
+ <version>2.7.3</version>
98
+ </dependency>
99
+ <dependency>
100
+ <groupId>xalan</groupId>
101
+ <artifactId>serializer</artifactId>
102
+ <version>2.7.3</version>
103
+ </dependency>
104
+
105
+ <dependency>
106
+ <groupId>joda-time</groupId>
107
+ <artifactId>joda-time</artifactId>
108
+ <version>2.10.5</version>
109
+ </dependency>
110
+
111
+ <dependency>
112
+ <groupId>org.ejml</groupId>
113
+ <artifactId>ejml-core</artifactId>
114
+ <version>0.39</version>
115
+ </dependency>
116
+
117
+ <dependency>
118
+ <groupId>org.ejml</groupId>
119
+ <artifactId>ejml-ddense</artifactId>
120
+ <version>0.39</version>
121
+ </dependency>
122
+
123
+ <dependency>
124
+ <groupId>org.ejml</groupId>
125
+ <artifactId>ejml-simple</artifactId>
126
+ <version>0.39</version>
127
+ </dependency>
128
+
129
+ <dependency>
130
+ <groupId>org.glassfish</groupId>
131
+ <artifactId>javax.json</artifactId>
132
+ <version>1.0.4</version>
133
+ </dependency>
134
+
135
+ <dependency>
136
+ <groupId>org.slf4j</groupId>
137
+ <artifactId>slf4j-api</artifactId>
138
+ <version>1.7.12</version>
139
+ </dependency>
140
+
141
+ <dependency>
142
+ <groupId>com.google.protobuf</groupId>
143
+ <artifactId>protobuf-java</artifactId>
144
+ <version>3.19.6</version>
145
+ </dependency>
146
+
147
+ <dependency>
148
+ <groupId>junit</groupId>
149
+ <artifactId>junit</artifactId>
150
+ <version>4.13.1</version>
151
+ <scope>test</scope>
152
+ </dependency>
153
+
154
+ <dependency>
155
+ <groupId>com.pholser</groupId>
156
+ <artifactId>junit-quickcheck-core</artifactId>
157
+ <version>0.5</version>
158
+ <scope>test</scope>
159
+ </dependency>
160
+
161
+ <dependency>
162
+ <groupId>com.pholser</groupId>
163
+ <artifactId>junit-quickcheck-generators</artifactId>
164
+ <version>0.5</version>
165
+ <scope>test</scope>
166
+ </dependency>
167
+
168
+ <dependency>
169
+ <groupId>javax.activation</groupId>
170
+ <artifactId>javax.activation-api</artifactId>
171
+ <version>1.2.0</version>
172
+ </dependency>
173
+
174
+ <dependency>
175
+ <groupId>javax.xml.bind</groupId>
176
+ <artifactId>jaxb-api</artifactId>
177
+ <version>2.4.0-b180830.0359</version>
178
+ </dependency>
179
+
180
+ <dependency>
181
+ <groupId>com.sun.istack</groupId>
182
+ <artifactId>istack-commons-runtime</artifactId>
183
+ <version>3.0.7</version>
184
+ </dependency>
185
+
186
+ <dependency>
187
+ <groupId>com.sun.xml.bind</groupId>
188
+ <artifactId>jaxb-impl</artifactId>
189
+ <version>2.4.0-b180830.0438</version>
190
+ </dependency>
191
+
192
+ </dependencies>
193
+ <build>
194
+ <sourceDirectory>src</sourceDirectory>
195
+ <testSourceDirectory>test/src</testSourceDirectory>
196
+ <plugins>
197
+ <plugin>
198
+ <groupId>org.codehaus.mojo</groupId>
199
+ <artifactId>build-helper-maven-plugin</artifactId>
200
+ <version>1.7</version>
201
+ <executions>
202
+ <execution>
203
+ <id>attach-models</id>
204
+ <phase>package</phase>
205
+ <goals>
206
+ <goal>attach-artifact</goal>
207
+ </goals>
208
+ <configuration>
209
+ <artifacts>
210
+ <artifact>
211
+ <file>${project.basedir}/stanford-corenlp-4.5.7-models.jar</file>
212
+ <type>jar</type>
213
+ <classifier>models</classifier>
214
+ </artifact>
215
+ </artifacts>
216
+ </configuration>
217
+ </execution>
218
+ </executions>
219
+ </plugin>
220
+ </plugins>
221
+ </build>
222
+ </project>
CoreNLP/stanford-corenlp-4.5.7/protobuf-java-3.19.6.jar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a9a2dff91dcf71f85be71ae971f6164b5a631dcd34bff08f0618535ca44ad02
3
+ size 1664824
CoreNLP/stanford-corenlp-4.5.7/sample-project-pom.xml ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
+ <modelVersion>4.0.0</modelVersion>
4
+ <groupId>edu.stanford.nlp</groupId>
5
+ <artifactId>stanford-corenlp-test-app</artifactId>
6
+ <packaging>jar</packaging>
7
+ <version>1.0-SNAPSHOT</version>
8
+ <name>stanford-corenlp-test-app</name>
9
+ <url>http://maven.apache.org</url>
10
+ <dependencies>
11
+ <dependency>
12
+ <groupId>junit</groupId>
13
+ <artifactId>junit</artifactId>
14
+ <version>4.13.1</version>
15
+ <scope>test</scope>
16
+ </dependency>
17
+ <dependency>
18
+ <groupId>edu.stanford.nlp</groupId>
19
+ <artifactId>stanford-corenlp</artifactId>
20
+ <version>4.5.7</version>
21
+ </dependency>
22
+ <dependency>
23
+ <groupId>edu.stanford.nlp</groupId>
24
+ <artifactId>stanford-corenlp</artifactId>
25
+ <version>4.5.7</version>
26
+ <classifier>javadoc</classifier>
27
+ </dependency>
28
+ <dependency>
29
+ <groupId>edu.stanford.nlp</groupId>
30
+ <artifactId>stanford-corenlp</artifactId>
31
+ <version>4.5.7</version>
32
+ <classifier>sources</classifier>
33
+ </dependency>
34
+ <dependency>
35
+ <groupId>edu.stanford.nlp</groupId>
36
+ <artifactId>stanford-corenlp</artifactId>
37
+ <version>4.5.7</version>
38
+ <classifier>models</classifier>
39
+ </dependency>
40
+ <dependency>
41
+ <groupId>edu.stanford.nlp</groupId>
42
+ <artifactId>stanford-corenlp</artifactId>
43
+ <version>4.5.7</version>
44
+ <classifier>models-arabic</classifier>
45
+ </dependency>
46
+ <dependency>
47
+ <groupId>edu.stanford.nlp</groupId>
48
+ <artifactId>stanford-corenlp</artifactId>
49
+ <version>4.5.7</version>
50
+ <classifier>models-chinese</classifier>
51
+ </dependency>
52
+ <dependency>
53
+ <groupId>edu.stanford.nlp</groupId>
54
+ <artifactId>stanford-corenlp</artifactId>
55
+ <version>4.5.7</version>
56
+ <classifier>models-english</classifier>
57
+ </dependency>
58
+ <dependency>
59
+ <groupId>edu.stanford.nlp</groupId>
60
+ <artifactId>stanford-corenlp</artifactId>
61
+ <version>4.5.7</version>
62
+ <classifier>models-english-kbp</classifier>
63
+ </dependency>
64
+ <dependency>
65
+ <groupId>edu.stanford.nlp</groupId>
66
+ <artifactId>stanford-corenlp</artifactId>
67
+ <version>4.5.7</version>
68
+ <classifier>models-french</classifier>
69
+ </dependency>
70
+ <dependency>
71
+ <groupId>edu.stanford.nlp</groupId>
72
+ <artifactId>stanford-corenlp</artifactId>
73
+ <version>4.5.7</version>
74
+ <classifier>models-german</classifier>
75
+ </dependency>
76
+ <dependency>
77
+ <groupId>edu.stanford.nlp</groupId>
78
+ <artifactId>stanford-corenlp</artifactId>
79
+ <version>4.5.7</version>
80
+ <classifier>models-spanish</classifier>
81
+ </dependency>
82
+ </dependencies>
83
+ </project>
CoreNLP/stanford-corenlp-4.5.7/slf4j-api.jar ADDED
Binary file (32.1 kB). View file