I'm developing a project about NLP. I have a large corpus and some code. I want to separate them in my project but I'm wondering what is the correct names to choose,
I also saw something in pycharm menus as mark as source
, mark as resource
which I supposed is explained in here but I still can't understand what are these source and resource root things and when should I use them. I used to think of resource as time, energy, computational power etc.
answers from JetBrains Content root types
Content root types
By default, all the files in a content root folder are involved in indexing, searching, parsing, code completion, and so on. To change this status, folders within a content root can be assigned to the following categories:
Regular content roots, created as described in Configuring Project Structure. These roots are marked the Content root icon.
A content root is a folder that contains the files that make up your project.
Source roots (or source folders; shown as the Source root icon ). These roots contain the actual source files and resources. PyCharm uses the source roots as the starting point for resolving imports.
The files under the source roots are interpreted according to their type. PyCharm can parse, inspect, index, and compile the contents of these roots.
Resource roots (PyCharm Professional only) or resource folders; shown as the Resources root icon the Resources root icon. These roots are intended for resource files in your application (images, style sheets, and so on). By assigning a folder to this category, you tell PyCharm that files in it and in its subfolders can be referenced relative to this folder instead of specifying full paths to them.
Excluded roots (shown as the Excluded root icon) are ones that PyCharm "almost ignores". These roots contain files and folders ignored by PyCharm when indexing, searching, parsing, watching and so on.
Excluded roots are not visible to PyCharm. Usually, one would like to exclude temporary build folders, generated output, logs, and other project output. Excluding the unnecessary paths is a good way to significantly improve performance.
Template roots (PyCharm Professional only) marked as the Template Folder icon contain templates for the various web projects.