Skip to content

Commit

Permalink
Add parser.n dll
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneplus committed May 16, 2015
1 parent ad42aa6 commit 5dc348a
Show file tree
Hide file tree
Showing 64 changed files with 990 additions and 2,313 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ config.h
###############
# output #
###############
include/
#include/
lib/
bin/
tools/train/lgdpj
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ compiler:
before_install:
- sudo apt-get install gfortran
- sudo apt-get install cmake
- sudo apt-get install libopenblas

script:
- ./configure
Expand Down
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ if (MINGW)
set(CMAKE_CXX_FLAGS "-std=c++11 -Wno-narrowing -fpermissive")
endif (MINGW)

set (CMAKE_CXX_FLAGS "-g")

# -- config output directories
set (EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set (LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
Expand Down Expand Up @@ -43,4 +45,4 @@ add_subdirectory (src)
enable_testing()

# compile testing
add_subdirectory (test)
#add_subdirectory (test)
8 changes: 4 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ set (srl_DIR ${SOURCE_DIR}/srl/)
set (ltp_dll_DIR ${SOURCE_DIR}/__ltp_dll/)
set (server_DIR ${SOURCE_DIR}/server/)

#add_subdirectory ("__xml4nlp")
add_subdirectory ("__xml4nlp")
add_subdirectory ("splitsnt")
add_subdirectory ("segmentor")
add_subdirectory ("postagger")
add_subdirectory ("ner")
#add_subdirectory ("parser")
add_subdirectory ("parser.n")
#add_subdirectory ("srl")
#add_subdirectory ("__ltp_dll")
add_subdirectory ("srl")
add_subdirectory ("__ltp_dll")

# mongoose server is not supported in windows
if (UNIX)
add_subdirectory ("unittest")
#add_subdirectory ("server")
add_subdirectory ("server")
endif()


7 changes: 1 addition & 6 deletions src/__ltp_dll/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ include_directories (./
${srl_DIR}
${THIRDPARTY_DIR}/tinyxml)

SET(ltp_SRC
Ltp.cpp
Ltp.h
LTPOption.h
LTPResource.cpp
LTPResource.h)
SET(ltp_SRC Ltp.cpp LTPResource.cpp)

ADD_LIBRARY(ltp ${ltp_SRC})
53 changes: 0 additions & 53 deletions src/__ltp_dll/LTPOption.h

This file was deleted.

1 change: 0 additions & 1 deletion src/__ltp_dll/Ltp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include <map>
#include <string>

// #include "MyLib.h"
#include "Xml4nlp.h"
#include "SplitSentence.h"
#include "segment_dll.h"
Expand Down
1 change: 0 additions & 1 deletion src/__ltp_dll/Ltp.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define __LTP_H__

#include "LTPResource.h"
#include "LTPOption.h"
#include "Xml4nlp.h"
#include <iostream>
#include <string>
Expand Down
Loading

0 comments on commit 5dc348a

Please sign in to comment.