From 282f8d109ac96de26ebb7a8134abba51ec934bca Mon Sep 17 00:00:00 2001 From: smarthi Date: Mon, 23 Jan 2017 21:47:54 -0500 Subject: [PATCH] OPENNLP-951: Add a central RAT-exclude file --- README.md | 2 +- opennlp-morfologik-addon/pom.xml | 21 ------------ opennlp-tools/pom.xml | 58 ++------------------------------ pom.xml | 8 +++-- rat-excludes | 57 +++++++++++++++++++++++++++++++ 5 files changed, 66 insertions(+), 80 deletions(-) create mode 100644 rat-excludes diff --git a/README.md b/README.md index b1e1e1ac7..faff141d5 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Welcome to Apache OpenNLP! [![GitHub license](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://raw.githubusercontent.com/apache/opennlp/master/LICENSE) [![GitHub forks](https://img.shields.io/github/forks/apache/opennlp.svg)](https://github.com/apache/opennlp/network) [![GitHub stars](https://img.shields.io/github/stars/apache/opennlp.svg)](https://github.com/apache/opennlp/stargazers) -[![Twitter Follow](https://img.shields.io/twitter/follow/opennlp.svg?style=social&label=Follow)](https://twitter.com/ApacheOpenNLP) +[![Twitter Follow](https://img.shields.io/twitter/follow/ApacheOpennlp.svg?style=social)](https://twitter.com/ApacheOpenNLP) The Apache OpenNLP library is a machine learning based toolkit for the processing of natural language text. It supports the most common NLP tasks, such as tokenization, sentence segmentation, diff --git a/opennlp-morfologik-addon/pom.xml b/opennlp-morfologik-addon/pom.xml index b10498b6d..d62a70a57 100644 --- a/opennlp-morfologik-addon/pom.xml +++ b/opennlp-morfologik-addon/pom.xml @@ -62,27 +62,6 @@ junit test - - - - - org.apache.rat - apache-rat-plugin - - - default-cli - - - - src/test/resources/*.txt - src/test/resources/*.info - - - - - - - diff --git a/opennlp-tools/pom.xml b/opennlp-tools/pom.xml index af54f431d..9441ebbfd 100644 --- a/opennlp-tools/pom.xml +++ b/opennlp-tools/pom.xml @@ -100,12 +100,12 @@ maven-javadoc-plugin + + opennlp.tools.cmdline + create-javadoc-jar - - opennlp.tools.cmdline - @@ -126,58 +126,6 @@ - - - org.apache.rat - apache-rat-plugin - - - default-cli - - - - src/test/resources/opennlp/tools/chunker/*.txt - src/test/resources/opennlp/tools/formats/*.sample - src/test/resources/opennlp/tools/namefind/*.txt - src/test/resources/opennlp/tools/namefind/*.train - src/test/resources/opennlp/tools/parser/en_head_rules - src/test/resources/opennlp/tools/parser/en_head_rules - src/test/resources/opennlp/tools/parser/parser.train - src/test/resources/opennlp/tools/parser/test.parse - src/test/resources/opennlp/tools/postag/AnnotatedSentences.txt - src/test/resources/opennlp/tools/sentdetect/Sentences.txt - src/test/resources/opennlp/tools/tokenize/token.train - src/main/java/opennlp/tools/ml/maxent/AllEnglishAffixes.txt - src/test/resources/data/opennlp/maxent/io/rvfes-bug-data-broken.txt - src/test/resources/data/opennlp/maxent/io/rvfes-bug-data-ok.txt - src/test/resources/data/opennlp/maxent/real-valued-weights-training-data.txt - src/test/resources/data/opennlp/maxent/repeat-weighting-training-data.txt - src/test/resources/data/ppa/bitstrings - src/test/resources/data/ppa/devset - src/test/resources/data/ppa/test - src/test/resources/data/ppa/training - src/test/resources/data/ppa/NOTICE - src/test/resources/opennlp/tools/doccat/DoccatSample.txt - src/test/resources/opennlp/tools/formats/brat/voa-with-entities.ann - src/test/resources/opennlp/tools/formats/brat/voa-with-entities.txt - src/test/resources/opennlp/tools/formats/brat/voa-with-relations.ann - src/test/resources/opennlp/tools/formats/brat/voa-with-relations.txt - - src/test/resources/opennlp/tools/languagemodel/sentences.txt - src/test/resources/opennlp/tools/lemmatizer/trial.old.tsv - src/test/resources/opennlp/tools/lemmatizer/output.txt - - - lang/en/parser/en-head_rules - lang/es/parser/es-head-rules - - - src/main/java/opennlp/tools/stemmer/snowball/*.java - - - - - diff --git a/pom.xml b/pom.xml index 24fb765b3..5ea3ae166 100644 --- a/pom.xml +++ b/pom.xml @@ -352,12 +352,14 @@ org.apache.rat apache-rat-plugin + + + rat-excludes + + default-cli - - 0 - diff --git a/rat-excludes b/rat-excludes new file mode 100644 index 000000000..33a787b59 --- /dev/null +++ b/rat-excludes @@ -0,0 +1,57 @@ + + +src/test/resources/opennlp/tools/*/*.txt +src/test/resources/opennlp/tools/*/*.sample +src/test/resources/opennlp/tools/*/*.txt +src/test/resources/opennlp/tools/*/*.train +src/test/resources/opennlp/tools/parser/en_head_rules +src/test/resources/opennlp/tools/parser/en_head_rules +src/test/resources/opennlp/tools/parser/parser.train +src/test/resources/opennlp/tools/parser/test.parse +src/test/resources/opennlp/tools/postag/AnnotatedSentences.txt +src/test/resources/opennlp/tools/sentdetect/Sentences.txt +src/test/resources/opennlp/tools/tokenize/token.train +src/main/java/opennlp/tools/ml/maxent/AllEnglishAffixes.txt +src/test/resources/data/opennlp/maxent/io/rvfes-bug-data-broken.txt +src/test/resources/data/opennlp/maxent/io/rvfes-bug-data-ok.txt +src/test/resources/data/opennlp/maxent/real-valued-weights-training-data.txt +src/test/resources/data/opennlp/maxent/repeat-weighting-training-data.txt +src/test/resources/data/ppa/bitstrings +src/test/resources/data/ppa/devset +src/test/resources/data/ppa/test +src/test/resources/data/ppa/training +src/test/resources/data/ppa/NOTICE +src/test/resources/opennlp/tools/doccat/DoccatSample.txt +src/test/resources/opennlp/tools/formats/brat/voa-with-entities.ann +src/test/resources/opennlp/tools/formats/brat/voa-with-entities.txt +src/test/resources/opennlp/tools/formats/brat/voa-with-relations.ann +src/test/resources/opennlp/tools/formats/brat/voa-with-relations.txt +src/test/resources/opennlp/tools/languagemodel/sentences.txt +src/test/resources/opennlp/tools/lemmatizer/trial.old.tsv +src/test/resources/opennlp/tools/lemmatizer/output.txt + + +lang/en/parser/en-head_rules +lang/es/parser/es-head-rules +src/test/resources/*.txt +src/test/resources/*.info + + +src/main/java/opennlp/tools/stemmer/snowball/*.java