You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@joshua.apache.org by to...@apache.org on 2016/04/08 11:42:08 UTC
[4/4] incubator-joshua git commit: JOSHUA-248 - applied AL2 header,
first pass
JOSHUA-248 - applied AL2 header, first pass
Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/011668ce
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/011668ce
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/011668ce
Branch: refs/heads/master
Commit: 011668ce8451c92e1f1114b32a608921f10c0fe7
Parents: 28e7c22
Author: Tommaso Teofili <to...@apache.org>
Authored: Fri Apr 8 11:20:20 2016 +0200
Committer: Tommaso Teofili <to...@apache.org>
Committed: Fri Apr 8 11:20:20 2016 +0200
----------------------------------------------------------------------
src/joshua/adagrad/AdaGrad.java | 18 ++++++++++++++++++
src/joshua/adagrad/AdaGradCore.java | 18 ++++++++++++++++++
src/joshua/adagrad/Optimizer.java | 18 ++++++++++++++++++
src/joshua/corpus/AbstractPhrase.java | 18 ++++++++++++++++++
src/joshua/corpus/ContiguousPhrase.java | 18 ++++++++++++++++++
src/joshua/corpus/Corpus.java | 18 ++++++++++++++++++
src/joshua/corpus/Phrase.java | 18 ++++++++++++++++++
src/joshua/corpus/Span.java | 18 ++++++++++++++++++
src/joshua/corpus/TerminalIterator.java | 18 ++++++++++++++++++
src/joshua/corpus/Vocabulary.java | 18 ++++++++++++++++++
src/joshua/corpus/syntax/ArraySyntaxTree.java | 18 ++++++++++++++++++
src/joshua/corpus/syntax/SyntaxTree.java | 18 ++++++++++++++++++
src/joshua/decoder/ArgsParser.java | 18 ++++++++++++++++++
src/joshua/decoder/BLEU.java | 18 ++++++++++++++++++
src/joshua/decoder/Decoder.java | 18 ++++++++++++++++++
src/joshua/decoder/DecoderThread.java | 18 ++++++++++++++++++
src/joshua/decoder/JoshuaConfiguration.java | 18 ++++++++++++++++++
src/joshua/decoder/JoshuaDecoder.java | 18 ++++++++++++++++++
src/joshua/decoder/MetaDataException.java | 18 ++++++++++++++++++
src/joshua/decoder/NbestMinRiskReranker.java | 18 ++++++++++++++++++
src/joshua/decoder/Support.java | 18 ++++++++++++++++++
src/joshua/decoder/Translation.java | 18 ++++++++++++++++++
src/joshua/decoder/Translations.java | 18 ++++++++++++++++++
src/joshua/decoder/chart_parser/Cell.java | 18 ++++++++++++++++++
src/joshua/decoder/chart_parser/Chart.java | 18 ++++++++++++++++++
.../decoder/chart_parser/ComputeNodeResult.java | 18 ++++++++++++++++++
.../decoder/chart_parser/CubePruneState.java | 18 ++++++++++++++++++
src/joshua/decoder/chart_parser/DotChart.java | 18 ++++++++++++++++++
.../chart_parser/ManualConstraintsHandler.java | 18 ++++++++++++++++++
src/joshua/decoder/chart_parser/SourcePath.java | 18 ++++++++++++++++++
.../decoder/chart_parser/StateConstraint.java | 18 ++++++++++++++++++
src/joshua/decoder/chart_parser/SuperNode.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/ArityPhrasePenalty.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/FeatureFunction.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/FeatureVector.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/LabelCombinationFF.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/LabelSubstitutionFF.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/OOVPenalty.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/PhraseModel.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/PhrasePenalty.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/RuleCountBin.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/RuleFF.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/RuleLength.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/RulePropertiesQuerying.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/RuleShape.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/SourceDependentFF.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/SourcePathFF.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/StatefulFF.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/StatelessFF.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/TargetBigram.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/WordPenalty.java | 18 ++++++++++++++++++
.../ff/fragmentlm/ConcatenationIterator.java | 18 ++++++++++++++++++
.../decoder/ff/fragmentlm/FragmentLMFF.java | 18 ++++++++++++++++++
.../decoder/ff/fragmentlm/PennTreebankReader.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/fragmentlm/Tree.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/fragmentlm/Trees.java | 18 ++++++++++++++++++
.../decoder/ff/lm/DefaultNGramLanguageModel.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/lm/KenLM.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/lm/LanguageModelFF.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/lm/NGramLanguageModel.java | 18 ++++++++++++++++++
.../ff/lm/StateMinimizingLanguageModel.java | 18 ++++++++++++++++++
.../ff/lm/berkeley_lm/LMGrammarBerkeley.java | 18 ++++++++++++++++++
.../ff/lm/berkeley_lm/SymbolTableWrapper.java | 18 ++++++++++++++++++
.../decoder/ff/lm/bloomfilter_lm/BloomFilter.java | 18 ++++++++++++++++++
.../bloomfilter_lm/BloomFilterLanguageModel.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/phrase/Distortion.java | 18 ++++++++++++++++++
.../ff/similarity/EdgePhraseSimilarityFF.java | 18 ++++++++++++++++++
.../decoder/ff/state_maintenance/DPState.java | 18 ++++++++++++++++++
.../decoder/ff/state_maintenance/KenLMState.java | 18 ++++++++++++++++++
.../ff/state_maintenance/NgramDPState.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/tm/AbstractGrammar.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/tm/BasicRuleCollection.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/tm/CreateGlueGrammar.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/tm/Grammar.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/tm/GrammarReader.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/tm/PhraseRule.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/tm/Rule.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/tm/RuleCollection.java | 18 ++++++++++++++++++
.../decoder/ff/tm/SentenceFilteredGrammar.java | 18 ++++++++++++++++++
src/joshua/decoder/ff/tm/Trie.java | 18 ++++++++++++++++++
.../ff/tm/UnsortedRuleCollectionException.java | 18 ++++++++++++++++++
.../decoder/ff/tm/format/HieroFormatReader.java | 18 ++++++++++++++++++
.../decoder/ff/tm/format/PhraseFormatReader.java | 18 ++++++++++++++++++
.../decoder/ff/tm/format/SamtFormatReader.java | 18 ++++++++++++++++++
.../ff/tm/hash_based/ExtensionIterator.java | 18 ++++++++++++++++++
.../ff/tm/hash_based/MemoryBasedBatchGrammar.java | 18 ++++++++++++++++++
.../ff/tm/hash_based/MemoryBasedRuleBin.java | 18 ++++++++++++++++++
.../decoder/ff/tm/hash_based/MemoryBasedTrie.java | 18 ++++++++++++++++++
.../decoder/ff/tm/packed/PackedGrammar.java | 18 ++++++++++++++++++
.../ff/tm/packed/SliceAggregatingTrie.java | 18 ++++++++++++++++++
src/joshua/decoder/hypergraph/AllSpansWalker.java | 18 ++++++++++++++++++
.../decoder/hypergraph/DefaultInsideOutside.java | 18 ++++++++++++++++++
src/joshua/decoder/hypergraph/ForestWalker.java | 18 ++++++++++++++++++
.../hypergraph/GrammarBuilderWalkerFunction.java | 18 ++++++++++++++++++
src/joshua/decoder/hypergraph/HGNode.java | 18 ++++++++++++++++++
src/joshua/decoder/hypergraph/HyperEdge.java | 18 ++++++++++++++++++
src/joshua/decoder/hypergraph/HyperGraph.java | 18 ++++++++++++++++++
.../decoder/hypergraph/HyperGraphPruning.java | 18 ++++++++++++++++++
src/joshua/decoder/hypergraph/KBestExtractor.java | 18 ++++++++++++++++++
.../decoder/hypergraph/StringToTreeConverter.java | 18 ++++++++++++++++++
.../decoder/hypergraph/TrivialInsideOutside.java | 18 ++++++++++++++++++
.../decoder/hypergraph/ViterbiExtractor.java | 18 ++++++++++++++++++
src/joshua/decoder/hypergraph/WalkerFunction.java | 18 ++++++++++++++++++
src/joshua/decoder/io/DeNormalize.java | 18 ++++++++++++++++++
src/joshua/decoder/io/JSONMessage.java | 18 ++++++++++++++++++
.../decoder/io/TranslationRequestStream.java | 18 ++++++++++++++++++
src/joshua/decoder/phrase/Candidate.java | 18 ++++++++++++++++++
.../decoder/phrase/CandidateComparator.java | 18 ++++++++++++++++++
src/joshua/decoder/phrase/Coverage.java | 18 ++++++++++++++++++
src/joshua/decoder/phrase/CoverageTest.java | 18 ++++++++++++++++++
src/joshua/decoder/phrase/Future.java | 18 ++++++++++++++++++
src/joshua/decoder/phrase/Header.java | 18 ++++++++++++++++++
src/joshua/decoder/phrase/Hypothesis.java | 18 ++++++++++++++++++
src/joshua/decoder/phrase/Note.java | 18 ++++++++++++++++++
src/joshua/decoder/phrase/PhraseChart.java | 18 ++++++++++++++++++
src/joshua/decoder/phrase/PhraseTable.java | 18 ++++++++++++++++++
src/joshua/decoder/phrase/Stack.java | 18 ++++++++++++++++++
src/joshua/decoder/phrase/Stacks.java | 18 ++++++++++++++++++
src/joshua/decoder/phrase/TargetPhrases.java | 18 ++++++++++++++++++
.../decoder/segment_file/ConstraintRule.java | 18 ++++++++++++++++++
.../decoder/segment_file/ConstraintSpan.java | 18 ++++++++++++++++++
.../decoder/segment_file/ParseTreeInput.java | 18 ++++++++++++++++++
.../decoder/segment_file/ParsedSentence.java | 18 ++++++++++++++++++
src/joshua/decoder/segment_file/Sentence.java | 18 ++++++++++++++++++
src/joshua/decoder/segment_file/Token.java | 18 ++++++++++++++++++
src/joshua/lattice/Arc.java | 18 ++++++++++++++++++
src/joshua/lattice/Lattice.java | 18 ++++++++++++++++++
src/joshua/lattice/Node.java | 18 ++++++++++++++++++
src/joshua/lattice/NodeIdentifierComparator.java | 18 ++++++++++++++++++
src/joshua/metrics/BLEU.java | 18 ++++++++++++++++++
src/joshua/metrics/BLEU_SBP.java | 18 ++++++++++++++++++
src/joshua/metrics/EvaluationMetric.java | 18 ++++++++++++++++++
src/joshua/metrics/GradeLevelBLEU.java | 18 ++++++++++++++++++
src/joshua/metrics/METEOR.java | 18 ++++++++++++++++++
src/joshua/metrics/MinimumChangeBLEU.java | 18 ++++++++++++++++++
src/joshua/metrics/NewMetric.java.template | 18 ++++++++++++++++++
src/joshua/metrics/Precis.java | 18 ++++++++++++++++++
src/joshua/metrics/PrecisMinusSourceBLEU.java | 18 ++++++++++++++++++
src/joshua/metrics/SourceBLEU.java | 18 ++++++++++++++++++
src/joshua/metrics/TER.java | 18 ++++++++++++++++++
src/joshua/metrics/TERMinusBLEU.java | 18 ++++++++++++++++++
src/joshua/metrics/TercomRunner.java | 18 ++++++++++++++++++
src/joshua/metrics/ZeroOneLoss.java | 18 ++++++++++++++++++
src/joshua/mira/MIRA.java | 18 ++++++++++++++++++
src/joshua/mira/MIRACore.java | 18 ++++++++++++++++++
src/joshua/mira/Optimizer.java | 18 ++++++++++++++++++
src/joshua/oracle/OracleExtractionHG.java | 18 ++++++++++++++++++
src/joshua/oracle/OracleExtractor.java | 18 ++++++++++++++++++
src/joshua/oracle/SplitHg.java | 18 ++++++++++++++++++
src/joshua/pro/ClassifierInterface.java | 18 ++++++++++++++++++
src/joshua/pro/ClassifierMegaM.java | 18 ++++++++++++++++++
src/joshua/pro/ClassifierPerceptron.java | 18 ++++++++++++++++++
src/joshua/pro/ClassifierSVM.java | 18 ++++++++++++++++++
src/joshua/pro/Optimizer.java | 18 ++++++++++++++++++
src/joshua/pro/PRO.java | 18 ++++++++++++++++++
src/joshua/pro/PROCore.java | 18 ++++++++++++++++++
src/joshua/server/ServerThread.java | 18 ++++++++++++++++++
src/joshua/server/TcpServer.java | 18 ++++++++++++++++++
src/joshua/subsample/AlignedSubsampler.java | 18 ++++++++++++++++++
src/joshua/subsample/BiCorpusFactory.java | 18 ++++++++++++++++++
src/joshua/subsample/PhraseWriter.java | 18 ++++++++++++++++++
src/joshua/tools/GrammarPacker.java | 18 ++++++++++++++++++
src/joshua/tools/GrammarPackerCli.java | 18 ++++++++++++++++++
src/joshua/tools/LabelPhrases.java | 18 ++++++++++++++++++
src/joshua/tools/TestSetFilter.java | 18 ++++++++++++++++++
src/joshua/ui/Orientation.java | 18 ++++++++++++++++++
src/joshua/ui/StartupWindow.java | 18 ++++++++++++++++++
src/joshua/ui/tree_visualizer/DerivationTree.java | 18 ++++++++++++++++++
.../ui/tree_visualizer/DerivationTreeEdge.java | 18 ++++++++++++++++++
.../DerivationTreeTransformer.java | 18 ++++++++++++++++++
.../ui/tree_visualizer/DerivationViewer.java | 18 ++++++++++++++++++
.../tree_visualizer/DerivationViewerApplet.java | 18 ++++++++++++++++++
src/joshua/ui/tree_visualizer/Node.java | 18 ++++++++++++++++++
.../ui/tree_visualizer/browser/Browser.java | 18 ++++++++++++++++++
.../browser/DerivationTreeFrame.java | 18 ++++++++++++++++++
.../tree_visualizer/browser/TranslationInfo.java | 18 ++++++++++++++++++
src/joshua/ui/tree_visualizer/tree/Tree.java | 18 ++++++++++++++++++
src/joshua/util/Algorithms.java | 18 ++++++++++++++++++
src/joshua/util/Bits.java | 18 ++++++++++++++++++
src/joshua/util/BotMap.java | 18 ++++++++++++++++++
src/joshua/util/Cache.java | 18 ++++++++++++++++++
src/joshua/util/ChartSpan.java | 18 ++++++++++++++++++
src/joshua/util/CommandLineParser.java | 18 ++++++++++++++++++
src/joshua/util/CompareGrammars.java | 18 ++++++++++++++++++
src/joshua/util/Counted.java | 18 ++++++++++++++++++
src/joshua/util/Counts.java | 18 ++++++++++++++++++
src/joshua/util/ExtractTopCand.java | 18 ++++++++++++++++++
src/joshua/util/FileUtility.java | 18 ++++++++++++++++++
src/joshua/util/FormatUtils.java | 18 ++++++++++++++++++
src/joshua/util/IntegerPair.java | 18 ++++++++++++++++++
src/joshua/util/JoshuaEval.java | 18 ++++++++++++++++++
src/joshua/util/ListUtil.java | 18 ++++++++++++++++++
src/joshua/util/Lists.java | 18 ++++++++++++++++++
src/joshua/util/NBestListUtility.java | 18 ++++++++++++++++++
src/joshua/util/Ngram.java | 18 ++++++++++++++++++
src/joshua/util/NullIterator.java | 18 ++++++++++++++++++
src/joshua/util/PackedGrammarServer.java | 18 ++++++++++++++++++
src/joshua/util/Pair.java | 18 ++++++++++++++++++
src/joshua/util/Platform.java | 18 ++++++++++++++++++
src/joshua/util/QuietFormatter.java | 18 ++++++++++++++++++
src/joshua/util/Regex.java | 18 ++++++++++++++++++
src/joshua/util/ReverseOrder.java | 18 ++++++++++++++++++
src/joshua/util/SampledList.java | 18 ++++++++++++++++++
src/joshua/util/SocketUtility.java | 18 ++++++++++++++++++
src/joshua/util/StreamGobbler.java | 18 ++++++++++++++++++
src/joshua/util/UnicodeCharacterName.java | 18 ++++++++++++++++++
src/joshua/util/encoding/Analyzer.java | 18 ++++++++++++++++++
src/joshua/util/encoding/EightBitQuantizer.java | 18 ++++++++++++++++++
.../util/encoding/EncoderConfiguration.java | 18 ++++++++++++++++++
src/joshua/util/encoding/EncoderFactory.java | 18 ++++++++++++++++++
src/joshua/util/encoding/FeatureTypeAnalyzer.java | 18 ++++++++++++++++++
src/joshua/util/encoding/FloatEncoder.java | 18 ++++++++++++++++++
src/joshua/util/encoding/IntEncoder.java | 18 ++++++++++++++++++
.../util/encoding/PrimitiveFloatEncoder.java | 18 ++++++++++++++++++
src/joshua/util/encoding/PrimitiveIntEncoder.java | 18 ++++++++++++++++++
src/joshua/util/encoding/VariableQuantizer.java | 18 ++++++++++++++++++
src/joshua/util/io/BinaryIn.java | 18 ++++++++++++++++++
src/joshua/util/io/BinaryOut.java | 18 ++++++++++++++++++
src/joshua/util/io/IndexedReader.java | 18 ++++++++++++++++++
src/joshua/util/io/LineReader.java | 18 ++++++++++++++++++
src/joshua/util/io/NullReader.java | 18 ++++++++++++++++++
src/joshua/util/io/ProgressInputStream.java | 18 ++++++++++++++++++
src/joshua/util/io/Reader.java | 18 ++++++++++++++++++
src/joshua/zmert/IntermediateOptimizer.java | 18 ++++++++++++++++++
src/joshua/zmert/MertCore.java | 18 ++++++++++++++++++
src/joshua/zmert/ZMERT.java | 18 ++++++++++++++++++
226 files changed, 4068 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/adagrad/AdaGrad.java
----------------------------------------------------------------------
diff --git a/src/joshua/adagrad/AdaGrad.java b/src/joshua/adagrad/AdaGrad.java
index 206abd3..61e90ad 100755
--- a/src/joshua/adagrad/AdaGrad.java
+++ b/src/joshua/adagrad/AdaGrad.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.adagrad;
import joshua.decoder.JoshuaConfiguration;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/adagrad/AdaGradCore.java
----------------------------------------------------------------------
diff --git a/src/joshua/adagrad/AdaGradCore.java b/src/joshua/adagrad/AdaGradCore.java
index fa16bed..e2958c6 100755
--- a/src/joshua/adagrad/AdaGradCore.java
+++ b/src/joshua/adagrad/AdaGradCore.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.adagrad;
import java.io.BufferedReader;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/adagrad/Optimizer.java
----------------------------------------------------------------------
diff --git a/src/joshua/adagrad/Optimizer.java b/src/joshua/adagrad/Optimizer.java
index 1270e12..496277f 100755
--- a/src/joshua/adagrad/Optimizer.java
+++ b/src/joshua/adagrad/Optimizer.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.adagrad;
import java.util.Collections;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/corpus/AbstractPhrase.java
----------------------------------------------------------------------
diff --git a/src/joshua/corpus/AbstractPhrase.java b/src/joshua/corpus/AbstractPhrase.java
index 4864aea..5f90004 100644
--- a/src/joshua/corpus/AbstractPhrase.java
+++ b/src/joshua/corpus/AbstractPhrase.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.corpus;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/corpus/ContiguousPhrase.java
----------------------------------------------------------------------
diff --git a/src/joshua/corpus/ContiguousPhrase.java b/src/joshua/corpus/ContiguousPhrase.java
index 62be28a..2539577 100644
--- a/src/joshua/corpus/ContiguousPhrase.java
+++ b/src/joshua/corpus/ContiguousPhrase.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.corpus;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/corpus/Corpus.java
----------------------------------------------------------------------
diff --git a/src/joshua/corpus/Corpus.java b/src/joshua/corpus/Corpus.java
index e7193fc..d3a394c 100755
--- a/src/joshua/corpus/Corpus.java
+++ b/src/joshua/corpus/Corpus.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.corpus;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/corpus/Phrase.java
----------------------------------------------------------------------
diff --git a/src/joshua/corpus/Phrase.java b/src/joshua/corpus/Phrase.java
index 6dfcb47..ba46220 100644
--- a/src/joshua/corpus/Phrase.java
+++ b/src/joshua/corpus/Phrase.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.corpus;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/corpus/Span.java
----------------------------------------------------------------------
diff --git a/src/joshua/corpus/Span.java b/src/joshua/corpus/Span.java
index 682dd21..d26d5ea 100644
--- a/src/joshua/corpus/Span.java
+++ b/src/joshua/corpus/Span.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.corpus;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/corpus/TerminalIterator.java
----------------------------------------------------------------------
diff --git a/src/joshua/corpus/TerminalIterator.java b/src/joshua/corpus/TerminalIterator.java
index 2796ac4..29544fb 100644
--- a/src/joshua/corpus/TerminalIterator.java
+++ b/src/joshua/corpus/TerminalIterator.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.corpus;
import java.util.Iterator;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/corpus/Vocabulary.java
----------------------------------------------------------------------
diff --git a/src/joshua/corpus/Vocabulary.java b/src/joshua/corpus/Vocabulary.java
index 5dfe657..e598203 100644
--- a/src/joshua/corpus/Vocabulary.java
+++ b/src/joshua/corpus/Vocabulary.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.corpus;
import static joshua.util.FormatUtils.isNonterminal;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/corpus/syntax/ArraySyntaxTree.java
----------------------------------------------------------------------
diff --git a/src/joshua/corpus/syntax/ArraySyntaxTree.java b/src/joshua/corpus/syntax/ArraySyntaxTree.java
index f3408cd..d2a457a 100644
--- a/src/joshua/corpus/syntax/ArraySyntaxTree.java
+++ b/src/joshua/corpus/syntax/ArraySyntaxTree.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.corpus.syntax;
import java.io.Externalizable;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/corpus/syntax/SyntaxTree.java
----------------------------------------------------------------------
diff --git a/src/joshua/corpus/syntax/SyntaxTree.java b/src/joshua/corpus/syntax/SyntaxTree.java
index d9c49bc..bd31898 100644
--- a/src/joshua/corpus/syntax/SyntaxTree.java
+++ b/src/joshua/corpus/syntax/SyntaxTree.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.corpus.syntax;
import java.util.Collection;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ArgsParser.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ArgsParser.java b/src/joshua/decoder/ArgsParser.java
index 231f5a1..731bca1 100644
--- a/src/joshua/decoder/ArgsParser.java
+++ b/src/joshua/decoder/ArgsParser.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder;
import java.io.IOException;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/BLEU.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/BLEU.java b/src/joshua/decoder/BLEU.java
index 7e43765..129b792 100644
--- a/src/joshua/decoder/BLEU.java
+++ b/src/joshua/decoder/BLEU.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/Decoder.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/Decoder.java b/src/joshua/decoder/Decoder.java
index 49b45ea..739ee41 100644
--- a/src/joshua/decoder/Decoder.java
+++ b/src/joshua/decoder/Decoder.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder;
import static joshua.decoder.ff.FeatureVector.DENSE_FEATURE_NAMES;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/DecoderThread.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/DecoderThread.java b/src/joshua/decoder/DecoderThread.java
index bfe4891..6bc507f 100644
--- a/src/joshua/decoder/DecoderThread.java
+++ b/src/joshua/decoder/DecoderThread.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder;
import java.io.IOException;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/JoshuaConfiguration.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/JoshuaConfiguration.java b/src/joshua/decoder/JoshuaConfiguration.java
index b7be145..c61720c 100644
--- a/src/joshua/decoder/JoshuaConfiguration.java
+++ b/src/joshua/decoder/JoshuaConfiguration.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder;
import static joshua.util.FormatUtils.cleanNonTerminal;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/JoshuaDecoder.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/JoshuaDecoder.java b/src/joshua/decoder/JoshuaDecoder.java
index 3ef189c..841f517 100644
--- a/src/joshua/decoder/JoshuaDecoder.java
+++ b/src/joshua/decoder/JoshuaDecoder.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder;
import java.io.BufferedReader;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/MetaDataException.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/MetaDataException.java b/src/joshua/decoder/MetaDataException.java
index f365dd8..932059c 100644
--- a/src/joshua/decoder/MetaDataException.java
+++ b/src/joshua/decoder/MetaDataException.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder;
/*
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/NbestMinRiskReranker.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/NbestMinRiskReranker.java b/src/joshua/decoder/NbestMinRiskReranker.java
index 3a25373..9596ae0 100644
--- a/src/joshua/decoder/NbestMinRiskReranker.java
+++ b/src/joshua/decoder/NbestMinRiskReranker.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder;
import java.io.IOException;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/Support.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/Support.java b/src/joshua/decoder/Support.java
index c5898d6..af33ec5 100644
--- a/src/joshua/decoder/Support.java
+++ b/src/joshua/decoder/Support.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder;
import java.util.List;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/Translation.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/Translation.java b/src/joshua/decoder/Translation.java
index a9f82f7..85f4974 100644
--- a/src/joshua/decoder/Translation.java
+++ b/src/joshua/decoder/Translation.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder;
import java.io.BufferedWriter;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/Translations.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/Translations.java b/src/joshua/decoder/Translations.java
index 015660a..e6ba9e6 100644
--- a/src/joshua/decoder/Translations.java
+++ b/src/joshua/decoder/Translations.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder;
import java.util.LinkedList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/chart_parser/Cell.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/chart_parser/Cell.java b/src/joshua/decoder/chart_parser/Cell.java
index 85cdffd..5ab2a15 100644
--- a/src/joshua/decoder/chart_parser/Cell.java
+++ b/src/joshua/decoder/chart_parser/Cell.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.chart_parser;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/chart_parser/Chart.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/chart_parser/Chart.java b/src/joshua/decoder/chart_parser/Chart.java
index 01b2517..c400f08 100644
--- a/src/joshua/decoder/chart_parser/Chart.java
+++ b/src/joshua/decoder/chart_parser/Chart.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.chart_parser;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/chart_parser/ComputeNodeResult.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/chart_parser/ComputeNodeResult.java b/src/joshua/decoder/chart_parser/ComputeNodeResult.java
index ddf858e..373ed40 100644
--- a/src/joshua/decoder/chart_parser/ComputeNodeResult.java
+++ b/src/joshua/decoder/chart_parser/ComputeNodeResult.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.chart_parser;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/chart_parser/CubePruneState.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/chart_parser/CubePruneState.java b/src/joshua/decoder/chart_parser/CubePruneState.java
index be4713f..c9ee8e6 100644
--- a/src/joshua/decoder/chart_parser/CubePruneState.java
+++ b/src/joshua/decoder/chart_parser/CubePruneState.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.chart_parser;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/chart_parser/DotChart.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/chart_parser/DotChart.java b/src/joshua/decoder/chart_parser/DotChart.java
index c08cf37..64972d5 100644
--- a/src/joshua/decoder/chart_parser/DotChart.java
+++ b/src/joshua/decoder/chart_parser/DotChart.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.chart_parser;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/chart_parser/ManualConstraintsHandler.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/chart_parser/ManualConstraintsHandler.java b/src/joshua/decoder/chart_parser/ManualConstraintsHandler.java
index 6856180..baed984 100644
--- a/src/joshua/decoder/chart_parser/ManualConstraintsHandler.java
+++ b/src/joshua/decoder/chart_parser/ManualConstraintsHandler.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.chart_parser;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/chart_parser/SourcePath.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/chart_parser/SourcePath.java b/src/joshua/decoder/chart_parser/SourcePath.java
index 1acc82c..b1fbe09 100644
--- a/src/joshua/decoder/chart_parser/SourcePath.java
+++ b/src/joshua/decoder/chart_parser/SourcePath.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.chart_parser;
import joshua.decoder.segment_file.Token;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/chart_parser/StateConstraint.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/chart_parser/StateConstraint.java b/src/joshua/decoder/chart_parser/StateConstraint.java
index 3541631..e17cee0 100644
--- a/src/joshua/decoder/chart_parser/StateConstraint.java
+++ b/src/joshua/decoder/chart_parser/StateConstraint.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.chart_parser;
import java.util.Collection;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/chart_parser/SuperNode.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/chart_parser/SuperNode.java b/src/joshua/decoder/chart_parser/SuperNode.java
index 1e21518..6ed4bcd 100644
--- a/src/joshua/decoder/chart_parser/SuperNode.java
+++ b/src/joshua/decoder/chart_parser/SuperNode.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.chart_parser;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/ArityPhrasePenalty.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/ArityPhrasePenalty.java b/src/joshua/decoder/ff/ArityPhrasePenalty.java
index d9c93cb..8223899 100644
--- a/src/joshua/decoder/ff/ArityPhrasePenalty.java
+++ b/src/joshua/decoder/ff/ArityPhrasePenalty.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
import java.util.List;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/FeatureFunction.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/FeatureFunction.java b/src/joshua/decoder/ff/FeatureFunction.java
index a08ead2..40b92b3 100644
--- a/src/joshua/decoder/ff/FeatureFunction.java
+++ b/src/joshua/decoder/ff/FeatureFunction.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/FeatureVector.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/FeatureVector.java b/src/joshua/decoder/ff/FeatureVector.java
index 50b2a3c..f95a93c 100644
--- a/src/joshua/decoder/ff/FeatureVector.java
+++ b/src/joshua/decoder/ff/FeatureVector.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/LabelCombinationFF.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/LabelCombinationFF.java b/src/joshua/decoder/ff/LabelCombinationFF.java
index 6f45a11..37e83f9 100644
--- a/src/joshua/decoder/ff/LabelCombinationFF.java
+++ b/src/joshua/decoder/ff/LabelCombinationFF.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
/***
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/LabelSubstitutionFF.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/LabelSubstitutionFF.java b/src/joshua/decoder/ff/LabelSubstitutionFF.java
index 8e4a79f..0f70372 100644
--- a/src/joshua/decoder/ff/LabelSubstitutionFF.java
+++ b/src/joshua/decoder/ff/LabelSubstitutionFF.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
/***
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/OOVPenalty.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/OOVPenalty.java b/src/joshua/decoder/ff/OOVPenalty.java
index 27c475f..6a06548 100644
--- a/src/joshua/decoder/ff/OOVPenalty.java
+++ b/src/joshua/decoder/ff/OOVPenalty.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/PhraseModel.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/PhraseModel.java b/src/joshua/decoder/ff/PhraseModel.java
index 72e2c2c..9882bc1 100644
--- a/src/joshua/decoder/ff/PhraseModel.java
+++ b/src/joshua/decoder/ff/PhraseModel.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/PhrasePenalty.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/PhrasePenalty.java b/src/joshua/decoder/ff/PhrasePenalty.java
index 33ee154..fa6a3d1 100644
--- a/src/joshua/decoder/ff/PhrasePenalty.java
+++ b/src/joshua/decoder/ff/PhrasePenalty.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/RuleCountBin.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/RuleCountBin.java b/src/joshua/decoder/ff/RuleCountBin.java
index 501e9de..cd7d9e7 100644
--- a/src/joshua/decoder/ff/RuleCountBin.java
+++ b/src/joshua/decoder/ff/RuleCountBin.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
import java.util.List;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/RuleFF.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/RuleFF.java b/src/joshua/decoder/ff/RuleFF.java
index acc0aba..9fb7d3e 100644
--- a/src/joshua/decoder/ff/RuleFF.java
+++ b/src/joshua/decoder/ff/RuleFF.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
import java.util.List;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/RuleLength.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/RuleLength.java b/src/joshua/decoder/ff/RuleLength.java
index 8dd761a..645905a 100644
--- a/src/joshua/decoder/ff/RuleLength.java
+++ b/src/joshua/decoder/ff/RuleLength.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
import java.util.List;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/RulePropertiesQuerying.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/RulePropertiesQuerying.java b/src/joshua/decoder/ff/RulePropertiesQuerying.java
index da9081e..777c790 100644
--- a/src/joshua/decoder/ff/RulePropertiesQuerying.java
+++ b/src/joshua/decoder/ff/RulePropertiesQuerying.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/RuleShape.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/RuleShape.java b/src/joshua/decoder/ff/RuleShape.java
index c5a4dba..ff022ef 100644
--- a/src/joshua/decoder/ff/RuleShape.java
+++ b/src/joshua/decoder/ff/RuleShape.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
import java.util.List;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/SourceDependentFF.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/SourceDependentFF.java b/src/joshua/decoder/ff/SourceDependentFF.java
index 0a28ba7..2f490fa 100644
--- a/src/joshua/decoder/ff/SourceDependentFF.java
+++ b/src/joshua/decoder/ff/SourceDependentFF.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
import joshua.decoder.segment_file.Sentence;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/SourcePathFF.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/SourcePathFF.java b/src/joshua/decoder/ff/SourcePathFF.java
index 57414cd..68dc595 100644
--- a/src/joshua/decoder/ff/SourcePathFF.java
+++ b/src/joshua/decoder/ff/SourcePathFF.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/StatefulFF.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/StatefulFF.java b/src/joshua/decoder/ff/StatefulFF.java
index 53bb439..4ec2e57 100644
--- a/src/joshua/decoder/ff/StatefulFF.java
+++ b/src/joshua/decoder/ff/StatefulFF.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
import java.util.List;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/StatelessFF.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/StatelessFF.java b/src/joshua/decoder/ff/StatelessFF.java
index 5faa75f..198219b 100644
--- a/src/joshua/decoder/ff/StatelessFF.java
+++ b/src/joshua/decoder/ff/StatelessFF.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
import java.util.List;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/TargetBigram.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/TargetBigram.java b/src/joshua/decoder/ff/TargetBigram.java
index 1b842ac..846273d 100644
--- a/src/joshua/decoder/ff/TargetBigram.java
+++ b/src/joshua/decoder/ff/TargetBigram.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
import java.io.IOException;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/WordPenalty.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/WordPenalty.java b/src/joshua/decoder/ff/WordPenalty.java
index e73991b..583b59c 100644
--- a/src/joshua/decoder/ff/WordPenalty.java
+++ b/src/joshua/decoder/ff/WordPenalty.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/fragmentlm/ConcatenationIterator.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/fragmentlm/ConcatenationIterator.java b/src/joshua/decoder/ff/fragmentlm/ConcatenationIterator.java
index efdee28..b19d897 100644
--- a/src/joshua/decoder/ff/fragmentlm/ConcatenationIterator.java
+++ b/src/joshua/decoder/ff/fragmentlm/ConcatenationIterator.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff.fragmentlm;
import java.util.*;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/fragmentlm/FragmentLMFF.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/fragmentlm/FragmentLMFF.java b/src/joshua/decoder/ff/fragmentlm/FragmentLMFF.java
index e84c4ce..0375dc0 100644
--- a/src/joshua/decoder/ff/fragmentlm/FragmentLMFF.java
+++ b/src/joshua/decoder/ff/fragmentlm/FragmentLMFF.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff.fragmentlm;
import java.io.IOException;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/fragmentlm/PennTreebankReader.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/fragmentlm/PennTreebankReader.java b/src/joshua/decoder/ff/fragmentlm/PennTreebankReader.java
index e33af24..6ab52e1 100644
--- a/src/joshua/decoder/ff/fragmentlm/PennTreebankReader.java
+++ b/src/joshua/decoder/ff/fragmentlm/PennTreebankReader.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff.fragmentlm;
import java.util.*;
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/011668ce/src/joshua/decoder/ff/fragmentlm/Tree.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/fragmentlm/Tree.java b/src/joshua/decoder/ff/fragmentlm/Tree.java
index 72aeffe..a4aa5a8 100644
--- a/src/joshua/decoder/ff/fragmentlm/Tree.java
+++ b/src/joshua/decoder/ff/fragmentlm/Tree.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package joshua.decoder.ff.fragmentlm;
import java.io.IOException;