forked from HIT-SCIR/ltp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch the constructor of LTP from config file to argument. Add progr…
…am_options to ltp-server and console application.
- Loading branch information
Showing
35 changed files
with
1,197 additions
and
8,433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,3 @@ add_subdirectory (src) | |
|
||
# enable test | ||
enable_testing() | ||
|
||
# compile testing | ||
#add_subdirectory (test) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
include_directories (./ | ||
${SOURCE_DIR}/ | ||
${THIRDPARTY_DIR}/tinythreadpp | ||
${THIRDPARTY_DIR}/maxent | ||
${THIRDPARTY_DIR}/tinyxml) | ||
|
||
set (ltp_test_SRC ltp_test.cpp ${THIRDPARTY_DIR}/tinythreadpp/tinythread.cpp) | ||
|
||
link_directories ( ${LIBRARY_OUTPUT_PATH} ) | ||
add_executable (ltp_test ${ltp_test_SRC}) | ||
target_link_libraries (ltp_test | ||
maxent_static_lib | ||
ltp | ||
splitsnt_static_lib | ||
segmentor_static_lib | ||
postagger_static_lib | ||
parser_static_lib | ||
ner_static_lib | ||
srl_static_lib | ||
xml4nlp | ||
boost_regex_static_lib | ||
boost_program_options_static_lib) | ||
|
||
add_executable (cws_cmdline cws_cmdline.cpp | ||
${THIRDPARTY_DIR}/tinythreadpp/tinythread.cpp) | ||
target_link_libraries (cws_cmdline segmentor_static_lib | ||
boost_program_options_static_lib | ||
boost_regex_static_lib) | ||
set_target_properties(cws_cmdline PROPERTIES | ||
RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}/examples/) | ||
|
||
add_executable (pos_cmdline pos_cmdline.cpp | ||
${THIRDPARTY_DIR}/tinythreadpp/tinythread.cpp) | ||
target_link_libraries (pos_cmdline postagger_static_lib | ||
boost_program_options_static_lib) | ||
set_target_properties(pos_cmdline PROPERTIES | ||
RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}/examples/) | ||
|
||
add_executable (par_cmdline par_cmdline.cpp | ||
${THIRDPARTY_DIR}/tinythreadpp/tinythread.cpp) | ||
target_link_libraries (par_cmdline parser_static_lib | ||
boost_program_options_static_lib) | ||
set_target_properties(par_cmdline PROPERTIES | ||
RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}/examples/) | ||
|
||
if (MSVC) | ||
target_link_libraries (ltp_test | ||
${THIRDPARTY_DIR}/openblas/lib/libopenblas.dll.a) | ||
else() | ||
target_link_libraries (ltp_test openblas pthread) | ||
target_link_libraries (cws_cmdline pthread) | ||
target_link_libraries (pos_cmdline pthread) | ||
target_link_libraries (par_cmdline openblas pthread) | ||
endif () | ||
|
||
|
Oops, something went wrong.