summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordmg <dmg@uvic.ca>2011-02-03 16:01:07 +0900
committerdmg <dmg@uvic.ca>2011-02-03 16:01:07 +0900
commite78b5422fb36628a196ba1b0e62de8957817a6ca (patch)
treef3cd8926b6d1fdef43ddec170388f79e2eecb722
parent0028f6af59306bd72003dd8029419aacd73195c7 (diff)
downloadninka-e78b5422fb36628a196ba1b0e62de8957817a6ca.tar.gz
Fixed a minor bug and reduced false positives in filter
-rw-r--r--ChangeLog7
-rw-r--r--filter/Makefile2
-rwxr-xr-xfilter/criticalword.dict7
-rwxr-xr-xmatcher/rules.dict2
4 files changed, 14 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index b6eb8fb..1bf12d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-02-03 <dmg@uvic.ca>
+
+ * matcher/rules.dict: Fixed a bug in the sunRPM license. It wasn't detected.
+
+ * filter/criticalword.dict: strenghten some rules to avoid some
+ false positives in good sentences.
+
2011-01-28 <dmg@uvic.ca>
* senttok/senttok.pl (Normalize_GPL): Fixed a bug in the parsing
diff --git a/filter/Makefile b/filter/Makefile
index c285c93..eb1ffea 100644
--- a/filter/Makefile
+++ b/filter/Makefile
@@ -1,4 +1,4 @@
default:
cp ../senttok/licensesentence.dict /tmp/test.sentences
./filter.pl /tmp/test.sentences
- diff /dev/null /tmp/test.badsent
+ diff -w -B /dev/null /tmp/test.badsent
diff --git a/filter/criticalword.dict b/filter/criticalword.dict
index 08e0c3e..a2228bf 100755
--- a/filter/criticalword.dict
+++ b/filter/criticalword.dict
@@ -8,7 +8,7 @@
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
@@ -100,7 +100,9 @@ use this software
restriction
all rights
royalty
-see the
+, see the revision
+, see the included
+see the copyright.txt
for details
all intellectual property rights
sale
@@ -125,3 +127,4 @@ to permit this exception
suitability
computer program whose purpose
disclaims copyright
+software is covered
diff --git a/matcher/rules.dict b/matcher/rules.dict
index d87bbb4..b06a4fe 100755
--- a/matcher/rules.dict
+++ b/matcher/rules.dict
@@ -224,7 +224,7 @@ CPLv0.5:CPLv0.5
#-------
-sunRPC:sunRPCLic1,sunRPCLic2sunRCPnoWarranty,sunRCPnoSupport
+sunRPC:sunRPCLic1,sunRPCLic2,sunRCPnoWarranty,sunRCPnoSupport
#-------------
# This is created by senttok