Commits

David McClosky  committed 2a5df73

Add Apache 2.0 license to several Python scripts

  • Participants
  • Parent commits b72ddcb

Comments (0)

Files changed (3)

File regression_test.py

 #!/usr/bin/env python
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.  You may obtain
+# a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations
+# under the License.
 import os, subprocess, tempfile, datetime, time, hashlib
 
+# Basic usage:
+# To run:
+# shell> python regression_test.py
+# See also:
+# shell> python regression_test.py --help
+
 # TODO actual evaluation with sparseval?
 #      verify trained parser model
 #      extended test (download pre-segmented Gutenberg?)

File second-stage/programs/features/combine-extracted-spfeatures

 #!/usr/bin/env python
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.  You may obtain
+# a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations
+# under the License.
 """Concatenate many "extracted features" files into one file.  This is
 actually very simple -- the only item of notice is that first line must be
 the total number of sentences, so we read the number of sentences in each

File second-stage/programs/features/combine-feature-counts

 #!/usr/bin/env python
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License.  You may obtain
+# a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations
+# under the License.
 """Combine multiple feature count files into one, sorting, pruning
 and renumbering the features.  This can be used on the output of
 extract-spfeatures-counts.  It should not need to be used on the output