Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

Về vấn đề đường dẫn đến thư mục model và file .jar #2

Open
behitek opened this issue May 30, 2019 · 0 comments
Open
Labels
bug Something isn't working

Comments

@behitek
Copy link
Owner

behitek commented May 30, 2019

Hiện tại, ứng dụng đang có chút vấn đề về đường dẫn như sau:

Cụ thể, trên Java khi dùng System.getProperty("user.dir") thì sẽ trả về đường dẫn tới root dir của java project.

Tuy nhiên, khi sử dụng Python thì kết quả sẽ là đường dẫn của thư mục chứa file code .py đang chạy. Điều này dẫn tới lỗi VnCoreNLP không tìm được thư mục model.

Cách khắc phục thủ công hiện tại

Copy thư mục models và file VnCoreNLP.jar tới thư mục chứa file code .py đang dùng vncorenlp

@behitek behitek added the bug Something isn't working label May 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant