Demo library
Project description
About The Code
This is a part of the project that we are working on it for the Cyber-Physical Group (i6) at the Technical University of Munich. In this part, we develop a script extractor to gather the information such as abstract, author(s), supervisor(s), advisor(s), date of submission, etc.
How to install
You can install it by running the following line in your terminal:
pip install Extraction-CPS
Getting Started
This is an example of how you may give instructions on setting up your project locally.
from Extract_info import Extract
directory = "D:\CPS\HiWiProjects\Parse\data\mnt\current" #This is a sample directory. You have to change it to your desired directory.
# Note: if your subdirectory is started with a number, you must write it as below:
# directory = "D:\CPS\HiWiProjects\Parse\data\mnt\current\\2014"
format = "tex" #For now, the code can extract the information from LaTeX(.tex) and Text(.txt) files.
E = Extract.Extraction(directory, format)
All_information = E.Extract_all_together() #This line will give you the information if the authors and abstract are not empty.
Only_Abstracts = E.Extract_Abstract() #This will give you the English and German version of the abstract. The German version may be empty.
Only_Authors = E.Extract_Authors()
Only_Titles_en = E.Extract_Title_en() #English titles
Only_Titles_de = E.Extract_Title_de() #German titles
Only_Dates = E.Extract_Date()
Only_Supervisors = E.Extract_Supervisor()
Only_Advisors = E.Extract_Advisor()
Only_ThesisTypes = E.Extract_ThesisType()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Extraction_CPS-0.1.5.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for Extraction_CPS-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bf0bd7022908e2519db46b6789fdc56409cddcb0d322059d448ccfed51f282d |
|
MD5 | 4c49c7f3c47b3a4b0d2e0772c8c6ce63 |
|
BLAKE2b-256 | cd095dc35e62f6ea4568005e63031e96588f61ad8d4d4d25fbac25aa04ff3b5e |