INCLUDE(FindPkgConfig)
-INSTALL(DIRECTORY nltk DESTINATION ${LIBDIR}/python3.7/site-packages)
-INSTALL(DIRECTORY langdetect DESTINATION ${LIBDIR}/python3.7/site-packages)
+INSTALL(DIRECTORY nltk DESTINATION ${LIBDIR}/python3.9/site-packages)
+INSTALL(DIRECTORY langdetect DESTINATION ${LIBDIR}/python3.9/site-packages)
INSTALL(DIRECTORY nltk_data DESTINATION /usr/local/lib/)
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(bundle)
BuildRequires: python3-base
-BuildRequires: pkgconfig(python3)
+BuildRequires: pkgconfig(python3-embed)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(rpc-port)
BuildRequires: pkgconfig(ecore)
%attr(755,root,root) %{_app_bin_dir}/org.tizen.nlp.service
%{_app_bin_dir}/*
%{TZ_SYS_RO_PACKAGES}/org.tizen.nlp.service.xml
-%{_libdir}/python3.7/site-packages/langdetect/*
-%{_libdir}/python3.7/site-packages/nltk/*
+%{python3_sitelib}/langdetect/*
+%{python3_sitelib}/nltk/*
%license LICENSE
%files data-en
capi-base-common
capi-appfw-service-application
bundle
- python3
+ python3-embed
glib-2.0
rpc-port
ecore
int nltk_get_size_from_list(PyObject* list)
{
- if PyList_Check(list)
+ if (PyList_Check(list))
{
return PyList_Size(list);
}
int nltk_get_size_from_tuple(PyObject* tuple)
{
- if PyTuple_Check(tuple)
+ if (PyTuple_Check(tuple))
{
return PyTuple_Size(tuple);
}
PyObject* nltk_get_element_from_list_by_index(PyObject* list, int index)
{
PyObject* element;
- if PyList_Check(list)
+ if (PyList_Check(list))
{
if (index > (PyList_Size(list)-1) || (index < 0 ))
{
{
PRET_VM(!tuple, NULL, "Input parameter [tuple] is NULL!");
PyObject* element;
- if PyTuple_Check(tuple)
+ if (PyTuple_Check(tuple))
{
if (index > (PyTuple_Size(tuple)-1) || (index < 0 ))
{
capi-base-common
capi-appfw-service-application
bundle
- python3
+ python3-embed
glib-2.0
rpc-port
ecore