Spaces:
Running
Running
Create Home.py
Browse files
Home.py
ADDED
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#import module
|
2 |
+
import streamlit as st
|
3 |
+
from PIL import Image
|
4 |
+
|
5 |
+
#===config===
|
6 |
+
st.set_page_config(
|
7 |
+
page_title="Coconut",
|
8 |
+
page_icon="π₯₯",
|
9 |
+
layout="wide"
|
10 |
+
)
|
11 |
+
st.title('π₯₯ Coconut Library Tool')
|
12 |
+
st.sidebar.success('Select page above')
|
13 |
+
|
14 |
+
#===page===
|
15 |
+
mt1, mt2, mt3 = st.tabs(["About", "How to", "Behind this app"])
|
16 |
+
|
17 |
+
with mt1:
|
18 |
+
st.header("π Hello universe!")
|
19 |
+
st.write('The coconut tree is known as one of the most useful trees. π΄ The leaves function to produce oxygen through photosynthesis and are used for handicrafts, even for roof houses. The shells, the oil, the wood, the flowers, or even the husks can be something useful. From this philosophy, the Coconut Library Tool aims to be useful for librarians or anyone who needs cool features but is hindered by programming languages.')
|
20 |
+
st.write("We thank the cool people who have created so many facilities that we can place them in a place. We can't name them all, but we believe science will advance due to your efforts. π§π»βπ€βπ§πΎ")
|
21 |
+
st.text('')
|
22 |
+
st.text('')
|
23 |
+
st.text('')
|
24 |
+
st.text('')
|
25 |
+
st.divider()
|
26 |
+
st.error("This app works on Scopus's CSV file, Web of Science's Tab delimited file, and custom CSV file.", icon="π¨")
|
27 |
+
|
28 |
+
with mt2:
|
29 |
+
st.header("Before you start")
|
30 |
+
option = st.selectbox(
|
31 |
+
'Please choose....',
|
32 |
+
('Keyword Stem', 'Topic Modeling', 'Bidirected Network', 'Sunburst'))
|
33 |
+
|
34 |
+
if option == 'Keyword Stem':
|
35 |
+
tab1, tab2, tab3 = st.tabs(["Prologue", "Steps", "Requirements"])
|
36 |
+
with tab1:
|
37 |
+
st.write("This approach is effective for locating basic words and aids in catching the true meaning of the word, which can lead to improved semantic analysis and comprehension of the text. Some people find it difficult to check keywords before performing bibliometrics (using software such as VOSviewer and Bibliometrix). This strategy makes it easy to combine and search for fundamental words from keywords, especially if you have a large number of keywords. To do stemming or lemmatization on other text, change the column name to 'Keyword' in your file.")
|
38 |
+
st.divider()
|
39 |
+
st.write('π‘ The idea came from this:')
|
40 |
+
st.write('Santosa, F. A. (2022). Prior steps into knowledge mapping: Text mining application and comparison. Issues in Science and Technology Librarianship, 102. https://doi.org/10.29173/istl2736')
|
41 |
+
|
42 |
+
with tab2:
|
43 |
+
st.text("1. Put your file.")
|
44 |
+
st.text("2. Choose your preferable method. Picture below may help you to choose wisely.")
|
45 |
+
st.markdown("![Source: https://studymachinelearning.com/stemming-and-lemmatization/](https://studymachinelearning.com/wp-content/uploads/2019/09/stemmin_lemm_ex-1.png)")
|
46 |
+
st.text('Source: https://studymachinelearning.com/stemming-and-lemmatization/')
|
47 |
+
st.text("3. Now you need to select what kind of keywords you need.")
|
48 |
+
st.text("4. Finally, you can download and use the file on VOSviewer, Bibliometrix, or else!")
|
49 |
+
st.error("Please check what has changed. It's possible some keywords failed to find their roots.", icon="π¨")
|
50 |
+
|
51 |
+
with tab3:
|
52 |
+
st.text("""
|
53 |
+
+----------------+------------------------+---------------------------------+
|
54 |
+
| Source | File Type | Column |
|
55 |
+
+----------------+------------------------+---------------------------------+
|
56 |
+
| Scopus | Comma-separated values | Author Keywords |
|
57 |
+
| | (.csv) | Index Keywords |
|
58 |
+
+----------------+------------------------+---------------------------------+
|
59 |
+
| Web of Science | Tab delimited file | Author Keywords |
|
60 |
+
| | (.txt) | Keywords Plus |
|
61 |
+
+----------------+------------------------+---------------------------------+
|
62 |
+
| Other | .csv | Change your column to 'Keyword' |
|
63 |
+
+----------------+------------------------+---------------------------------+
|
64 |
+
""")
|
65 |
+
|
66 |
+
elif option == 'Topic Modeling':
|
67 |
+
tab1, tab2, tab3 = st.tabs(["Prologue", "Steps", "Requirements"])
|
68 |
+
with tab1:
|
69 |
+
st.write("Topic modeling has numerous advantages for librarians in different aspects of their work. A crucial benefit is an ability to quickly organize and categorize a huge volume of textual content found in websites, institutional archives, databases, emails, and reference desk questions. Librarians can use topic modeling approaches to automatically identify the primary themes or topics within these documents, making navigating and retrieving relevant information easier. Librarians can identify and understand the prevailing topics of discussion by analyzing text data with topic modeling tools, allowing them to assess user feedback, tailor their services to meet specific needs and make informed decisions about collection development and resource allocation. Making ontologies, automatic subject classification, recommendation services, bibliometrics, altmetrics, and better resource searching and retrieval are a few examples of topic modeling. To do topic modeling on other text like chats and surveys, change the column name to 'Abstract' in your file.")
|
70 |
+
st.divider()
|
71 |
+
st.write('π‘ The idea came from this:')
|
72 |
+
st.write('Lamba, M., & Madhusudhan, M. (2021, July 31). Topic Modeling. Text Mining for Information Professionals, 105β137. https://doi.org/10.1007/978-3-030-85085-2_4')
|
73 |
+
|
74 |
+
with tab2:
|
75 |
+
st.text("1. Put your file. We use abstract column for this process.")
|
76 |
+
st.text("2. Choose your preferred method. LDA is the most widely used, whereas Biterm is appropriate for short text, and BERTopic works well for large text data.")
|
77 |
+
st.text("3. Finally, you can visualize your data.")
|
78 |
+
st.error("This app includes lemmatization and stopwords for the abstract text. Currently, we only offer English words. For other languages you can use stemming.", icon="π¬")
|
79 |
+
st.error("If you want to see the topic on another data (chats, questionnaire, or other text), change the column name of your table to 'Abstract'.", icon="π¨")
|
80 |
+
|
81 |
+
with tab3:
|
82 |
+
st.text("""
|
83 |
+
+----------------+------------------------+----------------------------------+
|
84 |
+
| Source | File Type | Column |
|
85 |
+
+----------------+------------------------+----------------------------------+
|
86 |
+
| Scopus | Comma-separated values | Abstract |
|
87 |
+
| | (.csv) | |
|
88 |
+
+----------------+------------------------+----------------------------------+
|
89 |
+
| Web of Science | Tab delimited file | Abstract |
|
90 |
+
| | (.txt) | |
|
91 |
+
+----------------+------------------------+----------------------------------+
|
92 |
+
| Other | .csv | Change your column to 'Abstract' |
|
93 |
+
+----------------+------------------------+----------------------------------+
|
94 |
+
""")
|
95 |
+
|
96 |
+
elif option == 'Bidirected Network':
|
97 |
+
tab1, tab2, tab3 = st.tabs(["Prologue", "Steps", "Requirements"])
|
98 |
+
with tab1:
|
99 |
+
st.write("The use of network text analysis by librarians can be quite beneficial. Finding hidden correlations and connections in textual material is a significant advantage. Using network text analysis tools, librarians can improve knowledge discovery, obtain deeper insights, and support scholars meaningfully, ultimately enhancing the library's services and resources. This menu provides a two-way relationship instead of the general network of relationships to enhance the co-word analysis. Since it is based on ARM, you may obtain transactional data information using this menu. Please name the column in your file 'Keyword' instead.")
|
100 |
+
st.divider()
|
101 |
+
st.write('π‘ The idea came from this:')
|
102 |
+
st.write('Munan Li (2016): An exploration to visualise the emerging trends of technology foresight based on an improved technique of co-word analysis and relevant literature data of WOS, Technology Analysis & Strategic Management, DOI: 10.1080/09537325.2016.1220518')
|
103 |
+
st.write('Agrawal, R., ImieliΕski, T., & Swami, A. (1993). Mining association rules between sets of items in large databases. In ACM SIGMOD Record (Vol. 22, Issue 2, pp. 207β216). Association for Computing Machinery (ACM). https://doi.org/10.1145/170036.170072')
|
104 |
+
|
105 |
+
with tab2:
|
106 |
+
st.text("1. Put your file.")
|
107 |
+
st.text("2. Choose your preferable method. Picture below may help you to choose wisely.")
|
108 |
+
st.markdown("![Source: https://studymachinelearning.com/stemming-and-lemmatization/](https://studymachinelearning.com/wp-content/uploads/2019/09/stemmin_lemm_ex-1.png)")
|
109 |
+
st.text('Source: https://studymachinelearning.com/stemming-and-lemmatization/')
|
110 |
+
st.text("3. Choose the value of Support and Confidence. If you're not sure how to use it please read the article above or just try it!")
|
111 |
+
st.text("4. You can see the table and a simple visualization before making a network visualization.")
|
112 |
+
st.text('5. Click "Generate network visualization" to see the network')
|
113 |
+
st.error("The more data on your table, the more you'll see on network.", icon="π¨")
|
114 |
+
st.error("If the table contains many rows, the network will take more time to process. Please use it efficiently.", icon="β")
|
115 |
+
|
116 |
+
with tab3:
|
117 |
+
st.text("""
|
118 |
+
+----------------+------------------------+---------------------------------+
|
119 |
+
| Source | File Type | Column |
|
120 |
+
+----------------+------------------------+---------------------------------+
|
121 |
+
| Scopus | Comma-separated values | Author Keywords |
|
122 |
+
| | (.csv) | Index Keywords |
|
123 |
+
+----------------+------------------------+---------------------------------+
|
124 |
+
| Web of Science | Tab delimited file | Author Keywords |
|
125 |
+
| | (.txt) | Keywords Plus |
|
126 |
+
+----------------+------------------------+---------------------------------+
|
127 |
+
| Other | .csv | Change your column to 'Keyword' |
|
128 |
+
| | | and separate the words with ';' |
|
129 |
+
+----------------+------------------------+---------------------------------+
|
130 |
+
""")
|
131 |
+
|
132 |
+
elif option == 'Sunburst':
|
133 |
+
tab1, tab2, tab3 = st.tabs(["Prologue", "Steps", "Requirements"])
|
134 |
+
with tab1:
|
135 |
+
st.write("Sunburst's ability to present a thorough and intuitive picture of complex hierarchical data is an essential benefit. Librarians can easily browse and grasp the relationships between different levels of the hierarchy by employing sunburst visualizations. Sunburst visualizations can also be interactive, letting librarians and users drill down into certain categories or subcategories for further information. This interactive and visually appealing depiction improves the librarian's understanding of the collection and provides users with an engaging and user-friendly experience, resulting in improved information retrieval and decision-making.")
|
136 |
+
|
137 |
+
with tab2:
|
138 |
+
st.text("1. Put your Scopus CSV file.")
|
139 |
+
st.text("2. You can set the range of years to see how it changed.")
|
140 |
+
st.text("3. The sunburst has 3 levels. The inner circle is the type of data, meanwhile, the middle is the source title and the outer is the year the article was published.")
|
141 |
+
st.text("4. The size of the slice depends on total documents. The average of inner and middle levels is calculated by formula below:")
|
142 |
+
st.code('avg = sum(a * weights) / sum(weights)', language='python')
|
143 |
+
|
144 |
+
with tab3:
|
145 |
+
st.text("""
|
146 |
+
+----------------+------------------------+----------------+
|
147 |
+
| Source | File Type | Column |
|
148 |
+
+----------------+------------------------+----------------+
|
149 |
+
| Scopus | Comma-separated values | (Source title, |
|
150 |
+
| | (.csv) | Document Type, |
|
151 |
+
+----------------+------------------------| Cited by, |
|
152 |
+
| Web of Science | Tab delimited file | Year) |
|
153 |
+
| | (.txt) | |
|
154 |
+
+----------------+------------------------+----------------+
|
155 |
+
""")
|
156 |
+
|
157 |
+
with mt3:
|
158 |
+
st.header('Behind this app')
|
159 |
+
st.subheader('Faizhal Arif Santosa')
|
160 |
+
st.text('Librarian. Polytechnic Institute of Nuclear Technology, National Research and Innovation Agency.')
|
161 |
+
st.text('')
|
162 |
+
st.subheader('Crissandra George')
|
163 |
+
st.text('Digital Collections Manager Librarian. Case Western Reserve University.')
|
164 |
+
st.text('')
|
165 |
+
st.divider()
|
166 |
+
st.header('Advisor')
|
167 |
+
st.subheader('Dr. Manika Lamba')
|
168 |
+
st.text('Elected Standing Committee Member & Chair of Professional Development Sub-Committee at IFLA STL Section | Editor-in-Chief for IJLIS (IGI Global).')
|
169 |
+
st.text('')
|
170 |
+
st.text('')
|
171 |
+
st.divider()
|
172 |
+
st.text('If you want to take a part, please let us know!')
|