<jupyter_start><jupyter_text>Word Embeddings for Electrical Engineering  Libraries<jupyter_code>import pandas as pd
import matplotlib
from matplotlib import pyplot as plt
%matplotlib inline
import wikipedia<jupyter_output><empty_output><jupyter_text>Test wikipedia library<jupyter_code>wikipedia.search("Circuit breaker")
circuit_breaker = wikipedia.page("Circuit breaker")
dist_board = wikipedia.page("Distribution board")
circuit_breaker.title
circuit_breaker.url
circuit_breaker.content[:1000] # full page text content
len(circuit_breaker.content)
print(circuit_breaker.links) # links to other wikipedia pages
dist_board.content[:1000] # full page text content
wikipedia.summary("Circuit breaker", sentences=3)
wikipedia.summary("Distribution board", sentences=3)
wikipedia.summary("natural language processing", sentences=3)
wikipedia.summary("supervised learning", sentences=3)
wikipedia.suggest("machine learning")
wikipedia.summary("machine learning", sentences=3) # errors out. not sure why
circuit_breaker.sections<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09306742640075974, 'fraction_numerical': 0.012345679012345678, 'mean_word_length': 9.8659793814433, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '122677', 'license': 'MIT', 'n_tokens_mistral': 326, 'n_tokens_neox': 292, 'n_words': 73, 'path': 'notebooks/preprocessing.ipynb', 'repo_name': 'cdignam8304/electrical-embeddings', 'size': '1053'}