Add NLP unittests 56/245956/5
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 20 Oct 2020 12:33:29 +0000 (21:33 +0900)
committerjay.ho.park <jay.ho.park@samsung.com>
Thu, 22 Oct 2020 04:33:29 +0000 (13:33 +0900)
commit16228e616cf77f920e76f48dd25edf7affdc5d7a
tree04288fe29f5400bd37928db20f811241b1ba8f1a
parente3ec76af022ad99104fa0e7d80a03627eb0ebf75
Add NLP unittests

root@localhost:~# /usr/bin/nlp_unittests
[==========] Running 4 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 4 tests from NlpServiceTest
[ RUN      ] NlpServiceTest.utc_nlp_service_tokenize_p
token: 'I'
token: 'am'
token: 'a'
token: 'boy'
word_tokenize process done
[       OK ] NlpServiceTest.utc_nlp_service_tokenize_p (5015 ms)
[ RUN      ] NlpServiceTest.utc_nlp_service_language_detect_p
Detected language: en
[       OK ] NlpServiceTest.utc_nlp_service_language_detect_p (79 ms)
[ RUN      ] NlpServiceTest.utc_nlp_service_pos_tag_p
tag : NNP
tag : NNP
[       OK ] NlpServiceTest.utc_nlp_service_pos_tag_p (2066 ms)
[ RUN      ] NlpServiceTest.utc_nlp_service_ne_chunk_p
tag: PRP
token: We
tag: VBD
token: saw
tag: DT
token: the
tag: JJ
token: yellow
tag: NN
token: dog
ne_chunk process done
[       OK ] NlpServiceTest.utc_nlp_service_ne_chunk_p (2138 ms)
[----------] 4 tests from NlpServiceTest (9299 ms total)

[----------] Global test environment tear-down
[==========] 4 tests from 1 test case ran. (9300 ms total)
[  PASSED  ] 4 tests.

Change-Id: I8f82875e4ea0c9351a8335976af4967a7daf1673
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
CMakeLists.txt
packaging/nlp.spec
service/CMakeLists.txt
service/inc/service.h
service/src/main.c [new file with mode: 0755]
service/src/service.c
tests/CMakeLists.txt [new file with mode: 0644]
tests/src/main.cpp [new file with mode: 0644]
tests/src/nlp_service_unittests.cpp [new file with mode: 0644]