[SOLVED] 代写 html python Question 3 – Citation Style Manager

30 $

File Name: 代写_html_python_Question_3_–_Citation_Style_Manager.zip
File Size: 527.52 KB

SKU: 7841488961 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


Question 3 – Citation Style Manager
In scientific publications, a reference to a previous work (source) that is discussed in the manuscript is called a citation. In different scientific disciplines, and sometimes even different journals, different so-called citation styles are used. The citation style defines how a citation is formatted. We will consider two different citation styles in this question:
– APA style: citation style of the American Psychological Association (https://www.mendeley.com/guides/apa-citation-guide), see also Wikipedia page (https://en.wikipedia.org/wiki/APA_style). This style is widely used in Psychology and Social Sciences.
– IEEE: citation style of the Institute for Electrical and Electronics Engineers (IEEE) is used in IEEE journals which cover engineering and related disciplines (https://pitt.libguides.com/citationhelp/ieee). See the Learning Materials/Coursework folder on Learning Central for more information on the IEEE style.
There are two main aspects to a publication where citation styles apply:
1. In-text citations: These are used in the text body whenever one refers to, summarises, paraphrases, or quotes from another source. This is an example from Wikipedia (https://en.wikipedia.org/wiki/APA_style) for a sentence including an in-text citation of a paper by Schmidt and Oh in APA format:
In our postfactual era, many members of the public fear that the findings of science are not real (Schmidt & Oh, 2016).
In IEEE format, references are given as numbers in square brackets. Example:
This is compounded by the fact that the field is evolving from work performed by an individual that does data science to a team that does data science [1].
2. Reference list: In a scientific publication, the last section is typically the References section, which provides full details on the in-text citations. For instance, the full reference corresponding to the Schmidt & Oh (2016) in-text citation above would be:
Schmidt, F. L., & Oh, I.-S. (2016). The crisis of confidence in research findings in psychology: Is lack of replication the real problem? Or is it something else? Archives of Scientific Psychology, 4(1), 32–37. https://doi.org/10.1037/arc0000029
In an article using IEEE format, every reference in the reference list needs to be numbered:
1. J. Saltz, “The Need for New Processes Methodologies and Tools to Support Big Data Teams and Improve Big Data Project Effectiveness”, Big Data Conference, 2015.

Your task: Implement a function change_style(filepath, style), which takes as input two arguments: (1) filepath, which can be either IEEEexample.docx or APAexample.docx and (2) style (a string being either IEEE or APA), and swaps their citation style (i.e., converts IEEE citations into APA and vice versa). You are not expected to consider cases outside the two documents provided.
Detail instructions:
• To ease the task, you will be working with .docx files (working with PDFs or online sources would be more difficult). Two example files (IEEEexample.docx and APAexample.docx) are provided in Learning Central.
• Use the python-docx package to read, manipulate, and save doc files. You can install it using e.g. pip install python-docx. Check the webpage (https://python- docx.readthedocs.io/en/latest/index.html#) or other online sources to familiarize yourself with the package.
• After conversion, save the file by appending ‘_APA_style’ or ‘_IEEE_style’ to the filename (e.g. ‘myfile_IEEE_style.docx’).
• We make the following simplifications
o In the reference list, you do not need to change the formatting of individual
references. Only make sure that there is numbering (for IEEE style) as opposed to no numbering (for APA).
o For APA, the reference list should be sorted alphabetically. Example :
IEEE After conversion to APA
1. X. F. Li, The practice of life-insurance actuary, Tianjin:NanKai University press, 2000.
2. S. H. Lu, “Information asymmetry and the Strategy of life insurance underwriting”, Insurance Studies, no. 9, pp. 39- 40, Sep. 2003.
3. X. A. Wang, “The underwriting of annuity insurance”, Insurance Studies, no. 3, pp. 45-46, Mar. 2004.
4. J. W. Han, M. Kamber, Data Mining: Concepts and Techniques, San Francisco:Morgan Kaufmann Publishers, 2001.
J. W. Han, M. Kamber, Data Mining: Concepts and Techniques, San Francisco:Morgan Kaufmann Publishers, 2001.
X. F. Li, The practice of life-insurance actuary, Tianjin:NanKai University press, 2000.
S. H. Lu, “Information asymmetry and the Strategy of life insurance underwriting”, Insurance Studies, no. 9, pp. 39-40, Sep. 2003.
X. A. Wang, “The underwriting of annuity insurance”, Insurance Studies, no. 3, pp. 45-46, Mar. 2004.

o For IEEE, the reference list should be sorted numerically (smaller to greater), where 1 refers to the first in-text citation in the paper, 2 refers to the next citation, and so on. Example:
APA After conversion to IEEE
Cialdini, R. B. (2005). What’s the best secret device for engaging student interest? The answer is in the title. J. Soc. Clin. Psychol. 24, 22–29. doi: 10.1521/jscp.24.1.22.59166

Vaughn, L., and Schick, T. (1999). How to Think About Weird Things: Critical Thinking for a New Age. Mountain View, CA: Mayfield Pub.

Willingham, D. T. (2008). Critical thinking: Why is it so hard to teach? Arts Educ. Policy Rev. 109, 21–32.
[1] Willingham, D. T. (2008). Critical thinking: Why is it so hard to teach? Arts Educ. Policy Rev. 109, 21–32.
[2] Cialdini, R. B. (2005). What’s the best secret device for engaging student interest? The answer is in the title. J. Soc. Clin. Psychol. 24, 22–29. doi: 10.1521/jscp.24.1.22.59166
[3] Vaughn, L., and Schick, T. (1999). How to Think About Weird Things: Critical Thinking for a New Age. Mountain View, CA: Mayfield Pub.

o Your program should re-format all in-text citations.
• To implement your programme, you should only use basic Python including string operations, as well as the docx module. Usage of Numpy, Pandas, the regular expression module re, or any other modules not used in the first 4 lectures is not permitted!

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] 代写 html python Question 3 – Citation Style Manager
30 $