From bf3b6c5a6328557db909a276d3fd9a52d02fdf45 Mon Sep 17 00:00:00 2001 From: Anudev S Date: Wed, 29 Jan 2025 17:02:55 +0530 Subject: [PATCH 01/24] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9930604..cc7ac1a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ # internship_sC This contains the work progress by the interns and discussion for different tasks. +Name : Anudev From 023784c87aa4cc188972c7eef4c5fee8a45cc62c Mon Sep 17 00:00:00 2001 From: Anudev S Date: Wed, 29 Jan 2025 17:03:14 +0530 Subject: [PATCH 02/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cc7ac1a..f978070 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # internship_sC -This contains the work progress by the interns and discussion for different tasks. +This contains the work progress by the interns and discussion for different tasks.\ Name : Anudev From 1b3af88603b4a29d3e04b3299d22e0a9b051c3b3 Mon Sep 17 00:00:00 2001 From: Anudev S Date: Wed, 29 Jan 2025 17:03:29 +0530 Subject: [PATCH 03/24] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index f978070..9930604 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ # internship_sC -This contains the work progress by the interns and discussion for different tasks.\ -Name : Anudev +This contains the work progress by the interns and discussion for different tasks. From d95faa2ebae4cf8c5a43bf9ec06c6ed24fc3e863 Mon Sep 17 00:00:00 2001 From: Anudev S Date: Wed, 29 Jan 2025 17:03:29 +0530 Subject: [PATCH 04/24] Update README.md --- README.md | 3 +-- Text_summarization | 0 2 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 Text_summarization diff --git a/README.md b/README.md index f978070..9930604 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ # internship_sC -This contains the work progress by the interns and discussion for different tasks.\ -Name : Anudev +This contains the work progress by the interns and discussion for different tasks. diff --git a/Text_summarization b/Text_summarization new file mode 100644 index 0000000..e69de29 From 8a2aa169fbf7a8965ba364bf39a42c12e3708b7d Mon Sep 17 00:00:00 2001 From: anudev21 Date: Sun, 2 Feb 2025 12:08:05 +0530 Subject: [PATCH 05/24] text_summarization_updated --- Text_summarization | 0 Text_summarization.md | 55 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) delete mode 100644 Text_summarization create mode 100644 Text_summarization.md diff --git a/Text_summarization b/Text_summarization deleted file mode 100644 index e69de29..0000000 diff --git a/Text_summarization.md b/Text_summarization.md new file mode 100644 index 0000000..3c3cbb4 --- /dev/null +++ b/Text_summarization.md @@ -0,0 +1,55 @@ +Task: Evaluate the functionality of summarization model (https://huggingface.co/facebook/bart-large-cnn). + +Checked through Google Colab https://colab.research.google.com/drive/1q73FJ1Bw0RDqENpnok8pRN1jrtaBk_xn?usp=sharing#scrollTo=6jBQG4fbhmsG\ + +Took two different articles to evaluate the model (https://www.who.int/emergencies/disease-outbreak-news/item/2025-DON550 , https://www.ipcc.ch/report/ar6/wg2/chapter/ccp6/) + +## Install transformers +`!pip install transformers` + +
+ +* Pipeline imported from transformers and model mentioned +* Article pasted + + +`from transformers import pipeline` + +`summarizer = pipeline("summarization", model="facebook/bart-large-cnn")` + +`article = """Situation at a glance +In many countries of the Northern Hemisphere, trends in acute respiratory infections increase at this time of year. These increases are typically caused by seasonal epidemics of respiratory pathogens such as seasonal influenza, respiratory syncytial virus (RSV), and other common respiratory viruses, including human metapneumovirus (hMPV), as well as mycoplasma pneumoniae. Many countries conduct routine surveillance for acute respiratory infections and common respiratory pathogens. Currently, in some countries in the temperate Northern hemisphere, influenza-like illness (ILI) and/or acute respiratory infection (ARI) rates have increased in recent weeks and are above baseline levels, following usual seasonal trends. Seasonal influenza activity is elevated in many countries in the Northern hemisphere. Where surveillance data is available, trends in RSV detections currently vary by region with decreases reported in most regions except in North America. Recently, there has been interest in hMPV cases in China including suggestions of hospitals being overwhelmed. hMPV is a common respiratory virus found to circulate in many countries in winter through to spring, although not all countries routinely test and publish data on trends in hMPV . While some cases can be hospitalized with bronchitis or pneumonia, most people infected with hMPV have mild upper respiratory symptoms similar to the common cold and recover after a few days. Based on data published by China, covering the period up to 29 December 2024, acute respiratory infections have increased during recent weeks and detections of seasonal influenza, rhinovirus, RSV, and hMPV, particularly in northern provinces of China have also increased. The observed increase in respiratory pathogen detections is within the range expected for this time of year during the Northern hemisphere winter. In China, influenza is the most commonly detected respiratory pathogen currently affecting people with acute respiratory infections. WHO is in contact with Chinese health officials and has not received any reports of unusual outbreak patterns. Chinese authorities report that the health care system is not overwhelmed and there have been no emergency declarations or responses triggered. WHO continues to monitor respiratory illnesses at global, regional and country levels through collaborative surveillance systems, and provides updates as needed."""` + +
+ +* Device set to use cpu + + +### Executed using the default parameters. + +`testsumm = summarizer(article, max_length=130, min_length=30 , do_sample=False)`\ +`testsumm[0]['summary_text']` + +### Output +`In some countries in the temperate Northern hemisphere, influenza-like illness (ILI) and/or acute respiratory infection (ARI) rates have increased. These increases are typically caused by seasonal epidemics of respiratory pathogens. These include seasonal influenza, respiratory syncytial virus (RSV), and other common respiratory viruses.` + +``` +From this I noticed that the output only contains the input article's first three lines. + +I changed the parameters and increased both minimum and maximum word length to 70 and 250 respectively. +``` + +### Output +`In some countries in the temperate Northern hemisphere, influenza-like illness (ILI) and/or acute respiratory infection (ARI) rates have increased. These increases are typically caused by seasonal epidemics of respiratory pathogens. These include seasonal influenza, respiratory syncytial virus (RSV), and other common respiratory viruses, including human metapneumovirus (hMPV).` + +It added the next sentence from the article to the previous output. + +
+ +Out of curiosity I took a small paragraph from https://www.ipcc.ch/report/ar6/wg2/chapter/ccp6/ and it's word length is less than the default one. + +### Output +`Your max_length is set to 130, but your input_length is only 120. Since this is a summarization task, where outputs shorter than the input are typically wanted, you might consider decreasing max_length manually, e.g. summarizer('...', max_length=60)` + +From this output, it is evident that the word length of the query article must exceed the specified parameters. + From d82552a1d416479c9473456d2203a2027a09dbfe Mon Sep 17 00:00:00 2001 From: anudev21 Date: Sun, 2 Feb 2025 12:13:21 +0530 Subject: [PATCH 06/24] r_markdown --- R_markdown_on_basic_ml.md | 473 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 473 insertions(+) create mode 100644 R_markdown_on_basic_ml.md diff --git a/R_markdown_on_basic_ml.md b/R_markdown_on_basic_ml.md new file mode 100644 index 0000000..90faeb0 --- /dev/null +++ b/R_markdown_on_basic_ml.md @@ -0,0 +1,473 @@ +--- +title: "Machine Learning on Iris dataset using R" +author: "Anudev" +date: "`r Sys.Date()`" +output: html_document +--- + +```{r setup, include=FALSE} +knitr::opts_chunk$set( + message = FALSE, + warning = FALSE, + fig.align = "center") +``` + +## Introduction + +This R markdown file demonstrate how to build and evaluate two machine learning models using the famous iris data set. + +The models we are going to discuss are:\ + +- Decision tree +- Logistic Regression + +Creating machine learning models usually involves the following processes:\ + +**1.Exploratory data analysis:** Exploring the data to find important patterns and to help out with feature engineering.\ +**2.Feature engineering:** Creating new variables out of existing ones.\ +**3.Handling missing values:** Deciding what to do with missing values in the data.\ +**4.Machine learning:** Creating predictive model.\ +**5.Prediction:** Using machine learning model to make prediction.\ + +Usually steps 1-3 take the longest while actually creating the model takes much less time. For this particular situation we will skip feature engineering and treating missing values as these steps are not necessary with our data, however, with real world data these steps are usually needed and also an important part of the process.\ + +## Load the necessary packages + +First we need to load all the necessary packages that we are going to use for our analysis.\ + +```{r} +library(ggplot2) # Data visualization +library(psych) # Used for correlation visualizations +library(rattle) # Graphing decision trees +library(caret) # Machine learning +``` + +Let's load iris data. This data set is part of the base data sets built-in in **R**, hence, we do not need to load it externally. + +```{r} +#chunk3 +data("iris") +``` + +## Taking a glance at the data {.tabset .tabset-fade} + +Lets check the first 6 rows as well as the summary statistics of our data to get a feel of how the data looks. + +### Head {.unnumbered} + +```{r} +head(iris, n=15) +``` + +### Summary {.unnumbered} + +```{r} +#chunk4 +summary(iris) +``` + +
+ +# Exploratory data analysis {.tabset .tabset-fade} + +Let's do some exploratory data analysis to visually investigate and find patterns and insight into our data. This step can help us understand the data better and prepare us for creating our model later. + +## Correlation matrix + +A correlation matrix is a rectangular array that shows the correlation coefficients between all possible pairs of variables in a data set. Each cell in the matrix represents the correlation between two variables.\ + +Lets create a correlation matrix using the `pairs.panels()` function from the PSYCH package to see how our variables correlate.\ + +```{r} +#chunk5 +pairs.panels( + iris[,1:4], # Our data + scale = TRUE, # Changes the size of the correlation value labels based on strength + hist.col = 'grey85', # Histogram color + bg = c("mediumseagreen","orange2","mediumpurple1")[iris$Species], # Colors of the Species levels. + pch = 21, # The plot characters shape and size. + main = 'Correlation matrix of Iris data') # Title. +``` + +- Here the diagonal boxes represents the histogram of the individual features.  + +- The lower left section represents the scatter plots where each point represents a species of iris flowers, visualizing the relationship between two features. + +- The upper right part section represents correlation coeffcient (from -1 to 1) between features. + +### Explanation of Each Box + +- Histograms: These summarize the distribution of a single feature.\ + +For example, the top-left box shows the histogram of Sepal.Length, representing how frequently certain sepal lengths occur in the dataset. + +- Lower-Left Boxes (Scatter Plots): These plots show the relationships between pairs of features. + +For example, Sepal.Length vs Sepal.Width: The plot in the second row, first column, shows the relationship between the length and width of the sepal. Each point is colored by species. The trend is weak, with points scattered, indicating a low correlation. + +- Upper-Right Boxes (Correlation Coefficients): These numbers measure the strength of the relationship between features + +for example, 0.87 (Sepal.Length vs Petal.Length): A very strong positive correlation and -0.43 (Sepal.Width vs Petal.Length): A moderate negative correlation, meaning that as Sepal.Width increases, Petal.Length tends to decrease. + +
+ +## Sepal width {.unnumbered} + +**Box plot of Sepal width:**\ +(A box plot is a graphical representation of data that displays the distribution through five key summary statistics: minimum, first quartile, median, third quartile, and maximum, often highlighting outliers.) + +```{r} +#chunk6 +ggplot(data = iris, # Load the data + mapping = aes(x = Species, y = Sepal.Width, #Specify X and Y variables + fill = Species)) + # 'fill' color separates our Species levels + geom_boxplot() + # Species that we want a box plots + scale_fill_brewer(palette = 'Dark2') + # Change the color of the box plot + theme_light() + # set light theme + labs(title = 'Box plot of Sepal width for each species' , + x = 'Species' , y = 'Sepal width') # Assign a title, axes name +``` + +From this box plot it can be seen that the *Setosa* species has a higher sepal width median and interquartile range compared to the other two species. In contrast, the *Versicolor* and *Virginica* show quite a bit of overlap with each other in term of their interquartile range. This will make it harder for a machine learning algorithm to distinguish between the two species levels when predicting using this variable. + +
+ +## Sepal length {.unnumbered} + +**Box plot of Sepal length:**\ + +```{r} +#chunk7 +ggplot(data = iris, + mapping = aes(x = Species, y = Sepal.Length, fill = Species)) + + geom_boxplot() + + scale_fill_brewer(palette = 'Dark2') + + theme_light() + + labs(title = 'Box plot of Sepal length for each species', + x = 'Species', y = 'Sepal length') +``` + +The ranges of the three species seem to somewhat overlap on the sepal length variable. However, their medians seem like they differ (at least visually. We don't know if they're statistically significantly different--we could test for this, but it is not necessary for the purposes of this exercise). + +
+ +## Petal width {.unnumbered} + +**Box plot of Petal width:**\ + +```{r} +#chunk8 +ggplot(data = iris, + mapping = aes(x = Species, y = Petal.Width, fill = Species)) + + geom_boxplot() + + scale_fill_brewer(palette = 'Dark2') + + theme_light() + + labs(title = 'Box plot of Petal width for each species', + x = 'Species', y = 'Petal width') +``` + +This box plot seems to indicate quite a difference in petal width between the species. + +
+ +## Petal length {.unnumbered} + +**Box plot of Sepal length:**\ + +```{r} +#chunk9 +ggplot(data = iris, + mapping = aes(x = Species, y = Petal.Length, fill = Species)) + + geom_boxplot() + + scale_fill_brewer(palette = 'Dark2') + + theme_light() + + labs(title = 'Box plot of Petal length for each species', + x = 'Species', y = 'Petal length') +``` + +This plot seems to indicate that the three species vary in terms of interquartile range on petal length. The setosa seems to have a very narrow interquartile range and have quite a lot shorter petal length compared to the other two species. + +
+ +# Data partitioning + +Before we begin to train our machine learning model we need to divide our data set into train and test subset. The train set is used for teaching or "training" our machine learning model how to make predictions with our data, while the test data set is used to test our model on data it has not seen in order to see how it performs.\ + +First, lets set a random seed. This will ensure that we will be able to replicate our results when we rerun our analysis.\ + +```{r} +#chunk10 +set.seed(222) +``` + +Next, we will create train/test partition with `createDataPartition()` from the CARET package. This will split our data through random sampling within our species levels and give us the sampled index.\ + +```{r} +#chunk11 +train_index <- createDataPartition(y = iris$Species, # y = dependent variable. + p = .7, # Species split into 70% training set and 30% testing set + list = FALSE, # Sets results to matrix form + times = 1) # Sets number of partitions to be created, which is 1 in this case +``` + +Now we can split our data into train and test data using the randomly sampled `train_index` that we just formed.\ + +```{r} +#chunk12 +train_data <- iris[train_index,] # Use train_index of iris data set to create train_data +test_data <- iris[-train_index,] # Use whatever the is not in train_index to create test_data +``` + +
+ +# Machine Learning + +It is finally time to create machine learning models in order to predict which category of species (setosa, versicolor, virginica) each iris flower belongs to. + +## **Decision tree** + + **Quick facts:** + +- **Uses:** classification and regression\ +- **How it works:** A decision tree uses input variables to create branches of decisions to ultimately derive a prediction. +- **Pros:** (1) easy to interpret, (2) can handle both numeric and categorical data, (3) good at dealing with outliers, (4) doesn't have assumptions regarding the data (e.g., the data distribution) +- **Cons:** (1) can overfit to train data, (2) susceptible to variance such that small input differences can result in different prediction models + +
+ +Evaluate the Decision tree model with a 10 fold cross validation + +```{r} +#chunk13 +fitControl <- trainControl(method = "cv", number = 10, savePredictions = TRUE) +``` + +
+ +Create a predictor model with `train()` from CARET package. Specify `method = 'rpart'` to run the decision tree model + +```{r} +#chunk14 +# Create model +dt_model <- train(Species ~ ., # Set Y variable followed by '~'. The period indicates to include all variables for prediction. + data = train_data, # Data + method = 'rpart', # Specify SVM model + trControl = fitControl) # Use cross validation +``` + +
+ +Check the predicted accuracy of our decision tree model by running it on resamples of our *train data*. Later we will test the accuracy of the model by running a prediction on our *test data*. + +```{r} +confusionMatrix(dt_model) +``` + +The results here tell us that our average accuracy is 90.48% when testing our data on re samples of our training data. We can also see what was predicted correctly/incorrectly.\ + +
+ +Lets check the importance of each variants + +```{r fig.height=2.5} +#chunk15 +# Create object of importance of our variables +dt_importance <- varImp(dt_model) + +# Create plot of importance of variables +ggplot(data = dt_importance, mapping = aes(x = dt_importance[,1])) + # Data & mapping + geom_boxplot() + # Create box plot + labs(title = "Variable importance: Decision tree model") + # Title + theme_light() # Theme +``` + +This table gives us the importance of each variable in predicting the species + +Now lets plot the decision tree using `fancyRpartPlot()` from the RATTLE package. This will give us clear insight into how the model makes its predictions. + +```{r} +#chunk16 +fancyRpartPlot(dt_model$finalModel, # Accesses the underlying decision tree model + sub = '') # Specifies a subtitle for the plot. +``` + +This decision tree tells us that:\ + +- If petal length is less than 2.6 it is *setosa* +- If petal length is in between 2.6 and 4.8 it is *virginica* +- if petal length is in greater than 4.8 it is *versicolor* + +As we can see petal length was the only variable that was needed to predict the model.\ + +#### Prediction + +Use the created `dt_model` to run a prediction on the test data. + +```{r} +#chunk17 +prediction_dt <- predict(dt_model, test_data) +``` + +Check the proportions of the predictions which are accurate. + +```{r} +#chunk18 +# Generate the prediction table +confusion_matrix <- table(prediction_dt, test_data$Species) %>% # Create prediction table. + prop.table() %>% # Convert table values into proportions instead of counts. + round(2) # Round numbers to 2 significant values. + +accuracy <- sum(diag(confusion_matrix)) / sum(confusion_matrix) # Calculate accuracy + +confusion_matrix # Display the matrix + +accuracy # Display the accuracy +``` + +As we can see, almost 98% of the species classification predicted correctly.\ + +
+ +## **Logistic Regression model** + + **Quick facts:** + +- **Uses:** Binary classification, multi-class classification (via extensions), and probability prediction. +- **How it works:** Logistic Regression maps input features to probabilities using the sigmoid function. It predicts the likelihood of an outcome, and a threshold (commonly 0.5) is applied to make binary predictions. +- **Pros:** (1) Easy to interpret and implement, (2) Computationally efficient for large datasets, (3) Computationally efficient for large datasets. +- **Cons:** (1) Assumes a linear relationship between features and log-odds, (2) Sensitive to outliers, which can skew results, (3) Limited for complex, non-linear data unless extended. + +
+ +### Implementation + +We will create a binary classification problem by grouping the species into "setosa" and "non-setosa". + +#### Create a Binary Variable + +We start by creating a new column in the Iris dataset, called *BinarySpecies.* This column will label a flower as *setosa* if its species is setosa, or *non-setosa* otherwise. + +```{r} +#chunk19 +iris$BinarySpecies <- ifelse(iris$Species == "setosa", "setosa", "non-setosa") # Create a binary species column +``` + +
+ +#### Convert Binary Variable to a Factor + +Logistic regression requires the target variable to be a factor (categorical data). Let’s convert *BinarySpecies* to a factor. + +```{r} +#chunk20 +iris$BinarySpecies <- as.factor(iris$BinarySpecies) +``` + +
+ +#### Add *BinarySpecies* to train_data and test_data based on their row names + +As we already split the data into training data set and testing data set, so we are going to build the logistic model. + +But there is an issue. We need to pass the *BinarySpecies* column to the train and test data set. + +```{r} +#chunk21 +train_data$BinarySpecies <- iris[row.names(train_data), "BinarySpecies"] +test_data$BinarySpecies <- iris[row.names(test_data), "BinarySpecies"] +``` + +
+ +#### Build a Logistic Regression Model + +Now, let’s build the logistic regression model using the `glm()` function. The goal is to predict the *BinarySpecies* column using the flower’s measurements (sepal length, sepal width, petal length, and petal width). + +```{r} +#chunk22 +log_model <- glm(BinarySpecies ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width, # Response variable and predictor variables + data = train_data, + family = binomial) # Assumes a binary outcome +``` + +Here `BinarySpecies` is the response variable (dependent variable), which the outcome being predicted.  It is assumed to be a binary variable (e.g., 0 or 1) because of the `family = binomial` argument. + +
+ +#### View Model Summary + +To see how well the model fits the training data, we use the `summary()` function. + +```{r} +summary(log_model) +``` + +#### Visualizing the Model's Predictions + +We can plot the logistic regression curve for one of the most significant predictors to understand how it distinguishes between "setosa" and "non-setosa." + +```{r} +#chunk23 +ggplot(data = train_data, aes(x = Petal.Length, y = as.numeric(BinarySpecies == "setosa"), color = BinarySpecies)) + # Map Petal.Length to x-axis and binary species to y-axis, coloring by species. + geom_point(size = 3, alpha = 0.7) + # Add scatter points with size and transparency. + stat_smooth(method = "glm", method.args = list(family = "binomial"), color = "blue") + # Add a logistic regression curve in blue. + labs(title = "Logistic Regression Curve for Petal Length", x = "Petal Length", y = "Probability of Being Setosa") + # Add title and axis labels. + theme_minimal() # Apply a minimal theme to the plot. +``` + +Explanation: + +- Blue Curve: Represents the logistic regression model's predicted probability of being classified as "setosa" based on `Petal.Length.` + +- Points: Show actual classifications (1 for "setosa," 0 for "non-setosa"). + +- Trend: A sharp increase in the probability of "setosa" classification is observed as `Petal.Length` increases, which aligns with our understanding of the data. + +
+ +#### Make Predictions on the Test Data + +We use the `predict()` function to generate predictions on the test dataset. + +```{r} +#chunk24 +log_preds <- predict(log_model, test_data, type = "response") +``` + +The `type = "response"` option gives probabilities (values between 0 and 1) for the predicted class. + +
+ +#### Convert Probabilities to Class Labels + +We classify the predictions as *setosa* if the probability is greater than 0.5, and *non-setosa* otherwise. + +```{r} +#chunk25 +log_class <- ifelse(log_preds > 0.5, "setosa", "non-setosa") # Threshold is set at 0.5 to classify predictions as 'setosa' or 'non-setosa' + +log_class <- as.factor(log_class) # Converts the predicted labels to factors for comparison with actual labels. +``` + +
+ +#### Evaluate the Model + +To evaluate the model, we compare the predicted labels with the actual labels in the test dataset using a confusion matrix. + +```{r} +#chunk26 +conf_matrix_log <- table(Predicted = log_class, Actual = test_data$BinarySpecies) # A confusion matrix is created to compare predicted and actual labels. + + +conf_matrix_log +``` + +##### Interpretation + +From the table above table: + +- Predicted as "setosa" and actually "setosa" (True Positives): 30 +- Predicted as "non-setosa" and actually "non-setosa" (True Negatives): 15 +- Predicted as "set osa" but actually "non-setosa" (False Positives): 0 +- Predicted as "non-setosa" but actually "setosa" (False Negatives): 0 \ No newline at end of file From 5b8465200fb3bdabe8cdc8581890e9a924f932fe Mon Sep 17 00:00:00 2001 From: anudev21 Date: Tue, 4 Feb 2025 15:44:43 +0530 Subject: [PATCH 07/24] updated --- ipcc_graph.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 ipcc_graph.py diff --git a/ipcc_graph.py b/ipcc_graph.py new file mode 100644 index 0000000..e69de29 From 02e45b839d051d89f2406fb9c10796fb47884d65 Mon Sep 17 00:00:00 2001 From: anudev21 Date: Mon, 10 Feb 2025 11:40:38 +0530 Subject: [PATCH 08/24] wordlist_update --- README.md | 2 +- wordlist_dictionary/wordlist.py | 101 ++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 wordlist_dictionary/wordlist.py diff --git a/README.md b/README.md index 9930604..a26c85c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # internship_sC -This contains the work progress by the interns and discussion for different tasks. + diff --git a/wordlist_dictionary/wordlist.py b/wordlist_dictionary/wordlist.py new file mode 100644 index 0000000..37318eb --- /dev/null +++ b/wordlist_dictionary/wordlist.py @@ -0,0 +1,101 @@ +import os +import pdfplumber +import nltk +from nltk.corpus import stopwords +from nltk.tokenize import word_tokenize +import yake +import pytesseract + +# Download required NLTK data +nltk.download('stopwords') +nltk.download('punkt') + +def extract_text_from_pdf(pdf_path): + """Extracts text from a PDF using pdfplumber, falls back to OCR if needed.""" + text = "" + with pdfplumber.open(pdf_path) as pdf: + for page in pdf.pages: + page_text = page.extract_text() + if page_text: + text += page_text + " " + else: + # Fallback to OCR if no text is found + img = page.to_image() + text += pytesseract.image_to_string(img) + " " + + if not text.strip(): + print("[ERROR] No text extracted. Your PDF might be image-based.") + + return text.strip() + +def preprocess_text(text): + """Tokenizes text and removes stopwords, numbers, and punctuation.""" + words = word_tokenize(text.lower()) + words = [word for word in words if word.isalnum()] # Remove punctuation + words = [word for word in words if not word.isnumeric()] # Remove numbers + stop_words = set(stopwords.words("english")) + words = [word for word in words if word not in stop_words] + + cleaned_text = " ".join(words) + + if not cleaned_text.strip(): + print("[ERROR] Text was removed during preprocessing.") + + return cleaned_text + +def extract_keywords(text, num_words, phrase_length): + """Extracts keywords using YAKE! with adjustable phrase length.""" + kw_extractor = yake.KeywordExtractor(lan="en", n=phrase_length, top=max(num_words, 10)) + keywords = kw_extractor.extract_keywords(text) + + return [word for word, score in keywords] # Extract only words + +def save_word_list(word_list, output_path): + """Saves the extracted word list to a text file.""" + output_dir = os.path.dirname(output_path) + + # Ensure the directory exists + if output_dir and not os.path.exists(output_dir): + os.makedirs(output_dir) + + with open(output_path, "w", encoding="utf-8") as file: + for word in word_list: + file.write(word + "\n") + + print(f"\n Word list saved to {output_path}") + +def create_word_list(pdf_path, num_words, phrase_length=1, output_path="wordlist.txt"): + """ + Generates a meaningful word list from a PDF file and saves it to a specified text file. + + Parameters: + pdf_path (str): Path to the PDF file. + num_words (int): Number of words/phrases to extract. + phrase_length (int): Number of words per phrase (1 = single words, 2 = bi-grams, etc.) + output_path (str): Full path to the output text file. + """ + text = extract_text_from_pdf(pdf_path) + print("\nExtracted Text Preview:\n", text[:500]) # Debugging: Print first 500 chars + + cleaned_text = preprocess_text(text) + print("\nCleaned Text Preview:\n", cleaned_text[:500]) # Debugging: Print first 500 chars + + word_list = extract_keywords(cleaned_text, num_words, phrase_length) + + if not word_list: + print("[ERROR] No keywords extracted. Try increasing `num_words`.") + else: + save_word_list(word_list, output_path) + + return word_list + +# Example Usage +pdf_file = r"your_file.pdf" +num_words = 100 # Number of words/phrases to extract +phrase_length = 3 # Adjust phrase length: 1 (single words), 2 (bi-grams), 3 (tri-grams), etc. +output_path = r"your_file.txt" # Full path to output file + +word_list = create_word_list(pdf_file, num_words, phrase_length, output_path) + +print("\nHighly Relevant Words Based on PDF Content:") +print(word_list) From c01961cb851f9c952ca69dacd462212fe2f461e7 Mon Sep 17 00:00:00 2001 From: anudev21 Date: Mon, 10 Feb 2025 13:46:22 +0530 Subject: [PATCH 09/24] updated_wordlist --- wordlist_dictionary/wordlist_output.txt | 100 ++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 wordlist_dictionary/wordlist_output.txt diff --git a/wordlist_dictionary/wordlist_output.txt b/wordlist_dictionary/wordlist_output.txt new file mode 100644 index 0000000..026ecba --- /dev/null +++ b/wordlist_dictionary/wordlist_output.txt @@ -0,0 +1,100 @@ +climate +change +arctic +sea +confidence +polar +changes +ice +high +regions +impacts +adaptation +antarctic +risks +indigenous +ocean +warming +risk +impact +marine +species +food +health +global +increased +medium +increase +fisheries +region +future +changing +table +ecosystems +systems +mustonen +permafrost +development +communities +shipping +infrastructure +resources +management +paper +assessment +knowledge +peoples +loss +ecosystem +canada +increases +southern +mar +water +res +fish +projected +areas +local +bering +https +seas +alaska +clim +northern +resilience +coastal +inuit +ford +production +including +subsistence +waters +box +level +nat +accessed +low +expected +response +environmental +responses +mental +productivity +conditions +economic +due +cultural +environ +potential +increasing +terrestrial +extent +temperature +decision +front +north +declines +tourism +policy +planning From 40bc9237e51c19eb40ee926a617d4c686cf59a36 Mon Sep 17 00:00:00 2001 From: anudev21 Date: Tue, 11 Feb 2025 12:31:02 +0530 Subject: [PATCH 10/24] dictionary_updated --- error.log | 2 ++ wordlist_dictionary/dictionary.py | 27 +++++++++++++++++++++++++++ wordlist_dictionary/wordlist.py | 4 ++-- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 error.log create mode 100644 wordlist_dictionary/dictionary.py diff --git a/error.log b/error.log new file mode 100644 index 0000000..9444c40 --- /dev/null +++ b/error.log @@ -0,0 +1,2 @@ +ERROR dict_args.py:413:vallidate_dict requires existing dictionary; no validation +ERROR dict_args.py:413:vallidate_dict requires existing dictionary; no validation diff --git a/wordlist_dictionary/dictionary.py b/wordlist_dictionary/dictionary.py new file mode 100644 index 0000000..4d8b3cb --- /dev/null +++ b/wordlist_dictionary/dictionary.py @@ -0,0 +1,27 @@ +import os +import subprocess + +# input and output file path +wordlist_path = r"C:\Users\ANUDEV\OneDrive\Desktop\wordlist_2.txt" +ditct_path = r"C:\Users\ANUDEV\OneDrive\Desktop\polar_dict.html" + + +# Define amilib command +command = [ + "amilib", "DICT", + "--words", wordlist_path, + "--description", "wikipedia", "wiktionary", # Fetch definitions from Wikipedia & Wiktionary + "--figures", + "--dict", ditct_path, + "--operation", "create" + + ] + +# Run the command +try: + result = subprocess.run(command, check=True, capture_output=True, text=True) + print("Dictionary crated successfully") + print(result.stdout) +except subprocess.CalledProcessError as e: + print("Error executing amilib command!:") + print(e.stderr) diff --git a/wordlist_dictionary/wordlist.py b/wordlist_dictionary/wordlist.py index 37318eb..3891b9d 100644 --- a/wordlist_dictionary/wordlist.py +++ b/wordlist_dictionary/wordlist.py @@ -90,10 +90,10 @@ def create_word_list(pdf_path, num_words, phrase_length=1, output_path="wordlist return word_list # Example Usage -pdf_file = r"your_file.pdf" +pdf_file = r"your_file_path.pdf" num_words = 100 # Number of words/phrases to extract phrase_length = 3 # Adjust phrase length: 1 (single words), 2 (bi-grams), 3 (tri-grams), etc. -output_path = r"your_file.txt" # Full path to output file +output_path = r"output_path.txt" # Full path to output file word_list = create_word_list(pdf_file, num_words, phrase_length, output_path) From 76a271929e4631e3110de15b0041c54bae3d7b19 Mon Sep 17 00:00:00 2001 From: anudev21 Date: Tue, 11 Feb 2025 12:32:15 +0530 Subject: [PATCH 11/24] updated --- wordlist_dictionary/polar_dict.html | 323 ++++++++++++++++++++++++++++ 1 file changed, 323 insertions(+) create mode 100644 wordlist_dictionary/polar_dict.html diff --git a/wordlist_dictionary/polar_dict.html b/wordlist_dictionary/polar_dict.html new file mode 100644 index 0000000..27c67ff --- /dev/null +++ b/wordlist_dictionary/polar_dict.html @@ -0,0 +1,323 @@ +

search term: climate Wikipedia Page

This is an accepted version of this page

This is an accepted version of this page

search term: change Wikipedia Page

Change, Changed or Changing may refer to the below. Other forms are listed at § See also +

+

Change, Changed or Changing may refer to the below. Other forms are listed at § See also +

+

search term: arctic Wikipedia Page

The Arctic (/ˈɑːrktɪk/ or /ˈɑːrtɪk/)[1][Note 1] (from Greek ἄρκτος, 'bear') is a polar region located at the northernmost part of Earth. The Arctic region, from the IERS Reference Meridian travelling east, consists of parts of northern Norway (Nordland, Troms, Finnmark, Svalbard and Jan Mayen), northernmost Sweden (Västerbotten, Norrbotten and Lappland), northern Finland (North Ostrobothnia, Kainuu and Lappi), Russia (Murmansk, Siberia, Nenets Okrug, Novaya Zemlya), the United States (Alaska), Canada (Yukon, Northwest Territories, Nunavut), Danish Realm (Greenland), and northern Iceland (Grímsey and Kolbeinsey), along with the Arctic Ocean and adjacent seas. Land within the Arctic region has seasonally varying snow and ice cover, with predominantly treeless permafrost under the tundra. Arctic seas contain seasonal sea ice in many places. +

The Arctic (/ˈɑːrktɪk/ or /ˈɑːrtɪk/)[1][Note 1] (from Greek ἄρκτος, 'bear') is a polar region located at the northernmost part of Earth. The Arctic region, from the IERS Reference Meridian travelling east, consists of parts of northern Norway (Nordland, Troms, Finnmark, Svalbard and Jan Mayen), northernmost Sweden (Västerbotten, Norrbotten and Lappland), northern Finland (North Ostrobothnia, Kainuu and Lappi), Russia (Murmansk, Siberia, Nenets Okrug, Novaya Zemlya), the United States (Alaska), Canada (Yukon, Northwest Territories, Nunavut), Danish Realm (Greenland), and northern Iceland (Grímsey and Kolbeinsey), along with the Arctic Ocean and adjacent seas. Land within the Arctic region has seasonally varying snow and ice cover, with predominantly treeless permafrost under the tundra. Arctic seas contain seasonal sea ice in many places. +

The Arctic Circle, currently at roughly 66° north of the Equator, defines the boundary of the Arctic seas and lands
+

search term: sea Wikipedia Page

A sea is a large body of salt water. There are particular seas and the sea. The sea commonly refers to the ocean, the interconnected body of seawaters that spans most of Earth. Particular seas are either marginal seas, second-order sections of the oceanic sea (e.g. the Mediterranean Sea), or certain large, nearly landlocked bodies of water. +

A sea is a large body of salt water. There are particular seas and the sea. The sea commonly refers to the ocean, the interconnected body of seawaters that spans most of Earth. Particular seas are either marginal seas, second-order sections of the oceanic sea (e.g. the Mediterranean Sea), or certain large, nearly landlocked bodies of water. +

search term: confidence Wikipedia Page

Confidence is the feeling of belief or trust that a person or thing is reliable.[1] Self-confidence is trust in oneself. Self-confidence involves a positive belief that one can generally accomplish what one wishes to do in the future.[2] Self-confidence is not the same as self-esteem, which is an evaluation of one's worth. Self-confidence is related to self-efficacy—belief in one's ability to accomplish a specific task or goal.[3][4] Confidence can be a self-fulfilling prophecy, as those without it may fail because they lack it, and those with it may succeed because they have it rather than because of an innate ability or skill. +

+

Confidence is the feeling of belief or trust that a person or thing is reliable.[1] Self-confidence is trust in oneself. Self-confidence involves a positive belief that one can generally accomplish what one wishes to do in the future.[2] Self-confidence is not the same as self-esteem, which is an evaluation of one's worth. Self-confidence is related to self-efficacy—belief in one's ability to accomplish a specific task or goal.[3][4] Confidence can be a self-fulfilling prophecy, as those without it may fail because they lack it, and those with it may succeed because they have it rather than because of an innate ability or skill. +

+
Photo captioned "Bashful" in a 1916–1917 yearbook, Sturgeon Bay, Wisconsin
+

search term: polar Wikipedia Page

search term: changes Wikipedia Page

Changes may refer to: +

+

Changes may refer to: +

+

search term: ice Wikipedia Page

Ice is water that is frozen into a solid state, typically forming at or below temperatures of 0 °C, 32 °F, or 273.15 K. It occurs naturally on Earth, on other planets, in Oort cloud objects, and as interstellar ice. As a naturally occurring crystalline inorganic solid with an ordered structure, ice is considered to be a mineral. Depending on the presence of impurities such as particles of soil or bubbles of air, it can appear transparent or a more or less opaque bluish-white color. +

Ice is water that is frozen into a solid state, typically forming at or below temperatures of 0 °C, 32 °F, or 273.15 K. It occurs naturally on Earth, on other planets, in Oort cloud objects, and as interstellar ice. As a naturally occurring crystalline inorganic solid with an ordered structure, ice is considered to be a mineral. Depending on the presence of impurities such as particles of soil or bubbles of air, it can appear transparent or a more or less opaque bluish-white color. +

A picture of ice

search term: high Wikipedia Page

search term: regions Wikipedia Page

In geography, regions, otherwise referred to as areas, zones, lands or territories, are portions of the Earth's surface that are broadly divided by physical characteristics (physical geography), human impact characteristics (human geography), and the interaction of humanity and the environment (environmental geography). Geographic regions and sub-regions are mostly described by their imprecisely defined, and sometimes transitory boundaries, except in human geography, where jurisdiction areas such as national borders are defined in law. More confined or well bounded portions are called locations or places. +

In geography, regions, otherwise referred to as areas, zones, lands or territories, are portions of the Earth's surface that are broadly divided by physical characteristics (physical geography), human impact characteristics (human geography), and the interaction of humanity and the environment (environmental geography). Geographic regions and sub-regions are mostly described by their imprecisely defined, and sometimes transitory boundaries, except in human geography, where jurisdiction areas such as national borders are defined in law. More confined or well bounded portions are called locations or places. +

Map of the world as of 2021
Map of the world as of 2021
+

search term: impacts Wikipedia Page

+The page "Impacts" does not exist. You can create a draft and submit it for review or request that a redirect be created, but consider checking the search results below to see whether the topic is already covered.

+The page "Impacts" does not exist. You can create a draft and submit it for review or request that a redirect be created, but consider checking the search results below to see whether the topic is already covered.

search term: antarctic Wikipedia Page

The Antarctic (/ænˈtɑːrtɪk, -ktɪk/, US also /æntˈɑːrtɪk, -ktɪk/; commonly /æˈnɑːrtɪk/)[Note 1] is a polar region around Earth's South Pole, opposite the Arctic region around the North Pole. +

The Antarctic (/ænˈtɑːrtɪk, -ktɪk/, US also /æntˈɑːrtɪk, -ktɪk/; commonly /æˈnɑːrtɪk/)[Note 1] is a polar region around Earth's South Pole, opposite the Arctic region around the North Pole. +

A map of the Antarctic region, including the Antarctic Convergence and the 60th parallel south
+

search term: risks Wikipedia Page

In simple terms, risk is the possibility of something bad happening.[1] Risk involves uncertainty about the effects/implications of an activity with respect to something that humans value (such as health, well-being, wealth, property or the environment), often focusing on negative, undesirable consequences.[2] Many different definitions have been proposed. One international standard definition of risk is the "effect of uncertainty on objectives".[3] +

In simple terms, risk is the possibility of something bad happening.[1] Risk involves uncertainty about the effects/implications of an activity with respect to something that humans value (such as health, well-being, wealth, property or the environment), often focusing on negative, undesirable consequences.[2] Many different definitions have been proposed. One international standard definition of risk is the "effect of uncertainty on objectives".[3] +

Firefighters are exposed to risks of fire and building collapse during their work.
+

search term: indigenous Wikipedia Page

Indigenous may refer to: +

+

Indigenous may refer to: +

+

search term: ocean Wikipedia Page

The ocean is the body of salt water that covers approximately 70.8% of Earth.[8] In English, the term ocean also refers to any of the large bodies of water into which the world ocean is conventionally divided.[9] The following names describe five different areas of the ocean: Pacific, Atlantic, Indian, Antarctic/Southern, and Arctic.[10][11] The ocean contains 97% of Earth's water[8] and is the primary component of Earth's hydrosphere and is thereby essential to life on Earth. The ocean influences climate and weather patterns, the carbon cycle, and the water cycle by acting as a huge heat reservoir. +

The ocean is the body of salt water that covers approximately 70.8% of Earth.[8] In English, the term ocean also refers to any of the large bodies of water into which the world ocean is conventionally divided.[9] The following names describe five different areas of the ocean: Pacific, Atlantic, Indian, Antarctic/Southern, and Arctic.[10][11] The ocean contains 97% of Earth's water[8] and is the primary component of Earth's hydrosphere and is thereby essential to life on Earth. The ocean influences climate and weather patterns, the carbon cycle, and the water cycle by acting as a huge heat reservoir. +

search term: warming Wikipedia Page

Warming may refer to: +

+

Warming may refer to: +

+

search term: risk Wikipedia Page

In simple terms, risk is the possibility of something bad happening.[1] Risk involves uncertainty about the effects/implications of an activity with respect to something that humans value (such as health, well-being, wealth, property or the environment), often focusing on negative, undesirable consequences.[2] Many different definitions have been proposed. One international standard definition of risk is the "effect of uncertainty on objectives".[3] +

In simple terms, risk is the possibility of something bad happening.[1] Risk involves uncertainty about the effects/implications of an activity with respect to something that humans value (such as health, well-being, wealth, property or the environment), often focusing on negative, undesirable consequences.[2] Many different definitions have been proposed. One international standard definition of risk is the "effect of uncertainty on objectives".[3] +

Firefighters are exposed to risks of fire and building collapse during their work.
+

search term: impact Wikipedia Page

search term: marine Wikipedia Page

Marine is an adjective meaning of or pertaining to the sea or ocean. +

Marine is an adjective meaning of or pertaining to the sea or ocean. +

search term: species Wikipedia Page

A species (pl.: species) is a population of organisms in which any two individuals of the appropriate sexes or mating types can produce fertile offspring, typically by sexual reproduction.[1] It is the basic unit of classification and a taxonomic rank of an organism, as well as a unit of biodiversity. Other ways of defining species include their karyotype, DNA sequence, morphology, behaviour, or ecological niche. In addition, palaeontologists use the concept of the chronospecies since fossil reproduction cannot be examined. The most recent rigorous estimate for the total number of species of eukaryotes is between 8 and 8.7 million.[2][3][4] About 14% of these had been described by 2011.[4] All species (except viruses) are given a two-part name, called a "binomial". The first part of a binomial is the genus to which the species belongs. The second part is called the specific name or the specific epithet (in botanical nomenclature, also sometimes in zoological nomenclature). For example, Boa constrictor is one of the species of the genus Boa, with constrictor being the species' epithet. +

A species (pl.: species) is a population of organisms in which any two individuals of the appropriate sexes or mating types can produce fertile offspring, typically by sexual reproduction.[1] It is the basic unit of classification and a taxonomic rank of an organism, as well as a unit of biodiversity. Other ways of defining species include their karyotype, DNA sequence, morphology, behaviour, or ecological niche. In addition, palaeontologists use the concept of the chronospecies since fossil reproduction cannot be examined. The most recent rigorous estimate for the total number of species of eukaryotes is between 8 and 8.7 million.[2][3][4] About 14% of these had been described by 2011.[4] All species (except viruses) are given a two-part name, called a "binomial". The first part of a binomial is the genus to which the species belongs. The second part is called the specific name or the specific epithet (in botanical nomenclature, also sometimes in zoological nomenclature). For example, Boa constrictor is one of the species of the genus Boa, with constrictor being the species' epithet. +

LifeDomainKingdomPhylumClassOrderFamilyGenusSpecies
The hierarchy of biological classification's eight major taxonomic ranks. A genus contains one or more species. Minor intermediate ranks are not shown.
+

search term: food Wikipedia Page

Food is any substance consumed by an organism for nutritional support. Food is usually of plant, animal, or fungal origin and contains essential nutrients such as carbohydrates, fats, proteins, vitamins, or minerals. The substance is ingested by an organism and assimilated by the organism's cells to provide energy, maintain life, or stimulate growth. Different species of animals have different feeding behaviours that satisfy the needs of their metabolisms and have evolved to fill a specific ecological niche within specific geographical contexts. +

Food is any substance consumed by an organism for nutritional support. Food is usually of plant, animal, or fungal origin and contains essential nutrients such as carbohydrates, fats, proteins, vitamins, or minerals. The substance is ingested by an organism and assimilated by the organism's cells to provide energy, maintain life, or stimulate growth. Different species of animals have different feeding behaviours that satisfy the needs of their metabolisms and have evolved to fill a specific ecological niche within specific geographical contexts. +

Table set with red meat, bread, pasta, vegetables, fruit, fish, and beans
Display of various foods
+

search term: health Wikipedia Page

Health has a variety of definitions, which have been used for different purposes over time. In general, it refers to physical and emotional well-being, especially that associated with normal functioning of the human body, absent of disease, pain (including mental pain), or injury. +

Health has a variety of definitions, which have been used for different purposes over time. In general, it refers to physical and emotional well-being, especially that associated with normal functioning of the human body, absent of disease, pain (including mental pain), or injury. +

Donald Henderson as part of the CDC's smallpox eradication team in 1966
+

search term: global Wikipedia Page

Global means of or referring to a globe and may also refer to: +

+

Global means of or referring to a globe and may also refer to: +

+

search term: increased Wikipedia Page

+The page "Increased" does not exist. You can create a draft and submit it for review or request that a redirect be created, but consider checking the search results below to see whether the topic is already covered.

+The page "Increased" does not exist. You can create a draft and submit it for review or request that a redirect be created, but consider checking the search results below to see whether the topic is already covered.

search term: medium Wikipedia Page

search term: increase Wikipedia Page

Increase may refer to: +

+

Increase may refer to: +

+

search term: fisheries Wikipedia Page

Fishery can mean either the enterprise of raising or harvesting fish and other aquatic life[1] or, more commonly, the site where such enterprise takes place (a.k.a., fishing grounds).[2] Commercial fisheries include wild fisheries and fish farms, both in freshwater waterbodies (about 10% of all catch) and the oceans (about 90%). About 500 million people worldwide are economically dependent on fisheries. 171 million tonnes of fish were produced in 2016, but overfishing is an increasing problem, causing declines in some populations. +

Fishery can mean either the enterprise of raising or harvesting fish and other aquatic life[1] or, more commonly, the site where such enterprise takes place (a.k.a., fishing grounds).[2] Commercial fisheries include wild fisheries and fish farms, both in freshwater waterbodies (about 10% of all catch) and the oceans (about 90%). About 500 million people worldwide are economically dependent on fisheries. 171 million tonnes of fish were produced in 2016, but overfishing is an increasing problem, causing declines in some populations. +

Salmon spawn in a salmon fishery within the Becharof Wilderness in Southwest Alaska.
+

search term: region Wikipedia Page

In geography, regions, otherwise referred to as areas, zones, lands or territories, are portions of the Earth's surface that are broadly divided by physical characteristics (physical geography), human impact characteristics (human geography), and the interaction of humanity and the environment (environmental geography). Geographic regions and sub-regions are mostly described by their imprecisely defined, and sometimes transitory boundaries, except in human geography, where jurisdiction areas such as national borders are defined in law. More confined or well bounded portions are called locations or places. +

In geography, regions, otherwise referred to as areas, zones, lands or territories, are portions of the Earth's surface that are broadly divided by physical characteristics (physical geography), human impact characteristics (human geography), and the interaction of humanity and the environment (environmental geography). Geographic regions and sub-regions are mostly described by their imprecisely defined, and sometimes transitory boundaries, except in human geography, where jurisdiction areas such as national borders are defined in law. More confined or well bounded portions are called locations or places. +

Map of the world as of 2021
Map of the world as of 2021
+

search term: future Wikipedia Page

The future is the time after the past and present. Its arrival is considered inevitable due to the existence of time and the laws of physics. Due to the apparent nature of reality and the unavoidability of the future, everything that currently exists and will exist can be categorized as either permanent, meaning that it will exist forever, or temporary, meaning that it will end.[1] In the Occidental view, which uses a linear conception of time, the future is the portion of the projected timeline that is anticipated to occur.[2] In special relativity, the future is considered absolute future, or the future light cone.[3] +

The future is the time after the past and present. Its arrival is considered inevitable due to the existence of time and the laws of physics. Due to the apparent nature of reality and the unavoidability of the future, everything that currently exists and will exist can be categorized as either permanent, meaning that it will exist forever, or temporary, meaning that it will end.[1] In the Occidental view, which uses a linear conception of time, the future is the portion of the projected timeline that is anticipated to occur.[2] In special relativity, the future is considered absolute future, or the future light cone.[3] +

The Zeitpyramide is an unfinished concrete pyramid. Because a block is only placed every 10 years, it is expected to be completed in 3183.
+

search term: changing Wikipedia Page

Change, Changed or Changing may refer to the below. Other forms are listed at § See also +

+

Change, Changed or Changing may refer to the below. Other forms are listed at § See also +

+

search term: table Wikipedia Page

search term: ecosystems Wikipedia Page

An ecosystem (or ecological system) is a system formed by organisms in interaction with their environment.[2]: 458  The biotic and abiotic components are linked together through nutrient cycles and energy flows. +

An ecosystem (or ecological system) is a system formed by organisms in interaction with their environment.[2]: 458  The biotic and abiotic components are linked together through nutrient cycles and energy flows. +

Rainforest ecosystems are rich in biodiversity. This is the Gambia River in Senegal's Niokolo-Koba National Park.
+

search term: systems Wikipedia Page

A system is a group of interacting or interrelated elements that act according to a set of rules to form a unified whole.[1] A system, surrounded and influenced by its environment, is described by its boundaries, structure and purpose and is expressed in its functioning. Systems are the subjects of study of systems theory and other systems sciences. +

A system is a group of interacting or interrelated elements that act according to a set of rules to form a unified whole.[1] A system, surrounded and influenced by its environment, is described by its boundaries, structure and purpose and is expressed in its functioning. Systems are the subjects of study of systems theory and other systems sciences. +

Systems can be isolated, closed, or open.
+

search term: mustonen Wikipedia Page

Mustonen is a Finnish surname. Notable people with the surname include: +

+

Mustonen is a Finnish surname. Notable people with the surname include: +

+

search term: permafrost Wikipedia Page

Permafrost (from perma- 'permanent' and frost) is soil or underwater sediment which continuously remains below 0 °C (32 °F) for two years or more: the oldest permafrost has been continuously frozen for around 700,000 years.[1] Whilst the shallowest permafrost has a vertical extent of below a meter (3 ft), the deepest is greater than 1,500 m (4,900 ft).[2] Similarly, the area of individual permafrost zones may be limited to narrow mountain summits or extend across vast Arctic regions.[3] The ground beneath glaciers and ice sheets is not usually defined as permafrost, so on land, permafrost is generally located beneath a so-called active layer of soil which freezes and thaws depending on the season.[4] +

Permafrost (from perma- 'permanent' and frost) is soil or underwater sediment which continuously remains below 0 °C (32 °F) for two years or more: the oldest permafrost has been continuously frozen for around 700,000 years.[1] Whilst the shallowest permafrost has a vertical extent of below a meter (3 ft), the deepest is greater than 1,500 m (4,900 ft).[2] Similarly, the area of individual permafrost zones may be limited to narrow mountain summits or extend across vast Arctic regions.[3] The ground beneath glaciers and ice sheets is not usually defined as permafrost, so on land, permafrost is generally located beneath a so-called active layer of soil which freezes and thaws depending on the season.[4] +

search term: development Wikipedia Page

Development or developing may refer to: +

+

Development or developing may refer to: +

+

search term: communities Wikipedia Page

A community is a social unit (a group of people) with a shared socially-significant characteristic, such as place, set of norms, culture, religion, values, customs, or identity. Communities may share a sense of place situated in a given geographical area (e.g. a country, village, town, or neighborhood) or in virtual space through communication platforms. Durable good relations that extend beyond immediate genealogical ties also define a sense of community, important to people's identity, practice, and roles in social institutions such as family, home, work, government, TV network,[clarification needed] society, or humanity at large.[1] Although communities are usually small relative to personal social ties, "community" may also refer to large-group affiliations such as national communities, international communities, and virtual communities.[2] +

A community is a social unit (a group of people) with a shared socially-significant characteristic, such as place, set of norms, culture, religion, values, customs, or identity. Communities may share a sense of place situated in a given geographical area (e.g. a country, village, town, or neighborhood) or in virtual space through communication platforms. Durable good relations that extend beyond immediate genealogical ties also define a sense of community, important to people's identity, practice, and roles in social institutions such as family, home, work, government, TV network,[clarification needed] society, or humanity at large.[1] Although communities are usually small relative to personal social ties, "community" may also refer to large-group affiliations such as national communities, international communities, and virtual communities.[2] +

Community townhall
+

search term: shipping Wikipedia Page

Freight transport, also referred to as freight forwarding, is the physical process of transporting commodities and merchandise goods and cargo.[1] The term shipping originally referred to transport by sea but in American English, it has been extended to refer to transport by land or air (International English: "carriage") as well. "Logistics", a term borrowed from the military environment, is also used in the same sense. +

+

Freight transport, also referred to as freight forwarding, is the physical process of transporting commodities and merchandise goods and cargo.[1] The term shipping originally referred to transport by sea but in American English, it has been extended to refer to transport by land or air (International English: "carriage") as well. "Logistics", a term borrowed from the military environment, is also used in the same sense. +

+
This map of shipping routes illustrates the relative density of commercial shipping in the world's oceans.
+

search term: infrastructure Wikipedia Page

Infrastructure is the set of facilities and systems that serve a country, city, or other area,[1] and encompasses the services and facilities necessary for its economy, households and firms to function.[2] Infrastructure is composed of public and private physical structures such as roads, railways, bridges, airports, public transit systems, tunnels, water supply, sewers, electrical grids, and telecommunications (including Internet connectivity and broadband access). In general, infrastructure has been defined as "the physical components of interrelated systems providing commodities and services essential to enable, sustain, or enhance societal living conditions" and maintain the surrounding environment.[3] +

Infrastructure is the set of facilities and systems that serve a country, city, or other area,[1] and encompasses the services and facilities necessary for its economy, households and firms to function.[2] Infrastructure is composed of public and private physical structures such as roads, railways, bridges, airports, public transit systems, tunnels, water supply, sewers, electrical grids, and telecommunications (including Internet connectivity and broadband access). In general, infrastructure has been defined as "the physical components of interrelated systems providing commodities and services essential to enable, sustain, or enhance societal living conditions" and maintain the surrounding environment.[3] +

San Francisco Ferry Building, The Embarcadero, and the Bay Bridge at night, all examples of infrastructure
+

search term: resources Wikipedia Page

Resource refers to all the materials available in our environment which are technologically accessible, economically feasible and culturally sustainable and help us to satisfy our needs and wants. Resources can broadly be classified according to their availability as renewable or national and international resources. An item may become a resource with technology. The benefits of resource utilization may include increased wealth, proper functioning of a system, or enhanced well. From a human perspective, a regular resource is anything to satisfy human needs and wants.[1][2] +

Resource refers to all the materials available in our environment which are technologically accessible, economically feasible and culturally sustainable and help us to satisfy our needs and wants. Resources can broadly be classified according to their availability as renewable or national and international resources. An item may become a resource with technology. The benefits of resource utilization may include increased wealth, proper functioning of a system, or enhanced well. From a human perspective, a regular resource is anything to satisfy human needs and wants.[1][2] +

Diagram of computer resources
+

search term: management Wikipedia Page

Management (or managing) is the administration of organizations, whether businesses, nonprofit organizations, or a government bodies through business administration, nonprofit management, or the political science sub-field of public administration respectively. It is the process of managing the resources of businesses, governments, and other organizations.

Management (or managing) is the administration of organizations, whether businesses, nonprofit organizations, or a government bodies through business administration, nonprofit management, or the political science sub-field of public administration respectively. It is the process of managing the resources of businesses, governments, and other organizations.

An organization chart for the United States Coast Guard shows the hierarchy of managerial roles in that organization.
+

search term: paper Wikipedia Page

Paper is a thin sheet material produced by mechanically or chemically processing cellulose fibres derived from wood, rags, grasses, herbivore dung, or other vegetable sources in water. Once the water is drained through a fine mesh leaving the fibre evenly distributed on the surface, it can be pressed and dried. +

Paper is a thin sheet material produced by mechanically or chemically processing cellulose fibres derived from wood, rags, grasses, herbivore dung, or other vegetable sources in water. Once the water is drained through a fine mesh leaving the fibre evenly distributed on the surface, it can be pressed and dried. +

Hemp wrapping paper, China, c. 100 BCE
+

search term: assessment Wikipedia Page

Assessment may refer to: +

+

Assessment may refer to: +

+

search term: knowledge Wikipedia Page

Knowledge is an awareness of facts, a familiarity with individuals and situations, or a practical skill. Knowledge of facts, also called propositional knowledge, is often characterized as true belief that is distinct from opinion or guesswork by virtue of justification. While there is wide agreement among philosophers that propositional knowledge is a form of true belief, many controversies focus on justification. This includes questions like how to understand justification, whether it is needed at all, and whether something else besides it is needed. These controversies intensified in the latter half of the 20th century due to a series of thought experiments called Gettier cases that provoked alternative definitions. +

Knowledge is an awareness of facts, a familiarity with individuals and situations, or a practical skill. Knowledge of facts, also called propositional knowledge, is often characterized as true belief that is distinct from opinion or guesswork by virtue of justification. While there is wide agreement among philosophers that propositional knowledge is a form of true belief, many controversies focus on justification. This includes questions like how to understand justification, whether it is needed at all, and whether something else besides it is needed. These controversies intensified in the latter half of the 20th century due to a series of thought experiments called Gettier cases that provoked alternative definitions. +

Coin showing the owl of Athena
The owl of Athena, a symbol of knowledge in the Western world
+

search term: peoples Wikipedia Page

A people is any plurality of persons considered as a whole. Used in politics and law, the term "a people" refers to the collective or community of an ethnic group or nation.[1] The term "the people" refers to the public or common mass of people of a polity.[1] As such it is a concept of human rights law, international law as well as constitutional law, particularly used for claims of popular sovereignty. +

+

A people is any plurality of persons considered as a whole. Used in politics and law, the term "a people" refers to the collective or community of an ethnic group or nation.[1] The term "the people" refers to the public or common mass of people of a polity.[1] As such it is a concept of human rights law, international law as well as constitutional law, particularly used for claims of popular sovereignty. +

+

search term: loss Wikipedia Page

search term: ecosystem Wikipedia Page

An ecosystem (or ecological system) is a system formed by organisms in interaction with their environment.[2]: 458  The biotic and abiotic components are linked together through nutrient cycles and energy flows. +

An ecosystem (or ecological system) is a system formed by organisms in interaction with their environment.[2]: 458  The biotic and abiotic components are linked together through nutrient cycles and energy flows. +

Rainforest ecosystems are rich in biodiversity. This is the Gambia River in Senegal's Niokolo-Koba National Park.
+

search term: canada Wikipedia Page

Canada is a country in North America. Its ten provinces and three territories extend from the Atlantic Ocean to the Pacific Ocean and northward into the Arctic Ocean, making it the world's second-largest country by total area, with the world's longest coastline. Its border with the United States is the world's longest international land border. The country is characterized by a wide range of both meteorologic and geological regions. With a population of just over 41 million people, it has widely varying population densities, with the majority residing in urban areas and large areas of the country being sparsely populated. Canada's capital is Ottawa and its three largest metropolitan areas are Toronto, Montreal, and Vancouver. +

Canada is a country in North America. Its ten provinces and three territories extend from the Atlantic Ocean to the Pacific Ocean and northward into the Arctic Ocean, making it the world's second-largest country by total area, with the world's longest coastline. Its border with the United States is the world's longest international land border. The country is characterized by a wide range of both meteorologic and geological regions. With a population of just over 41 million people, it has widely varying population densities, with the majority residing in urban areas and large areas of the country being sparsely populated. Canada's capital is Ottawa and its three largest metropolitan areas are Toronto, Montreal, and Vancouver. +

A projection of North America with Canada highlighted in green

search term: increases Wikipedia Page

+The page "Increases" does not exist. You can create a draft and submit it for review or request that a redirect be created, but consider checking the search results below to see whether the topic is already covered.

+The page "Increases" does not exist. You can create a draft and submit it for review or request that a redirect be created, but consider checking the search results below to see whether the topic is already covered.

search term: southern Wikipedia Page

Southern may refer to: +

+

Southern may refer to: +

+

search term: mar Wikipedia Page

Mar, mar or MAR may refer to: +

+

Mar, mar or MAR may refer to: +

+

search term: water Wikipedia Page

+ + + + +

+

+ + + + +

+
Edit this at Wikidata

search term: res Wikipedia Page

Res or RES may refer to: +

+

Res or RES may refer to: +

+

search term: fish Wikipedia Page

A fish (pl.: fish or fishes) is an aquatic, anamniotic, gill-bearing vertebrate animal with swimming fins and a hard skull, but lacking limbs with digits. Fish can be grouped into the more basal jawless fish and the more common jawed fish, the latter including all living cartilaginous and bony fish, as well as the extinct placoderms and acanthodians. In a break to the long tradition of grouping all fish into a single class (Pisces), contemporary phylogenetics views fish as a paraphyletic group. +

A fish (pl.: fish or fishes) is an aquatic, anamniotic, gill-bearing vertebrate animal with swimming fins and a hard skull, but lacking limbs with digits. Fish can be grouped into the more basal jawless fish and the more common jawed fish, the latter including all living cartilaginous and bony fish, as well as the extinct placoderms and acanthodians. In a break to the long tradition of grouping all fish into a single class (Pisces), contemporary phylogenetics views fish as a paraphyletic group. +

Bala shark, a bony fish

search term: projected Wikipedia Page

Projected is an American rock supergroup consisting of Sevendust members John Connolly and Vinnie Hornsby, Alter Bridge and Creed drummer Scott Phillips, and former Submersed and current Tremonti guitarist Eric Friedman. The band released their album, Human, in June 2012, before falling into inactivity as members returned to their respective bands in late 2012. The band released their second studio album, the double album, Ignite My Insanity, in July 2017. They reconvened in early 2020 and finished recording their third album in July 2020. +

+

Projected is an American rock supergroup consisting of Sevendust members John Connolly and Vinnie Hornsby, Alter Bridge and Creed drummer Scott Phillips, and former Submersed and current Tremonti guitarist Eric Friedman. The band released their album, Human, in June 2012, before falling into inactivity as members returned to their respective bands in late 2012. The band released their second studio album, the double album, Ignite My Insanity, in July 2017. They reconvened in early 2020 and finished recording their third album in July 2020. +

+

search term: areas Wikipedia Page

Area is the measure of a region's size on a surface. The area of a plane region or plane area refers to the area of a shape or planar lamina, while surface area refers to the area of an open surface or the boundary of a three-dimensional object. Area can be understood as the amount of material with a given thickness that would be necessary to fashion a model of the shape, or the amount of paint necessary to cover the surface with a single coat.[1] It is the two-dimensional analogue of the length of a curve (a one-dimensional concept) or the volume of a solid (a three-dimensional concept). +Two different regions may have the same area (as in squaring the circle); by synecdoche, "area" sometimes is used to refer to the region, as in a "polygonal area". +

Area is the measure of a region's size on a surface. The area of a plane region or plane area refers to the area of a shape or planar lamina, while surface area refers to the area of an open surface or the boundary of a three-dimensional object. Area can be understood as the amount of material with a given thickness that would be necessary to fashion a model of the shape, or the amount of paint necessary to cover the surface with a single coat.[1] It is the two-dimensional analogue of the length of a curve (a one-dimensional concept) or the volume of a solid (a three-dimensional concept). +Two different regions may have the same area (as in squaring the circle); by synecdoche, "area" sometimes is used to refer to the region, as in a "polygonal area". +

search term: local Wikipedia Page

search term: bering Wikipedia Page

search term: https Wikipedia Page

This is an accepted version of this page

This is an accepted version of this page

URL beginning with the HTTPS scheme and the WWW domain name label
+

search term: seas Wikipedia Page

This is a list of seas of the World Ocean, including marginal seas, areas of water, various gulfs, bights, bays, and straits.[2] In many cases it is a matter of tradition for a body of water to be named a sea or a bay, etc., therefore all these types are listed here. Entities called "seas" which are not divisions of the World Ocean are not included in this list, nor are Ocean gyres. +

+

This is a list of seas of the World Ocean, including marginal seas, areas of water, various gulfs, bights, bays, and straits.[2] In many cases it is a matter of tradition for a body of water to be named a sea or a bay, etc., therefore all these types are listed here. Entities called "seas" which are not divisions of the World Ocean are not included in this list, nor are Ocean gyres. +

+
Marginal seas as defined by the International Hydrographic Organization[1]
+

search term: alaska Wikipedia Page

Alaska (/əˈlæskə/ ə-LASS-kə) is a non-contiguous U.S. state on the northwest extremity of North America. Part of the Western United States region, it is one of the two non-contiguous U.S. states, alongside Hawaii. Alaska is also considered to be the northernmost, westernmost, and easternmost (the Aleutian Islands cross the 180th meridian into the eastern hemisphere) state in the United States. It borders the Canadian territory of Yukon and the province of British Columbia to the east. It shares a western maritime border, in the Bering Strait, with Russia's Chukotka Autonomous Okrug. The Chukchi and Beaufort Seas of the Arctic Ocean lie to the north, and the Pacific Ocean lies to the south. Technically, it is a semi-exclave of the U.S., and is the largest exclave in the world. +

Alaska (/əˈlæskə/ ə-LASS-kə) is a non-contiguous U.S. state on the northwest extremity of North America. Part of the Western United States region, it is one of the two non-contiguous U.S. states, alongside Hawaii. Alaska is also considered to be the northernmost, westernmost, and easternmost (the Aleutian Islands cross the 180th meridian into the eastern hemisphere) state in the United States. It borders the Canadian territory of Yukon and the province of British Columbia to the east. It shares a western maritime border, in the Bering Strait, with Russia's Chukotka Autonomous Okrug. The Chukchi and Beaufort Seas of the Arctic Ocean lie to the north, and the Pacific Ocean lies to the south. Technically, it is a semi-exclave of the U.S., and is the largest exclave in the world. +

search term: clim Wikipedia Page

The Common Lisp Interface Manager (CLIM) is a Common Lisp-based programming interface for creating user interfaces, i.e., graphical user interfaces (GUIs). It provides an application programming interface (API) to user interface facilities for the programming language Lisp.[1] It is a fully object-oriented programming user interface management system,[2] using the Common Lisp Object System (CLOS) and is based on the mechanism of stream input and output.[3] There are also facilities for output device independence. It is descended from the GUI system Dynamic Windows[4] of Symbolics' Lisp machines between 1988 and 1993. +

+

The Common Lisp Interface Manager (CLIM) is a Common Lisp-based programming interface for creating user interfaces, i.e., graphical user interfaces (GUIs). It provides an application programming interface (API) to user interface facilities for the programming language Lisp.[1] It is a fully object-oriented programming user interface management system,[2] using the Common Lisp Object System (CLOS) and is based on the mechanism of stream input and output.[3] There are also facilities for output device independence. It is descended from the GUI system Dynamic Windows[4] of Symbolics' Lisp machines between 1988 and 1993. +

+
McCLIM Lisp Listener
+

search term: northern Wikipedia Page

Northern may refer to the following: +

+

Northern may refer to the following: +

+

search term: resilience Wikipedia Page

Resilience, resilient, or resiliency may refer to: +

+

Resilience, resilient, or resiliency may refer to: +

+

search term: coastal Wikipedia Page

A coast – also called the coastline, shoreline, or seashore – is the land next to the sea or the line that forms the boundary between the land and the ocean or a lake.[1][2] Coasts are influenced by the topography of the surrounding landscape, as well as by water induced erosion, such as waves. The geological composition of rock and soil dictates the type of shore that is created. Earth contains roughly 620,000 km (390,000 mi) of coastline. +

A coast – also called the coastline, shoreline, or seashore – is the land next to the sea or the line that forms the boundary between the land and the ocean or a lake.[1][2] Coasts are influenced by the topography of the surrounding landscape, as well as by water induced erosion, such as waves. The geological composition of rock and soil dictates the type of shore that is created. Earth contains roughly 620,000 km (390,000 mi) of coastline. +

Sunrise on the Jersey Shore coastline at Spring Lake, New Jersey, U.S.
+

search term: inuit Wikipedia Page

Inuit[a] are a group of culturally and historically similar Indigenous peoples traditionally inhabiting the Arctic and Subarctic regions of North America, including Greenland, Labrador, Quebec, Nunavut, the Northwest Territories, Yukon (traditionally[b]), Alaska, and Chukotsky District of Chukotka Autonomous Okrug, Russia. Inuit languages are part of the Eskimo–Aleut languages, also known as Inuit-Yupik-Unangan, and also as Eskaleut.[9] Inuit Sign Language is a critically endangered language isolate used in Nunavut.[10] +

Inuit[a] are a group of culturally and historically similar Indigenous peoples traditionally inhabiting the Arctic and Subarctic regions of North America, including Greenland, Labrador, Quebec, Nunavut, the Northwest Territories, Yukon (traditionally[b]), Alaska, and Chukotsky District of Chukotka Autonomous Okrug, Russia. Inuit languages are part of the Eskimo–Aleut languages, also known as Inuit-Yupik-Unangan, and also as Eskaleut.[9] Inuit Sign Language is a critically endangered language isolate used in Nunavut.[10] +

Dorset, Norse, and Thule cultures 900–1500
+

search term: ford Wikipedia Page

Ford commonly refers to: +

+

Ford commonly refers to: +

+

search term: production Wikipedia Page

Production may refer to: +

+

Production may refer to: +

+

search term: including Wikipedia Page

Inclusion or Include may refer to: +

+

Inclusion or Include may refer to: +

+

search term: subsistence Wikipedia Page

A subsistence economy is an economy directed to basic subsistence (the provision of food, clothing and shelter) rather than to the market. +

+

A subsistence economy is an economy directed to basic subsistence (the provision of food, clothing and shelter) rather than to the market. +

+

search term: waters Wikipedia Page

search term: box Wikipedia Page

This is an accepted version of this page

This is an accepted version of this page

An upright rectangular wooden box with a hinged lid, clasp fastenings and a handle
A wooden box with a hinged lid
+

search term: level Wikipedia Page

Level or levels may refer to: +

+

Level or levels may refer to: +

+

search term: nat Wikipedia Page

Nat or NAT may refer to: +

+

Nat or NAT may refer to: +

+

search term: accessed Wikipedia Page

search term: low Wikipedia Page

Low or LOW or lows, may refer to: +

+

Low or LOW or lows, may refer to: +

+

search term: expected Wikipedia Page

Expected may refer to: +

+

Expected may refer to: +

+

search term: response Wikipedia Page

Response may refer to: +

+

Response may refer to: +

+

search term: environmental Wikipedia Page

Environment most often refers to: +

+

Environment most often refers to: +

+

search term: responses Wikipedia Page

Response may refer to: +

+

Response may refer to: +

+

search term: mental Wikipedia Page

search term: productivity Wikipedia Page

Prescriptive and policy +

+

Prescriptive and policy +

+
Labour productivity levels in 2012 in Europe. OECD
+

search term: conditions Wikipedia Page

Condition or conditions may refer to: +

+

Condition or conditions may refer to: +

+

search term: economic Wikipedia Page

Prescriptive and policy +

+

Prescriptive and policy +

+
Gross domestic product per capita of countries (2024, PPP)
  •   >$60,000
  •   $50,000 – $60,000
  •   $40,000 – $50,000
  •   $30,000 – $40,000
  •   $20,000 – $30,000
  •   $10,000 – $20,000
  •   $5,000 – $10,000
  •   $2,500 – $5,000
  •   $1,000 – $2,500
  •   <$1,000
  •   No data
+

search term: due Wikipedia Page

Due or DUE may refer to: +

+

Due or DUE may refer to: +

+

search term: cultural Wikipedia Page

Culture (/ˈkʌlər/ KUL-chər) is a concept that encompasses the social behavior, institutions, and norms found in human societies, as well as the knowledge, beliefs, arts, laws, customs, capabilities, attitudes, and habits of the individuals in these groups.[1] Culture often originates from or is attributed to a specific region or location. +

Culture (/ˈkʌlər/ KUL-chər) is a concept that encompasses the social behavior, institutions, and norms found in human societies, as well as the knowledge, beliefs, arts, laws, customs, capabilities, attitudes, and habits of the individuals in these groups.[1] Culture often originates from or is attributed to a specific region or location. +

Human symbolic expression developed as prehistoric humans reached behavioral modernity.
+

search term: environ Wikipedia Page

Environ or environs may refer to: +

+

Environ or environs may refer to: +

+

search term: potential Wikipedia Page

Potential generally refers to a currently unrealized ability. The term is used in a wide variety of fields, from physics to the social sciences to indicate things that are in a state where they are able to change in ways ranging from the simple release of energy by objects to the realization of abilities in people. +

Potential generally refers to a currently unrealized ability. The term is used in a wide variety of fields, from physics to the social sciences to indicate things that are in a state where they are able to change in ways ranging from the simple release of energy by objects to the realization of abilities in people. +

search term: increasing Wikipedia Page

In mathematics, a monotonic function (or monotone function) is a function between ordered sets that preserves or reverses the given order.[1][2][3] This concept first arose in calculus, and was later generalized to the more abstract setting of order theory. +

+

In mathematics, a monotonic function (or monotone function) is a function between ordered sets that preserves or reverses the given order.[1][2][3] This concept first arose in calculus, and was later generalized to the more abstract setting of order theory. +

+
Figure 1. A monotonically non-decreasing function
+

search term: terrestrial Wikipedia Page

Terrestrial refers to things related to land or the planet Earth, as opposed to extraterrestrial. +

Terrestrial refers to things related to land or the planet Earth, as opposed to extraterrestrial. +

search term: extent Wikipedia Page

search term: temperature Wikipedia Page

Temperature is a physical quantity that quantitatively expresses the attribute of hotness or coldness. Temperature is measured with a thermometer. It reflects the average kinetic energy of the vibrating and colliding atoms making up a substance. +

Temperature is a physical quantity that quantitatively expresses the attribute of hotness or coldness. Temperature is measured with a thermometer. It reflects the average kinetic energy of the vibrating and colliding atoms making up a substance. +

search term: decision Wikipedia Page

Decision may refer to: +

+

Decision may refer to: +

+

search term: front Wikipedia Page

search term: north Wikipedia Page

North is one of the four compass points or cardinal directions. It is the opposite of south and is perpendicular to east and west. North is a noun, adjective, or adverb indicating direction or geography. +

+

North is one of the four compass points or cardinal directions. It is the opposite of south and is perpendicular to east and west. North is a noun, adjective, or adverb indicating direction or geography. +

+
A 16-point compass rose with north highlighted and at the top
+

search term: declines Wikipedia Page

Decline may refer to: +

+

Decline may refer to: +

+

search term: tourism Wikipedia Page

Tourism is travel for pleasure, and the commercial activity of providing and supporting such travel.[1] UN Tourism defines tourism more generally, in terms which go "beyond the common perception of tourism as being limited to holiday activity only", as people "travelling to and staying in places outside their usual environment for not more than one consecutive year for leisure and not less than 24 hours, business and other purposes".[2] Tourism can be domestic (within the traveller's own country) or international. International tourism has both incoming and outgoing implications on a country's balance of payments. +

Tourism is travel for pleasure, and the commercial activity of providing and supporting such travel.[1] UN Tourism defines tourism more generally, in terms which go "beyond the common perception of tourism as being limited to holiday activity only", as people "travelling to and staying in places outside their usual environment for not more than one consecutive year for leisure and not less than 24 hours, business and other purposes".[2] Tourism can be domestic (within the traveller's own country) or international. International tourism has both incoming and outgoing implications on a country's balance of payments. +

Tourists at the Temple of Apollo, Delphi, Greece
+

search term: policy Wikipedia Page

Policy is a deliberate system of guidelines to guide decisions and achieve rational outcomes. A policy is a statement of intent and is implemented as a procedure or protocol. Policies are generally adopted by a governance body within an organization. Policies can assist in both subjective and objective decision making. Policies used in subjective decision-making usually assist senior management with decisions that must be based on the relative merits of a number of factors, and as a result, are often hard to test objectively, e.g. work–life balance policy. Moreover, governments and other institutions have policies in the form of laws, regulations, procedures, administrative actions, incentives and voluntary practices. Frequently, resource allocations mirror policy decisions. +

Policy is a deliberate system of guidelines to guide decisions and achieve rational outcomes. A policy is a statement of intent and is implemented as a procedure or protocol. Policies are generally adopted by a governance body within an organization. Policies can assist in both subjective and objective decision making. Policies used in subjective decision-making usually assist senior management with decisions that must be based on the relative merits of a number of factors, and as a result, are often hard to test objectively, e.g. work–life balance policy. Moreover, governments and other institutions have policies in the form of laws, regulations, procedures, administrative actions, incentives and voluntary practices. Frequently, resource allocations mirror policy decisions. +

Example of the policy cycle concept
+

search term: planning Wikipedia Page

Planning is the process of thinking regarding the activities required to achieve a desired goal. Planning is based on foresight, the fundamental capacity for mental time travel. Some researchers regard the evolution of forethought - the capacity to think ahead - as a prime mover in human evolution.[1] +Planning is a fundamental property of intelligent behavior.[citation needed] It involves the use of logic and imagination to visualize not only a desired result, but the steps necessary to achieve that result. +

Planning is the process of thinking regarding the activities required to achieve a desired goal. Planning is based on foresight, the fundamental capacity for mental time travel. Some researchers regard the evolution of forethought - the capacity to think ahead - as a prime mover in human evolution.[1] +Planning is a fundamental property of intelligent behavior.[citation needed] It involves the use of logic and imagination to visualize not only a desired result, but the steps necessary to achieve that result. +

The striatum; part of the basal ganglia; neural pathways between the striatum and the frontal lobe have been implicated in planning function.
+

\ No newline at end of file From bef443d8f1b7ddf08004abdc3af34ffdda671687 Mon Sep 17 00:00:00 2001 From: anudev21 Date: Mon, 17 Feb 2025 13:15:04 +0530 Subject: [PATCH 12/24] graph_updated --- __pycache__/generate_graph.cpython-312.pyc | Bin 0 -> 5978 bytes error.log | 1 + generate_graph.py | 138 ++++++++++ graph_viewer.html | 26 ++ ipcc_graph.py | 73 ++++++ output/ipcc_structure.svg | 292 +++++++++++++++++++++ output/syr_report.svg | 214 +++++++++++++++ syr_graph.py | 56 ++++ 8 files changed, 800 insertions(+) create mode 100644 __pycache__/generate_graph.cpython-312.pyc create mode 100644 generate_graph.py create mode 100644 graph_viewer.html create mode 100644 output/ipcc_structure.svg create mode 100644 output/syr_report.svg create mode 100644 syr_graph.py diff --git a/__pycache__/generate_graph.cpython-312.pyc b/__pycache__/generate_graph.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2b510433d37e95ae1a3c1a1143a197d594255849 GIT binary patch literal 5978 zcmbVQU2NOd6(&VdqW)q#jveQpcHPEo8#}45uIIWYcbF%!dUJ8xYy^`rtq(V}5 zq{u)X@}L04;y%S|JHS|r!9z13*!qyiZm)ZZ>jv@I49KuzK(H6LF3_P*JLgiACC4q= zT|t-RJwNyNeCM3|w?rb!LAmhnKV>#GbKJl1!!NnjxRNIE*q`)#+yX zP8umaPpB;unpX3=BcD7oG{h7gJ$q2TG<@=;%w}lIV|hnbb={n@<-AQTTXsyZXDX-i zwqs^1jGo?Sqw-1u zcZ82Bay(c1!Ez%XVcfNohURFh zt`%XS)zyuuoF3U6o1iI2p3OQEBV`;GF)b5T}^&GV_c3<@iH5+P{%3Zc&DSh$? zzME;;8K>S}cw2#NSj@bW%R5PL_kEeutg&(=>V)Mk|43*y9vh`zo243W5zX@Tysj2N zKO8j+W}=x!ovKwyu$hoI05_D%Ta%Qa71=pmGpLQP6}4{AFbQ?TRM)kfO+iT0bxPcb zu4TrZj71BI;EMLRnxpV=3OYPerfymzO3=cMa7A`(-5{=`8$)eLola8SR)TKOrg|E> zfc0_{b<1KQZrHf5xMJVFN&7DU%uXHCOwI6yt)=YC=V*4noK+{l^m3MoTX)$`B{jpL zmSK-;xyxs1%Cv}md9^8N4_(esgIcOXlWb(&xq>StK}vIy$zt1Zy|s7ylsJy(B2?G8 zuQzh7J7&+%@A<6da5?yPbV-Weir$RgYPi`jCzTsMla$()Ft&8nw9JO)w7XY7xrXiM zmbUFE2OmgnE1;PhNuh!IrE09dhZB68D~Z-FFe;x~^PH$2_|?XeNUG*c0!1JgJmIH9 zrO^61N_;=?5Meq@g3}Tarz0dZ9d)W^PQs;dDOw5@C5|gXs}B{^u^Jw!B(2L6ui=T5 zBJ1)bN`fVp1OVdL`vHU3xake0AhZNa8%P|-=7jy(IT8P@6!U?@e*$-+p1TyUp>0@0 zOVrRBkQPATVm{07!+TEP{;w$rn&|*Q&V~>9U-LXyXjGcicWdG1C?SY5c<2$Ot9VdB zm;xMpEhXDp5#7X?YEvSE#S)rx#=jqI(26wT+x!JXyOO7}MyTOvX^mRU8)0wQ^QzIK zDe3AM)qTO^8d$tqs5F9Mu^~P!l((uPU8i#hE2^%@7tX$pvjXpDrZli8Z&vGf%P_(3 zwnoP>HT71;GV|atJ(lktL{0^l>a3&Vj7MOreDXLBiBN!mEI^sRmN;`P7W%R$=%k)B zLY47$^uI?k@BRkMlOvg4R{nG32^@5v{@8C`JmQ9uV>%$N5^x2WzZ-H?D?=Tt3AkM; zZ5j^jCSc%{Mx1dsG)@sFN0hL&2^j=nb%m^Y)fK=~xB}pkwGjwb3@W9;YC)zjP6T$> z71>_70<6BLKjbX|5D-A!2%Z>lBZlKf*{j!SjJcFI?9MiHou&-yZ>cpO+ ztG>-{fCjcitCiJ;Op;1S5{L9OHu{upz-KQ*b)EaNjXOLz6MWbxFEq*z8#@;oJLfLW z|9r8r=WhF_jlG}jD~n5=N;&vYYFm)nW;ZWL?aLvqWpg>Q)Y4XtF12nc$Cfs4E62ZR zZk@R@tIU<|<`;JNFKiuHY#uC2j~bh2hGw_=ty=~b8wbncqoz$W=Vo7+-+r%UK^a`w zdStQbm2&8xFZa)$n?Lbs%Yjci%F(~a8kahDmru=1EyQp&X;6XAH}W2ovPtZIx?6LpC`{1E>A0D!Y#wKD)(FXBR9xTbgjL;@v2<4d6m2nj!4 z13*|+S_!H<)`2iDMvy7VP`ToEtZJAkietgS42PWgJgG`QD$Mz~f z!qZ4p2VXTf@+uCD5$oX&KtP9~c7dfqVCHdABZK(5deCKgirHx$Tcru{2p|%IlT`^Y z{*b5G4S8(V^RP7|ieT-ACo^d`h-(Fg&ultUT?IE>nI{vm4j@0~C)P_)+34dc|!A>{}Po`DJ?lUA<1bMCbdVjtW04*vPtLd%eM@Z;Oc$8VjwdFs~bo2O?_&VdP> zx=ZiJPu(jn#!o$dnmTaz`NjBvce)WQ{Zb7{u0soiBtJMDAv_5Xfdub}tFiizkPd;o zK*F`s1xbk%PgFONd0New)NE}`r|g`v#3-x6&ch$PE5LRNoFtsvr^9krxHP;Et6o=R zT3o(Y30UYO*cKt_C6|9`1R5D&9|DTPv(2?}g=BBL5|wVe(6YE=Z8TX&J_~X-CcoFY zVn3Z+owvZ3I5VOS#@n^VwoXt-Kc0+zp$y&-gA+6oOaz3M6bCQ*Q<*qT) z)BzPQjZ>Hs#C|3lAe&$9qX~3X8Do#;(5$^agBKX~$@}*1ogA;1H7BW+hKr>>d0ZoqOw?1ys-ZfJ05beO z`I+>7{H?N0SEoX=W0b%$rs2MezUW`9T&vP?1=v!vfjqma0tw$SL{EEvPi1ZUd%Vr> z$HlE|H0xHjt<*qAQR$GKLJqcE%c>dL1BdU0t69B6?tx>|*uJXa%1#0{9X8_cN? zv=-YcKBG5x@`z~cFqxHp)JYuUcmwbW973Bva8paRdbiEG_ijy`H` zxqaxJL$~|i>7R?v|8%kWa9MiXy!m$DJADtEI~STe=YDb5x!>Hm*xV0Mwv?EGtBl#= z{HFUGx<8Y8FhuVvM;;}bW)z624?Rfq-o3IEPuv>5IlRnm-qN((&28K|6J6#4+oa{5 zEiJLHxh;wKHv+d||Cfik__jy!RxkE=5Pxo2fQD~g2GadR@3%H4)_>X6daPCWYpZx{ zR~YV-Vngg6lg$t^rOAvNIDbqLMn)jQ8nL#6z!P*d3jZ2x9NgWYWhawvG?`>~viKfP zCa-{PRw&_Ql9;Jv(%J%IRxeh4SRKRa5>$WSm_KC;ZD9=0D)fDJ2UIt>F9U)otwa;z z&Xt|*;=z>@e1kan)pH^7DF5}w9&xuPj*^OKokj&GpmHUKc5wI0?!r9Hzd|Y|4wVS6 o-y8IxH3n@MOV~(U7I>cjoNM}=i~NJz{!Qq3fZzQUhc%P^A5ov=!T + + + + + Graph Visualization + + + + + +""") + + if open_in_browser: + webbrowser.open(html_path) \ No newline at end of file diff --git a/graph_viewer.html b/graph_viewer.html new file mode 100644 index 0000000..93123d3 --- /dev/null +++ b/graph_viewer.html @@ -0,0 +1,26 @@ + + + + + + Graph Visualization + + + + + + \ No newline at end of file diff --git a/ipcc_graph.py b/ipcc_graph.py index e69de29..07b2ab5 100644 --- a/ipcc_graph.py +++ b/ipcc_graph.py @@ -0,0 +1,73 @@ +from generate_graph import GraphVizBuilder +if __name__ == "__main__": + # Create an instance for the IPCC structure + ipcc_graph = GraphVizBuilder("IPCC_Structure", rankdir="TB") + # Creating Nodes + ipcc_graph.add_node("IPCC", "IPCC", url="https://www.ipcc.ch/", color="lightyellow") + ipcc_graph.add_node("WG1", "Working Group I", url="https://www.ipcc.ch/working-group/wg1/", parent= "IPCC") + ipcc_graph.add_node("WG2", "Working Group II", url="https://www.ipcc.ch/working-group/wg2/", parent= "IPCC") + ipcc_graph.add_node("WG3", "Working Group III", url="https://www.ipcc.ch/working-group/wg3/", parent= "IPCC") + + #Creating nodes for sub section of working group 1 + ipcc_graph.add_node("SPM1", "Summary for Policymakers", + url="https://www.ipcc.ch/report/ar6/wg1/chapter/summary-for-policymakers/", parent="WG1") + ipcc_graph.add_node("TS1", "Technical Summary", url="https://www.ipcc.ch/report/ar6/wg1/chapter/technical-summary/", + parent="WG1") + ipcc_graph.add_node("FR1", "Full Report", url="https://www.ipcc.ch/report/ar6/wg1/", parent="WG1") + ipcc_graph.add_node("C1", "Chapters", url="https://www.ipcc.ch/report/ar6/wg1/", + color="lightyellow", parent="WG1") # Set a different color + ipcc_graph.add_node("CC1", "Cross Chapters", url="https://www.ipcc.ch/report/ar6/wg1/", color="lightgreen", + parent="WG1") + + # Adding edges of sub section of Working Group 2 + ipcc_graph.add_edge("WG1", "SPM1") + ipcc_graph.add_edge("WG1", "TS1") + ipcc_graph.add_edge("WG1", "FR1") + ipcc_graph.add_edge("WG1", "C1") + ipcc_graph.add_edge("WG1", "CC1") + + + + + #Creating nodes for sub sections of Working Group 2 + ipcc_graph.add_node("SPM2", "Summary for Policymakers", + url="https://www.ipcc.ch/report/ar6/wg2/chapter/summary-for-policymakers/", parent= "WG2") + ipcc_graph.add_node("TS2", "Technical Summary", url="https://www.ipcc.ch/report/ar6/wg2/chapter/technical-summary/", parent= "WG2") + ipcc_graph.add_node("FR2", "Full Report", url="https://www.ipcc.ch/report/ar6/wg2/", parent= "WG2") + ipcc_graph.add_node("C2", "Chapters", url="https://www.ipcc.ch/report/ar6/wg2/", + color="lightyellow", parent= "WG2") # Set a different color + ipcc_graph.add_node("CC2", "Cross Chapters", url="https://www.ipcc.ch/report/ar6/wg2/", color="lightgreen", parent= "WG2") + + + # Adding edges of sub section of Working Group 2 + ipcc_graph.add_edge("WG2", "SPM2") + ipcc_graph.add_edge("WG2", "TS2") + ipcc_graph.add_edge("WG2", "FR2") + ipcc_graph.add_edge("WG2", "C2") + ipcc_graph.add_edge("WG2", "CC2") + + # Creating nodes for sub sections of Working Group 3 + ipcc_graph.add_node("SPM3", "Summary for Policymakers", + url="https://www.ipcc.ch/report/ar6/wg3/chapter/summary-for-policymakers/", parent="WG3") + ipcc_graph.add_node("TS3", "Technical Summary", url="https://www.ipcc.ch/report/ar6/wg3/chapter/technical-summary/", + parent="WG3") + ipcc_graph.add_node("FR3", "Full Report", url="https://www.ipcc.ch/report/ar6/wg3/", parent="WG3") + ipcc_graph.add_node("C3", "Chapters", url="https://www.ipcc.ch/report/ar6/wg3/", + color="lightyellow", parent="WG3") # Set a different color + ipcc_graph.add_node("CC3", "Cross Chapters", url="https://www.ipcc.ch/report/ar6/wg3/", color="lightgreen", + parent="WG3") + + # Adding edges of sub section of Working Group 2 + ipcc_graph.add_edge("WG3", "SPM3") + ipcc_graph.add_edge("WG3", "TS3") + ipcc_graph.add_edge("WG3", "FR3") + ipcc_graph.add_edge("WG3", "C3") + ipcc_graph.add_edge("WG3", "CC3") + + # Adding edges + ipcc_graph.add_edge("IPCC", "WG1") + ipcc_graph.add_edge("IPCC", "WG2", minlen=2) + ipcc_graph.add_edge("IPCC", "WG3") + ipcc_graph.render_graph("ipcc_structure", open_in_browser=True) + + ipcc_graph.balance_graph() diff --git a/output/ipcc_structure.svg b/output/ipcc_structure.svg new file mode 100644 index 0000000..100721d --- /dev/null +++ b/output/ipcc_structure.svg @@ -0,0 +1,292 @@ + + + + + + +IPCC_Structure + + + +IPCC + + +IPCC + + + + + +WG1 + + +Working Group I + + + + + +IPCC->WG1 + + + + + +WG2 + + +Working Group II + + + + + +IPCC->WG2 + + + + + +WG3 + + +Working Group III + + + + + +IPCC->WG3 + + + + + +SPM1 + + +Summary for Policymakers + + + + + +WG1->SPM1 + + + + + +TS1 + + +Technical Summary + + + + + +WG1->TS1 + + + + + +FR1 + + +Full Report + + + + + +WG1->FR1 + + + + + +C1 + + +Chapters + + + + + +WG1->C1 + + + + + +CC1 + + +Cross Chapters + + + + + +WG1->CC1 + + + + + +SPM2 + + +Summary for Policymakers + + + + + +WG2->SPM2 + + + + + +TS2 + + +Technical Summary + + + + + +WG2->TS2 + + + + + +FR2 + + +Full Report + + + + + +WG2->FR2 + + + + + +C2 + + +Chapters + + + + + +WG2->C2 + + + + + +CC2 + + +Cross Chapters + + + + + +WG2->CC2 + + + + + +SPM3 + + +Summary for Policymakers + + + + + +WG3->SPM3 + + + + + +TS3 + + +Technical Summary + + + + + +WG3->TS3 + + + + + +FR3 + + +Full Report + + + + + +WG3->FR3 + + + + + +C3 + + +Chapters + + + + + +WG3->C3 + + + + + +CC3 + + +Cross Chapters + + + + + +WG3->CC3 + + + + + diff --git a/output/syr_report.svg b/output/syr_report.svg new file mode 100644 index 0000000..77a8543 --- /dev/null +++ b/output/syr_report.svg @@ -0,0 +1,214 @@ + + + + + + +SYR_Report + + + +Synthesis Report + + +Synthesis Report + + + + + +About + + +About + + + + + +Synthesis Report->About + + + + + +Report + + +Report + + + + + +Synthesis Report->Report + + + + + +Activities + + +Activities + + + + + +Synthesis Report->Activities + + + + + +First AR + + +First Assesment Report + + + + + +Report->First AR + + + + + +Second AR + + +Second Assesment Report + + + + + +Report->Second AR + + + + + +Third AR + + +Third Assesment Report + + + + + +Report->Third AR + + + + + +Fourth AR + + +Fourth Assesment + + + + + +Report->Fourth AR + + + + + +Fifth AR + + +Fifth Assesment Report + + + + + +Report->Fifth AR + + + + + +Sixth AR + + +Sixth Assesment Report + + + + + +Report->Sixth AR + + + + + +SR + +Special Report + + + +Report->SR + + + + + +CCC + + +Climate Change and Cities + + + + + +SR->CCC + + + + + +CCL + + +Climate Change and Land + + + + + +SR->CCL + + + + + +OC + + +Ocean and Cryosphere + + + + + +SR->OC + + + + + diff --git a/syr_graph.py b/syr_graph.py new file mode 100644 index 0000000..b9c6fe0 --- /dev/null +++ b/syr_graph.py @@ -0,0 +1,56 @@ +from generate_graph import GraphVizBuilder +if __name__ == "__main__": + +# Create an instance for the IPCC structure + syr_graph = GraphVizBuilder("SYR_Report", rankdir="TB") + # Creating Nodes + syr_graph.add_node("Synthesis Report", "Synthesis Report", url="https://www.ipcc.ch/synthesis-report/", color="lightyellow") + syr_graph.add_node("About", "About", url="https://www.ipcc.ch/synthesis-report/#synthesis-report-intro-1", parent= "Synthesis Reprt") + syr_graph.add_node("Report", "Report", url="https://www.ipcc.ch/synthesis-report/#synthesis-report-text-1", color="lightgreen" ,parent= "Synthesis Reprt") + syr_graph.add_node("Activities", "Activities", url="https://www.ipcc.ch/synthesis-report/#synthesis-report-text-2", parent= "Synthesis Reprt") + + #Creating nodes for sub section of Report + syr_graph.add_node("First AR", "First Assesment Report", + url="https://www.ipcc.ch/report/ar1/syr/", parent="Report") + syr_graph.add_node("Second AR", "Second Assesment Report", + url="https://www.ipcc.ch/report/ar2/syr/", parent="Report") + syr_graph.add_node("Third AR", "Third Assesment Report", + url="https://www.ipcc.ch/report/ar3/syr/", parent="Report") + syr_graph.add_node("Fourth AR", "Fourth Assesment", + url="https://www.ipcc.ch/report/ar4/syr/", parent="Report") # Set a different color + syr_graph.add_node("Fifth AR", "Fifth Assesment Report", + url="https://www.ipcc.ch/report/ar5/syr/", parent="Report") + syr_graph.add_node("Sixth AR", "Sixth Assesment Report", + url="https://www.ipcc.ch/report/ar6/syr/", parent="Report") + syr_graph.add_node("SR", "Special Report", + url="", color="lightgreen", parent="Report") + + # Adding edges of sub section of Report + syr_graph.add_edge("Report", "First AR") + syr_graph.add_edge("Report", "Second AR") + syr_graph.add_edge("Report", "Third AR") + syr_graph.add_edge("Report", "Fourth AR") + syr_graph.add_edge("Report", "Fifth AR") + syr_graph.add_edge("Report", "Sixth AR") + syr_graph.add_edge("Report", "SR") + + + + #Creating nodes for sub sections of Special Report + syr_graph.add_node("CCC", "Climate Change and Cities", + url="https://www.ipcc.ch/report/special-report-on-climate-change-and-cities/", parent= "Special Report") + syr_graph.add_node("CCL", "Climate Change and Land", + url="https://www.ipcc.ch/report/srccl/", parent= "Special Report") + syr_graph.add_node("OC", "Ocean and Cryosphere", url="https://www.ipcc.ch/report/srocc/", parent= "Special Report") + + syr_graph.add_edge("SR", "CCC") + syr_graph.add_edge("SR", "CCL") + syr_graph.add_edge("SR", "OC") + + # Adding edges + syr_graph.add_edge("Synthesis Report", "About") + syr_graph.add_edge("Synthesis Report", "Report", minlen=2) + syr_graph.add_edge("Synthesis Report", "Activities") + syr_graph.render_graph("syr_report", open_in_browser=True) + + syr_graph.balance_graph() \ No newline at end of file From 2b6a0393995bdc155ee816b89f367716e1354849 Mon Sep 17 00:00:00 2001 From: anudev21 Date: Thu, 20 Feb 2025 11:03:34 +0530 Subject: [PATCH 13/24] readme_updated --- README.md | 8 ++++++++ __pycache__/generate_graph.cpython-312.pyc | Bin 5978 -> 5978 bytes 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index a26c85c..5e79935 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # internship_sC +## Poject overview +I am currently working on **IPCC Working Group 2, Cross Chapter 2: Polar Regions.\ +The focus of this project is to develop resources that enhance the understanding of climate-related terminologies and concepts. +## Objectives +* Wordlist +* Dictionary +* Table of content of my IPCC chapter +* Network graph of IPCC main page and Syntesis Report \ No newline at end of file diff --git a/__pycache__/generate_graph.cpython-312.pyc b/__pycache__/generate_graph.cpython-312.pyc index 2b510433d37e95ae1a3c1a1143a197d594255849..4d44d9ecf479ceb8bdbd0f2acf8fae88cebe58ac 100644 GIT binary patch delta 19 YcmcbmcT11!G%qg~0|>m_$Q2+C06Jg=6#xJL delta 19 ZcmcbmcT11!G%qg~0}zBh+sG9l4gfq)1!n*N From c9e724fce9ee23cd35a31dee2bd1ea0cb096ad0f Mon Sep 17 00:00:00 2001 From: anudev21 Date: Thu, 20 Feb 2025 11:04:50 +0530 Subject: [PATCH 14/24] updated --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e79935..ab31f7b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # internship_sC ## Poject overview -I am currently working on **IPCC Working Group 2, Cross Chapter 2: Polar Regions.\ +I am currently working on **IPCC Working Group 2, Cross Chapter 2: Polar Regions.** \ The focus of this project is to develop resources that enhance the understanding of climate-related terminologies and concepts. ## Objectives From aae85b1f626db65b5ccc899c56457c5236aece16 Mon Sep 17 00:00:00 2001 From: anudev21 Date: Thu, 20 Feb 2025 11:05:24 +0530 Subject: [PATCH 15/24] updated --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ab31f7b..bcbd334 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # internship_sC ## Poject overview -I am currently working on **IPCC Working Group 2, Cross Chapter 2: Polar Regions.** \ +I am currently working on **IPCC Working Group 2, Cross Chapter 2: Polar Regions.** The focus of this project is to develop resources that enhance the understanding of climate-related terminologies and concepts. ## Objectives From c0000035e005ae21fb1a5fc5af2f059e652def15 Mon Sep 17 00:00:00 2001 From: anudev21 Date: Thu, 20 Feb 2025 12:44:33 +0530 Subject: [PATCH 16/24] html_id_cleanup --- html_id cleaning.py | 63 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 html_id cleaning.py diff --git a/html_id cleaning.py b/html_id cleaning.py new file mode 100644 index 0000000..e6802cd --- /dev/null +++ b/html_id cleaning.py @@ -0,0 +1,63 @@ +import requests +from bs4 import BeautifulSoup +import re + +def fetch_html(url): + """ + Fetches HTML content from a given url + """ + headers = {"User-agent": "Mozilla/5.0"} + response = requests.get(url, headers=headers) + + if response.status_code == 200: + return response.text + else: + print(f"Error: Unable to fetch page (Statust Code: {response.status_code})") + return None + +def clean_html(html_content): + """ + Removes unnecessary attributes and cleans the HTML + """ + soup = BeautifulSoup(html_content, "html.parser") + + #Remove Gatsby-related attributes + """ + Remove unnecessary elements and attributes from the parsed HTML + """ + # Remove