Skip to content

Commit 239dd56

Browse files
sebschuStanford NLP
authored and
Stanford NLP
committed
Implement a dependency tree based source preorderer.
1 parent 931c483 commit 239dd56

File tree

1,284 files changed

+127752
-415492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,284 files changed

+127752
-415492
lines changed

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In order for us to continue to be able to dual-license Stanford CoreNLP, we need
1010
Therefore, we can accept contributions on any of the following terms:
1111
* If your contribution is a bug fix of 6 lines or less of new code, we will accept it on the basis that both you and us regard the contribution as de minimis, and not requiring further hassle.
1212
* You can declare that the contribution is in the public domain (in your commit message or pull request).
13-
* You can make your contribution available under a non-restrictive open source license, such as the Revised (or 3-clause) BSD license, with appropriate licensing information included with the submitted code.
14-
* You can sign and return to us a contributor license agreement (CLA), explicitly licensing us to be able to use the code. You can find these agreements at http://nlp.stanford.edu/software/CLA/ . You can send them to us or contact us at: java-nlp-support@mailman.stanford.edu .
13+
* You can make your contribution available under a non-restrictive open source licensing, such as the Revised (or 3-clause) BSD license, with appropriate licensing information included with the submitted code.
14+
* You can sign and return to us a contributor license agreement, explicitly licensing us to be able to use the code. Contact us at: java-nlp-support@mailman.stanford.edu .
1515

16-
You should do development against our master branch. The project's source code is in utf-8 character encoding. You should make sure that all unit tests still pass. (In general, you will not be able to run our integration tests, since they rely on resources in our filesystem.)
16+
You should do development against our master branch. You should make sure that all unit tests still pass. (In general, you will not be able to run our integration tests, since they rely on resources in our filesystem.)

JavaNLP-core.eml

+10-30
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<component inheritJdk="true">
2+
<component LANGUAGE_LEVEL="JDK_1_6" jdk="1.6" jdk_type="JavaSDK">
33
<exclude-output/>
4-
<contentEntry url="file://$MODULE_DIR$">
5-
<testFolder url="file://$MODULE_DIR$/test/src"/>
6-
</contentEntry>
4+
<contentEntry url="file://$MODULE_DIR$"/>
75
<lib name="ant-contrib-1.0b3.jar" scope="COMPILE">
86
<srcroot url="jar://$MODULE_DIR$/libsrc/ant-contrib-1.0b3-src.zip!/"/>
97
<relative-module-src project-related="jar://$PROJECT_DIR$/projects/core/libsrc/ant-contrib-1.0b3-src.zip!/"/>
@@ -50,17 +48,19 @@
5048
<relative-module-cls project-related="jar://$PROJECT_DIR$/projects/core/lib/junit.jar!/"/>
5149
</lib>
5250
<lib name="javax.servlet.jar" scope="COMPILE">
53-
<srcroot url="jar://$MODULE_DIR$/libsrc/tomcat/apache-tomcat-7.0.12-src.zip!/"/>
54-
<relative-module-src project-related="jar://$PROJECT_DIR$/projects/core/libsrc/tomcat/apache-tomcat-7.0.12-src.zip!/"/>
51+
<srcroot url="jar://$MODULE_DIR$/libsrc/tomcat/apache-tomcat-7.0.12-src.zip!/apache-tomcat-7.0.12-src/java"/>
52+
<srcroot url="jar://$MODULE_DIR$/libsrc/tomcat/apache-tomcat-7.0.12-src.zip!/apache-tomcat-7.0.12-src/test"/>
53+
<relative-module-src project-related="jar://$PROJECT_DIR$/projects/core/libsrc/tomcat/apache-tomcat-7.0.12-src.zip!/apache-tomcat-7.0.12-src/java"/>
54+
<relative-module-src project-related="jar://$PROJECT_DIR$/projects/core/libsrc/tomcat/apache-tomcat-7.0.12-src.zip!/apache-tomcat-7.0.12-src/test"/>
5555
<relative-module-cls project-related="jar://$PROJECT_DIR$/projects/core/lib/javax.servlet.jar!/"/>
5656
</lib>
5757
<lib name="AppleJavaExtensions.jar" scope="COMPILE">
5858
<relative-module-cls project-related="jar://$PROJECT_DIR$/projects/core/lib/AppleJavaExtensions.jar!/"/>
5959
</lib>
60-
<lib name="jflex-1.5.1.jar" scope="COMPILE">
61-
<srcroot url="jar://$MODULE_DIR$/libsrc/jflex-1.5.1-src.zip!/"/>
62-
<relative-module-src project-related="jar://$PROJECT_DIR$/projects/core/libsrc/jflex-1.5.1-src.zip!/"/>
63-
<relative-module-cls project-related="jar://$PROJECT_DIR$/projects/core/lib/jflex-1.5.1.jar!/"/>
60+
<lib name="JFlex.jar" scope="COMPILE">
61+
<srcroot url="jar://$MODULE_DIR$/libsrc/jflex-1.4.3-src.zip!/"/>
62+
<relative-module-src project-related="jar://$PROJECT_DIR$/projects/core/libsrc/jflex-1.4.3-src.zip!/"/>
63+
<relative-module-cls project-related="jar://$PROJECT_DIR$/projects/core/lib/JFlex.jar!/"/>
6464
</lib>
6565
<lib name="xom-1.2.10.jar" scope="COMPILE">
6666
<srcroot url="file://libsrc/xom-1.2.10-src.zip"/>
@@ -99,24 +99,4 @@
9999
<lib name="javacc.jar" scope="COMPILE">
100100
<relative-module-cls project-related="jar://$PROJECT_DIR$/projects/core/lib/javacc.jar!/"/>
101101
</lib>
102-
<lib name="javax.json.jar" scope="COMPILE">
103-
<srcroot url="jar://$MODULE_DIR$/libsrc/javax.json-api-1.0-sources.jar!/"/>
104-
<relative-module-src project-related="jar://$PROJECT_DIR$/projects/core/libsrc/javax.json-api-1.0-sources.jar!/"/>
105-
<relative-module-cls project-related="jar://$PROJECT_DIR$/projects/core/lib/javax.json.jar!/"/>
106-
</lib>
107-
<lib name="$MODULE_DIR$/lib/lucene-analyzers-common-4.2.1.jar" scope="COMPILE">
108-
<relative-module-cls project-related="jar://$PROJECT_DIR$/projects/core/lib/lucene-analyzers-common-4.2.1.jar!/"/>
109-
</lib>
110-
<lib name="$MODULE_DIR$/lib/lucene-core-4.2.1.jar" scope="COMPILE">
111-
<relative-module-cls project-related="jar://$PROJECT_DIR$/projects/core/lib/lucene-core-4.2.1.jar!/"/>
112-
</lib>
113-
<lib name="$MODULE_DIR$/lib/lucene-demo-4.2.1.jar" scope="COMPILE">
114-
<relative-module-cls project-related="jar://$PROJECT_DIR$/projects/core/lib/lucene-demo-4.2.1.jar!/"/>
115-
</lib>
116-
<lib name="$MODULE_DIR$/lib/lucene-queries-4.2.1.jar" scope="COMPILE">
117-
<relative-module-cls project-related="jar://$PROJECT_DIR$/projects/core/lib/lucene-queries-4.2.1.jar!/"/>
118-
</lib>
119-
<lib name="$MODULE_DIR$/lib/lucene-queryparser-4.2.1.jar" scope="COMPILE">
120-
<relative-module-cls project-related="jar://$PROJECT_DIR$/projects/core/lib/lucene-queryparser-4.2.1.jar!/"/>
121-
</lib>
122102
</component>

JavaNLP-core.iml

+2-313
Original file line numberDiff line numberDiff line change
@@ -1,314 +1,3 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<module classpath="eclipse" classpath-dir="$MODULE_DIR$" type="JAVA_MODULE" version="4">
3-
<component name="EclipseModuleManager">
4-
<libelement value="jar://$MODULE_DIR$/lib/ant-contrib-1.0b3.jar!/" />
5-
<libelement value="jar://$MODULE_DIR$/lib/tomcat/el-api.jar!/" />
6-
<libelement value="jar://$MODULE_DIR$/lib/tomcat/jasper.jar!/" />
7-
<libelement value="jar://$MODULE_DIR$/lib/tomcat/tomcat-juli.jar!/" />
8-
<libelement value="jar://$MODULE_DIR$/lib/tomcat/jasper-el.jar!/" />
9-
<libelement value="jar://$MODULE_DIR$/lib/tomcat/jsp-api.jar!/" />
10-
<libelement value="jar://$MODULE_DIR$/lib/tomcat/tomcat-api.jar!/" />
11-
<libelement value="jar://$MODULE_DIR$/lib/commons-logging.jar!/" />
12-
<libelement value="jar://$MODULE_DIR$/lib/junit.jar!/" />
13-
<libelement value="jar://$MODULE_DIR$/lib/javax.servlet.jar!/" />
14-
<libelement value="jar://$MODULE_DIR$/lib/AppleJavaExtensions.jar!/" />
15-
<libelement value="jar://$MODULE_DIR$/lib/jflex-1.5.1.jar!/" />
16-
<libelement value="jar://$MODULE_DIR$/lib/xom-1.2.10.jar!/" />
17-
<libelement value="jar://$MODULE_DIR$/lib/joda-time.jar!/" />
18-
<libelement value="jar://$MODULE_DIR$/lib/jollyday-0.4.7.jar!/" />
19-
<libelement value="jar://$MODULE_DIR$/lib/log4j-1.2.16.jar!/" />
20-
<libelement value="jar://$MODULE_DIR$/lib/ejml-0.23.jar!/" />
21-
<libelement value="jar://$MODULE_DIR$/lib/commons-lang3-3.1.jar!/" />
22-
<libelement value="jar://$MODULE_DIR$/lib/protobuf.jar!/" />
23-
<libelement value="jar://$MODULE_DIR$/lib/javacc.jar!/" />
24-
<libelement value="jar://$MODULE_DIR$/lib/javax.json.jar!/" />
25-
<src_description expected_position="0">
26-
<src_folder value="file://$MODULE_DIR$/itest/src" expected_position="0" />
27-
<src_folder value="file://$MODULE_DIR$/src" expected_position="1" />
28-
<src_folder value="file://$MODULE_DIR$/test/src" expected_position="2" />
29-
</src_description>
30-
</component>
31-
<component name="NewModuleRootManager" inherit-compiler-output="false">
32-
<output url="file://$MODULE_DIR$/classes" />
33-
<exclude-output />
34-
<content url="file://$MODULE_DIR$">
35-
<sourceFolder url="file://$MODULE_DIR$/itest/src" isTestSource="false" />
36-
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
37-
<sourceFolder url="file://$MODULE_DIR$/test/src" isTestSource="true" />
38-
</content>
39-
<orderEntry type="sourceFolder" forTests="false" />
40-
<orderEntry type="inheritedJdk" />
41-
<orderEntry type="module-library" exported="">
42-
<library name="ant-contrib-1.0b3.jar">
43-
<CLASSES>
44-
<root url="jar://$MODULE_DIR$/lib/ant-contrib-1.0b3.jar!/" />
45-
</CLASSES>
46-
<JAVADOC />
47-
<SOURCES>
48-
<root url="jar://$MODULE_DIR$/libsrc/ant-contrib-1.0b3-src.zip!/" />
49-
</SOURCES>
50-
</library>
51-
</orderEntry>
52-
<orderEntry type="module-library" exported="">
53-
<library name="el-api.jar">
54-
<CLASSES>
55-
<root url="jar://$MODULE_DIR$/lib/tomcat/el-api.jar!/" />
56-
</CLASSES>
57-
<JAVADOC />
58-
<SOURCES>
59-
<root url="jar://$MODULE_DIR$/libsrc/tomcat/apache-tomcat-7.0.12-src.zip!/" />
60-
</SOURCES>
61-
</library>
62-
</orderEntry>
63-
<orderEntry type="module-library" exported="">
64-
<library name="jasper.jar">
65-
<CLASSES>
66-
<root url="jar://$MODULE_DIR$/lib/tomcat/jasper.jar!/" />
67-
</CLASSES>
68-
<JAVADOC />
69-
<SOURCES>
70-
<root url="jar://$MODULE_DIR$/libsrc/tomcat/apache-tomcat-7.0.12-src.zip!/" />
71-
</SOURCES>
72-
</library>
73-
</orderEntry>
74-
<orderEntry type="module-library" exported="">
75-
<library name="tomcat-juli.jar">
76-
<CLASSES>
77-
<root url="jar://$MODULE_DIR$/lib/tomcat/tomcat-juli.jar!/" />
78-
</CLASSES>
79-
<JAVADOC />
80-
<SOURCES>
81-
<root url="jar://$MODULE_DIR$/libsrc/tomcat/apache-tomcat-7.0.12-src.zip!/" />
82-
</SOURCES>
83-
</library>
84-
</orderEntry>
85-
<orderEntry type="module-library" exported="">
86-
<library name="jasper-el.jar">
87-
<CLASSES>
88-
<root url="jar://$MODULE_DIR$/lib/tomcat/jasper-el.jar!/" />
89-
</CLASSES>
90-
<JAVADOC />
91-
<SOURCES>
92-
<root url="jar://$MODULE_DIR$/libsrc/tomcat/apache-tomcat-7.0.12-src.zip!/" />
93-
</SOURCES>
94-
</library>
95-
</orderEntry>
96-
<orderEntry type="module-library" exported="">
97-
<library name="jsp-api.jar">
98-
<CLASSES>
99-
<root url="jar://$MODULE_DIR$/lib/tomcat/jsp-api.jar!/" />
100-
</CLASSES>
101-
<JAVADOC />
102-
<SOURCES>
103-
<root url="jar://$MODULE_DIR$/libsrc/tomcat/apache-tomcat-7.0.12-src.zip!/" />
104-
</SOURCES>
105-
</library>
106-
</orderEntry>
107-
<orderEntry type="module-library" exported="">
108-
<library name="tomcat-api.jar">
109-
<CLASSES>
110-
<root url="jar://$MODULE_DIR$/lib/tomcat/tomcat-api.jar!/" />
111-
</CLASSES>
112-
<JAVADOC />
113-
<SOURCES>
114-
<root url="jar://$MODULE_DIR$/libsrc/tomcat/apache-tomcat-7.0.12-src.zip!/" />
115-
</SOURCES>
116-
</library>
117-
</orderEntry>
118-
<orderEntry type="module-library" exported="">
119-
<library name="commons-logging.jar">
120-
<CLASSES>
121-
<root url="jar://$MODULE_DIR$/lib/commons-logging.jar!/" />
122-
</CLASSES>
123-
<JAVADOC />
124-
<SOURCES>
125-
<root url="jar://$MODULE_DIR$/libsrc/commons-logging-1.1.1-sources.jar!/" />
126-
</SOURCES>
127-
</library>
128-
</orderEntry>
129-
<orderEntry type="module-library" exported="">
130-
<library name="junit.jar">
131-
<CLASSES>
132-
<root url="jar://$MODULE_DIR$/lib/junit.jar!/" />
133-
</CLASSES>
134-
<JAVADOC />
135-
<SOURCES>
136-
<root url="jar://$MODULE_DIR$/libsrc/junit-4.5-src.jar!/" />
137-
</SOURCES>
138-
</library>
139-
</orderEntry>
140-
<orderEntry type="module-library" exported="">
141-
<library name="javax.servlet.jar">
142-
<CLASSES>
143-
<root url="jar://$MODULE_DIR$/lib/javax.servlet.jar!/" />
144-
</CLASSES>
145-
<JAVADOC />
146-
<SOURCES>
147-
<root url="jar://$MODULE_DIR$/libsrc/tomcat/apache-tomcat-7.0.12-src.zip!/" />
148-
</SOURCES>
149-
</library>
150-
</orderEntry>
151-
<orderEntry type="module-library" exported="">
152-
<library name="AppleJavaExtensions.jar">
153-
<CLASSES>
154-
<root url="jar://$MODULE_DIR$/lib/AppleJavaExtensions.jar!/" />
155-
</CLASSES>
156-
<JAVADOC />
157-
<SOURCES />
158-
</library>
159-
</orderEntry>
160-
<orderEntry type="module-library" exported="">
161-
<library name="jflex-1.5.1.jar">
162-
<CLASSES>
163-
<root url="jar://$MODULE_DIR$/lib/jflex-1.5.1.jar!/" />
164-
</CLASSES>
165-
<JAVADOC />
166-
<SOURCES>
167-
<root url="jar://$MODULE_DIR$/libsrc/jflex-1.5.1-src.zip!/" />
168-
</SOURCES>
169-
</library>
170-
</orderEntry>
171-
<orderEntry type="module-library" exported="">
172-
<library name="xom-1.2.10.jar">
173-
<CLASSES>
174-
<root url="jar://$MODULE_DIR$/lib/xom-1.2.10.jar!/" />
175-
</CLASSES>
176-
<JAVADOC />
177-
<SOURCES>
178-
<root url="file://libsrc/xom-1.2.10-src.zip" />
179-
</SOURCES>
180-
</library>
181-
</orderEntry>
182-
<orderEntry type="module-library" exported="">
183-
<library name="joda-time.jar">
184-
<CLASSES>
185-
<root url="jar://$MODULE_DIR$/lib/joda-time.jar!/" />
186-
</CLASSES>
187-
<JAVADOC />
188-
<SOURCES>
189-
<root url="jar://$MODULE_DIR$/libsrc/joda-time-2.1-sources.jar!/" />
190-
</SOURCES>
191-
</library>
192-
</orderEntry>
193-
<orderEntry type="module-library" exported="">
194-
<library name="jollyday-0.4.7.jar">
195-
<CLASSES>
196-
<root url="jar://$MODULE_DIR$/lib/jollyday-0.4.7.jar!/" />
197-
</CLASSES>
198-
<JAVADOC />
199-
<SOURCES>
200-
<root url="jar://$MODULE_DIR$/libsrc/jollyday-0.4.7-sources.jar!/" />
201-
</SOURCES>
202-
</library>
203-
</orderEntry>
204-
<orderEntry type="module-library" exported="">
205-
<library name="log4j-1.2.16.jar">
206-
<CLASSES>
207-
<root url="jar://$MODULE_DIR$/lib/log4j-1.2.16.jar!/" />
208-
</CLASSES>
209-
<JAVADOC />
210-
<SOURCES>
211-
<root url="jar://$MODULE_DIR$/libsrc/log4j-1.2.16-src.zip!/" />
212-
</SOURCES>
213-
</library>
214-
</orderEntry>
215-
<orderEntry type="module-library" exported="">
216-
<library name="ejml-0.23.jar">
217-
<CLASSES>
218-
<root url="jar://$MODULE_DIR$/lib/ejml-0.23.jar!/" />
219-
</CLASSES>
220-
<JAVADOC />
221-
<SOURCES>
222-
<root url="jar://$MODULE_DIR$/libsrc/ejml-0.23-src.zip!/" />
223-
</SOURCES>
224-
</library>
225-
</orderEntry>
226-
<orderEntry type="module-library" exported="">
227-
<library name="commons-lang3-3.1.jar">
228-
<CLASSES>
229-
<root url="jar://$MODULE_DIR$/lib/commons-lang3-3.1.jar!/" />
230-
</CLASSES>
231-
<JAVADOC />
232-
<SOURCES>
233-
<root url="jar://$MODULE_DIR$/libsrc/commons-lang3-3.1-sources.jar!/" />
234-
</SOURCES>
235-
</library>
236-
</orderEntry>
237-
<orderEntry type="module-library" exported="">
238-
<library name="protobuf.jar">
239-
<CLASSES>
240-
<root url="jar://$MODULE_DIR$/lib/protobuf.jar!/" />
241-
</CLASSES>
242-
<JAVADOC />
243-
<SOURCES>
244-
<root url="jar://$MODULE_DIR$/libsrc/protobuf-src.jar!/" />
245-
</SOURCES>
246-
</library>
247-
</orderEntry>
248-
<orderEntry type="module-library" exported="">
249-
<library name="javacc.jar">
250-
<CLASSES>
251-
<root url="jar://$MODULE_DIR$/lib/javacc.jar!/" />
252-
</CLASSES>
253-
<JAVADOC />
254-
<SOURCES />
255-
</library>
256-
</orderEntry>
257-
<orderEntry type="module-library" exported="">
258-
<library name="javax.json.jar">
259-
<CLASSES>
260-
<root url="jar://$MODULE_DIR$/lib/javax.json.jar!/" />
261-
</CLASSES>
262-
<JAVADOC />
263-
<SOURCES>
264-
<root url="jar://$MODULE_DIR$/libsrc/javax.json-api-1.0-sources.jar!/" />
265-
</SOURCES>
266-
</library>
267-
</orderEntry>
268-
<orderEntry type="module-library" exported="">
269-
<library>
270-
<CLASSES>
271-
<root url="jar://$MODULE_DIR$/lib/lucene-analyzers-common-4.2.1.jar!/" />
272-
</CLASSES>
273-
<JAVADOC />
274-
<SOURCES />
275-
</library>
276-
</orderEntry>
277-
<orderEntry type="module-library" exported="">
278-
<library>
279-
<CLASSES>
280-
<root url="jar://$MODULE_DIR$/lib/lucene-core-4.2.1.jar!/" />
281-
</CLASSES>
282-
<JAVADOC />
283-
<SOURCES />
284-
</library>
285-
</orderEntry>
286-
<orderEntry type="module-library" exported="">
287-
<library>
288-
<CLASSES>
289-
<root url="jar://$MODULE_DIR$/lib/lucene-demo-4.2.1.jar!/" />
290-
</CLASSES>
291-
<JAVADOC />
292-
<SOURCES />
293-
</library>
294-
</orderEntry>
295-
<orderEntry type="module-library" exported="">
296-
<library>
297-
<CLASSES>
298-
<root url="jar://$MODULE_DIR$/lib/lucene-queries-4.2.1.jar!/" />
299-
</CLASSES>
300-
<JAVADOC />
301-
<SOURCES />
302-
</library>
303-
</orderEntry>
304-
<orderEntry type="module-library" exported="">
305-
<library>
306-
<CLASSES>
307-
<root url="jar://$MODULE_DIR$/lib/lucene-queryparser-4.2.1.jar!/" />
308-
</CLASSES>
309-
<JAVADOC />
310-
<SOURCES />
311-
</library>
312-
</orderEntry>
313-
</component>
314-
</module>
2+
<module classpath="eclipse" classpath-dir="$MODULE_DIR$" type="JAVA_MODULE" version="4" />
3+

0 commit comments

Comments
 (0)