Skip to content

Commit

Permalink
Use relative header paths
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed Jun 7, 2021
1 parent 6438318 commit a5f86a3
Show file tree
Hide file tree
Showing 186 changed files with 737 additions and 740 deletions.
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,7 @@ find_package(Boost 1.41.0 REQUIRED COMPONENTS
)

# Define where include files live
include_directories(
${PROJECT_SOURCE_DIR}
${Boost_INCLUDE_DIRS}
)
include_directories(${Boost_INCLUDE_DIRS})

set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
Expand Down
10 changes: 5 additions & 5 deletions lm/bhiksha.cc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "lm/bhiksha.hh"
#include "bhiksha.hh"

#include "lm/binary_format.hh"
#include "lm/config.hh"
#include "util/file.hh"
#include "util/exception.hh"
#include "binary_format.hh"
#include "config.hh"
#include "../util/file.hh"
#include "../util/exception.hh"

#include <limits>

Expand Down
8 changes: 4 additions & 4 deletions lm/bhiksha.hh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
#ifndef LM_BHIKSHA_H
#define LM_BHIKSHA_H

#include "lm/model_type.hh"
#include "lm/trie.hh"
#include "util/bit_packing.hh"
#include "util/sorted_uniform.hh"
#include "model_type.hh"
#include "trie.hh"
#include "../util/bit_packing.hh"
#include "../util/sorted_uniform.hh"

#include <algorithm>
#include <stdint.h>
Expand Down
8 changes: 4 additions & 4 deletions lm/binary_format.cc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "lm/binary_format.hh"
#include "binary_format.hh"

#include "lm/lm_exception.hh"
#include "util/file.hh"
#include "util/file_piece.hh"
#include "lm_exception.hh"
#include "../util/file.hh"
#include "../util/file_piece.hh"

#include <cstddef>
#include <cstring>
Expand Down
12 changes: 6 additions & 6 deletions lm/binary_format.hh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#ifndef LM_BINARY_FORMAT_H
#define LM_BINARY_FORMAT_H

#include "lm/config.hh"
#include "lm/model_type.hh"
#include "lm/read_arpa.hh"
#include "config.hh"
#include "model_type.hh"
#include "read_arpa.hh"

#include "util/file_piece.hh"
#include "util/mmap.hh"
#include "util/scoped.hh"
#include "../util/file_piece.hh"
#include "../util/mmap.hh"
#include "../util/scoped.hh"

#include <cstddef>
#include <vector>
Expand Down
10 changes: 5 additions & 5 deletions lm/build_binary_main.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "lm/model.hh"
#include "lm/sizes.hh"
#include "util/file_piece.hh"
#include "util/usage.hh"
#include "model.hh"
#include "sizes.hh"
#include "../util/file_piece.hh"
#include "../util/usage.hh"

#include <algorithm>
#include <cstdlib>
Expand All @@ -12,7 +12,7 @@
#include <cmath>

#ifdef WIN32
#include "util/getopt.hh"
#include "../util/getopt.hh"
#else
#include <unistd.h>
#endif
Expand Down
6 changes: 3 additions & 3 deletions lm/builder/adjust_counts.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "lm/builder/adjust_counts.hh"
#include "lm/common/ngram_stream.hh"
#include "lm/builder/payload.hh"
#include "adjust_counts.hh"
#include "../common/ngram_stream.hh"
#include "payload.hh"

#include <algorithm>
#include <iostream>
Expand Down
6 changes: 3 additions & 3 deletions lm/builder/adjust_counts.hh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef LM_BUILDER_ADJUST_COUNTS_H
#define LM_BUILDER_ADJUST_COUNTS_H

#include "lm/builder/discount.hh"
#include "lm/lm_exception.hh"
#include "util/exception.hh"
#include "discount.hh"
#include "../lm_exception.hh"
#include "../../util/exception.hh"

#include <vector>

Expand Down
8 changes: 4 additions & 4 deletions lm/builder/adjust_counts_test.cc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "lm/builder/adjust_counts.hh"
#include "adjust_counts.hh"

#include "lm/common/ngram_stream.hh"
#include "lm/builder/payload.hh"
#include "util/scoped.hh"
#include "../common/ngram_stream.hh"
#include "payload.hh"
#include "../../util/scoped.hh"

#include <boost/thread/thread.hpp>
#define BOOST_TEST_MODULE AdjustCounts
Expand Down
10 changes: 5 additions & 5 deletions lm/builder/combine_counts.hh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#ifndef LM_BUILDER_COMBINE_COUNTS_H
#define LM_BUILDER_COMBINE_COUNTS_H

#include "lm/builder/payload.hh"
#include "lm/common/ngram.hh"
#include "lm/common/compare.hh"
#include "lm/word_index.hh"
#include "util/stream/sort.hh"
#include "payload.hh"
#include "../common/ngram.hh"
#include "../common/compare.hh"
#include "../word_index.hh"
#include "../../util/stream/sort.hh"

#include <functional>
#include <string>
Expand Down
30 changes: 15 additions & 15 deletions lm/builder/corpus_count.cc
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#include "lm/builder/corpus_count.hh"

#include "lm/builder/payload.hh"
#include "lm/common/ngram.hh"
#include "lm/lm_exception.hh"
#include "lm/vocab.hh"
#include "lm/word_index.hh"
#include "util/file_stream.hh"
#include "util/file.hh"
#include "util/file_piece.hh"
#include "util/murmur_hash.hh"
#include "util/probing_hash_table.hh"
#include "util/scoped.hh"
#include "util/stream/chain.hh"
#include "util/tokenize_piece.hh"
#include "corpus_count.hh"

#include "payload.hh"
#include "../common/ngram.hh"
#include "../lm_exception.hh"
#include "../vocab.hh"
#include "../word_index.hh"
#include "../../util/file_stream.hh"
#include "../../util/file.hh"
#include "../../util/file_piece.hh"
#include "../../util/murmur_hash.hh"
#include "../../util/probing_hash_table.hh"
#include "../../util/scoped.hh"
#include "../../util/stream/chain.hh"
#include "../../util/tokenize_piece.hh"

#include <functional>

Expand Down
6 changes: 3 additions & 3 deletions lm/builder/corpus_count.hh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef LM_BUILDER_CORPUS_COUNT_H
#define LM_BUILDER_CORPUS_COUNT_H

#include "lm/lm_exception.hh"
#include "lm/word_index.hh"
#include "util/scoped.hh"
#include "../lm_exception.hh"
#include "../word_index.hh"
#include "../../util/scoped.hh"

#include <cstddef>
#include <string>
Expand Down
18 changes: 9 additions & 9 deletions lm/builder/corpus_count_test.cc
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#include "lm/builder/corpus_count.hh"
#include "corpus_count.hh"

#include "lm/builder/payload.hh"
#include "lm/common/ngram_stream.hh"
#include "lm/common/ngram.hh"
#include "payload.hh"
#include "../common/ngram_stream.hh"
#include "../common/ngram.hh"

#include "util/file.hh"
#include "util/file_piece.hh"
#include "util/tokenize_piece.hh"
#include "util/stream/chain.hh"
#include "util/stream/stream.hh"
#include "../../util/file.hh"
#include "../../util/file_piece.hh"
#include "../../util/tokenize_piece.hh"
#include "../../util/stream/chain.hh"
#include "../../util/stream/stream.hh"

#define BOOST_TEST_MODULE CorpusCountTest
#include <boost/test/unit_test.hpp>
Expand Down
18 changes: 9 additions & 9 deletions lm/builder/count_ngrams_main.cc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include "lm/builder/combine_counts.hh"
#include "lm/builder/corpus_count.hh"
#include "lm/common/compare.hh"
#include "util/stream/chain.hh"
#include "util/stream/io.hh"
#include "util/stream/sort.hh"
#include "util/file.hh"
#include "util/file_piece.hh"
#include "util/usage.hh"
#include "combine_counts.hh"
#include "corpus_count.hh"
#include "../common/compare.hh"
#include "../../util/stream/chain.hh"
#include "../../util/stream/io.hh"
#include "../../util/stream/sort.hh"
#include "../../util/file.hh"
#include "../../util/file_piece.hh"
#include "../../util/usage.hh"

#include <boost/program_options.hpp>

Expand Down
10 changes: 5 additions & 5 deletions lm/builder/debug_print.hh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#ifndef LM_BUILDER_DEBUG_PRINT_H
#define LM_BUILDER_DEBUG_PRINT_H

#include "lm/builder/payload.hh"
#include "lm/common/print.hh"
#include "lm/common/ngram_stream.hh"
#include "util/file_stream.hh"
#include "util/file.hh"
#include "payload.hh"
#include "../common/print.hh"
#include "../common/ngram_stream.hh"
#include "../../util/file_stream.hh"
#include "../../util/file.hh"

#include <boost/lexical_cast.hpp>

Expand Down
8 changes: 4 additions & 4 deletions lm/builder/dump_counts_main.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "lm/common/print.hh"
#include "lm/word_index.hh"
#include "util/file.hh"
#include "util/read_compressed.hh"
#include "../common/print.hh"
#include "../word_index.hh"
#include "../../util/file.hh"
#include "../../util/read_compressed.hh"

#include <boost/lexical_cast.hpp>

Expand Down
24 changes: 12 additions & 12 deletions lm/builder/initial_probabilities.cc
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#include "lm/builder/initial_probabilities.hh"

#include "lm/builder/discount.hh"
#include "lm/builder/hash_gamma.hh"
#include "lm/builder/payload.hh"
#include "lm/common/special.hh"
#include "lm/common/ngram_stream.hh"
#include "util/murmur_hash.hh"
#include "util/file.hh"
#include "util/stream/chain.hh"
#include "util/stream/io.hh"
#include "util/stream/stream.hh"
#include "initial_probabilities.hh"

#include "discount.hh"
#include "hash_gamma.hh"
#include "payload.hh"
#include "../common/special.hh"
#include "../common/ngram_stream.hh"
#include "../../util/murmur_hash.hh"
#include "../../util/file.hh"
#include "../../util/stream/chain.hh"
#include "../../util/stream/io.hh"
#include "../../util/stream/stream.hh"

#include <vector>

Expand Down
6 changes: 3 additions & 3 deletions lm/builder/initial_probabilities.hh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef LM_BUILDER_INITIAL_PROBABILITIES_H
#define LM_BUILDER_INITIAL_PROBABILITIES_H

#include "lm/builder/discount.hh"
#include "lm/word_index.hh"
#include "util/stream/config.hh"
#include "discount.hh"
#include "../word_index.hh"
#include "../../util/stream/config.hh"

#include <vector>

Expand Down
20 changes: 10 additions & 10 deletions lm/builder/interpolate.cc
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#include "lm/builder/interpolate.hh"

#include "lm/builder/hash_gamma.hh"
#include "lm/builder/payload.hh"
#include "lm/common/compare.hh"
#include "lm/common/joint_order.hh"
#include "lm/common/ngram_stream.hh"
#include "lm/lm_exception.hh"
#include "util/fixed_array.hh"
#include "util/murmur_hash.hh"
#include "interpolate.hh"

#include "hash_gamma.hh"
#include "payload.hh"
#include "../common/compare.hh"
#include "../common/joint_order.hh"
#include "../common/ngram_stream.hh"
#include "../lm_exception.hh"
#include "../../util/fixed_array.hh"
#include "../../util/murmur_hash.hh"

#include <iostream>
#include <cassert>
Expand Down
6 changes: 3 additions & 3 deletions lm/builder/interpolate.hh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef LM_BUILDER_INTERPOLATE_H
#define LM_BUILDER_INTERPOLATE_H

#include "lm/common/special.hh"
#include "lm/word_index.hh"
#include "util/stream/multi_stream.hh"
#include "../common/special.hh"
#include "../word_index.hh"
#include "../../util/stream/multi_stream.hh"

#include <vector>

Expand Down
14 changes: 7 additions & 7 deletions lm/builder/lmplz_main.cc
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "lm/builder/output.hh"
#include "lm/builder/pipeline.hh"
#include "lm/common/size_option.hh"
#include "lm/lm_exception.hh"
#include "util/file.hh"
#include "util/file_piece.hh"
#include "util/usage.hh"
#include "output.hh"
#include "pipeline.hh"
#include "../common/size_option.hh"
#include "../lm_exception.hh"
#include "../../util/file.hh"
#include "../../util/file_piece.hh"
#include "../../util/usage.hh"

#include <iostream>

Expand Down
10 changes: 5 additions & 5 deletions lm/builder/output.cc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "lm/builder/output.hh"
#include "output.hh"

#include "lm/common/model_buffer.hh"
#include "lm/common/print.hh"
#include "util/file_stream.hh"
#include "util/stream/multi_stream.hh"
#include "../common/model_buffer.hh"
#include "../common/print.hh"
#include "../../util/file_stream.hh"
#include "../../util/stream/multi_stream.hh"

#include <iostream>

Expand Down
6 changes: 3 additions & 3 deletions lm/builder/output.hh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef LM_BUILDER_OUTPUT_H
#define LM_BUILDER_OUTPUT_H

#include "lm/builder/header_info.hh"
#include "lm/common/model_buffer.hh"
#include "util/file.hh"
#include "header_info.hh"
#include "../common/model_buffer.hh"
#include "../../util/file.hh"

#include <boost/ptr_container/ptr_vector.hpp>
#include <boost/utility.hpp>
Expand Down
Loading

0 comments on commit a5f86a3

Please sign in to comment.