Hi,I am starting to like PyKE very much and am looking forward to replace many of my python module with PyKE as I find PyKE very intuitive and well managed.I know the below has been asked multiple times, but somehow I couldn't follow the treads. My concern is very simple.I have two directory1. code (../code) -- which contains many modules including pyke rule base and python codes2. dataset (../dataset) -- contains datasets of all the module including pyke ".fbc" files.Since PyKE rules are small in size and are quite alike python code I would like to have them in my code directory. On the other hand PyKE .fbc files (universal_facts) and ".compiled_krb" may stretch up-to many mb's even gigs depending on how much data you assert. Therefore I'd like to have them in my dataset directorythe structure I'd like to have looks like1. (../code/PyKE.krb) and (../code/python_code_to_access_PyKE.py)2. (../dataset/compiled_krb/) and (../dataset/PyKE.kfb)I have achieved the half of 2nd by manipulating the PyKE engine to engine = knowledge_engine.engine(__file__, "../dataset") and asserting statements into PyKE.fbc in ../dataset/ .However, when i run "python_code_to_access_PyKE.py", I see that the "compiled_krb" folder is getting created in "../code/compiled_krb". I'd like to have compiled_krb in ../dataset/Is their any way to put the compiled_krb folder into a desired location ?I'd really appreciate any help.RegardsSam
All of the compiled Python .py source files and .fbc/.qbc pickle files generated from each source directory are placed, by default, in a compiled_krb target package. You may specify a different target package for any source directory by passing that source directory along with the target package name as a 2-tuple. Thus, specifying the default target package explicitly would look like:
>>> my_engine = knowledge_engine.engine((__file__, '.compiled_krb'))
You may specify the same target package for multiple source directories.
The last component of the target package will be created automatically if it does not already exist.
Hi,I am starting to like PyKE very much and am looking forward to replace many of my python module with PyKE as I find PyKE very intuitive and well managed.
I know the below has been asked multiple times, but somehow I couldn't follow the treads. My concern is very simple.I have two directory1. code (../code) -- which contains many modules including pyke rule base and python codes2. dataset (../dataset) -- contains datasets of all the module including pyke ".fbc" files.Since PyKE rules are small in size and are quite alike python code I would like to have them in my code directory. On the other hand PyKE .fbc files (universal_facts) and ".compiled_krb" may stretch up-to many mb's even gigs depending on how much data you assert. Therefore I'd like to have them in my dataset directorythe structure I'd like to have looks like1. (../code/PyKE.krb) and (../code/python_code_to_access_PyKE.py)
2. (../dataset/compiled_krb/) and (../dataset/PyKE.fbc)
I have achieved the half of 2nd by manipulating the PyKE engine to engine = knowledge_engine.engine(__file__, "../dataset") and asserting statements into PyKE.fbc in ../dataset/ .However, when i run "python_code_to_access_PyKE.py", I see that the "compiled_krb" folder is getting created in "../code/compiled_krb". I'd like to have compiled_krb in ../dataset/Is their any way to put the compiled_krb folder into a desired location ?I'd really appreciate any help.RegardsSam
--
You received this message because you are subscribed to the Google Groups "PyKE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyke+uns...@googlegroups.com.
To post to this group, send email to py...@googlegroups.com.
Visit this group at https://groups.google.com/group/pyke.
For more options, visit https://groups.google.com/d/optout.