Skip to content

Instantly share code, notes, and snippets.

@johnpcutler
Created December 31, 2024 03:21
Show Gist options
  • Save johnpcutler/d2899ab817886e4c10933030333ef737 to your computer and use it in GitHub Desktop.
Save johnpcutler/d2899ab817886e4c10933030333ef737 to your computer and use it in GitHub Desktop.
import numpy as np
import pandas as pd
from sklearn.decomposition import PCA
from sklearn.manifold import TSNE
from sklearn.cluster import KMeans
import matplotlib.pyplot as plt
from matplotlib.colors import ListedColormap
from transformers import BertTokenizer, BertModel
import torch
from adjustText import adjust_text
# List of words and their definitions
words_with_definitions = {
"workflows": "Workflows are structured sequences of tasks and activities designed to transform inputs into outputs efficiently. Examples include automated approval processes, content creation pipelines, and project task flows. Processes, Pipelines, Task Sequences, Job Flows, Operations, Routines, Methodologies, Systems, Procedures, Chains",
"visuals": "Visuals are graphical tools or representations that enhance comprehension and decision-making in work systems. Examples include Gantt charts, mind maps, dashboards, and wireframes. Graphics, Images, Charts, Diagrams, Illustrations, Figures, Representations, Sketches, Maps, Layouts",
"views": "Views provide filtered or focused perspectives of data or systems, tailored to the needs of specific users. Examples include summary dashboards, list views, and analytical perspectives. Perspectives, Filters, Outlooks, Displays, Screens, Scenes, Snapshots, Vistas, Angles, Windows",
"variations": "Variations represent deviations or alternatives in processes or outcomes, allowing for flexibility and adaptation. Examples include product variants, workflow adjustments, and scenario planning. Differences, Alternatives, Deviations, Options, Changes, Modifications, Adjustments, Alterations, Branches, Diversities",
"updates": "Updates involve changes or revisions to maintain accuracy and relevance in systems or processes. Examples include software patches, report updates, and version control logs. Revisions, Changes, Upgrades, Modifications, Corrections, Improvements, Adjustments, Amendments, Releases, Refinements",
"triggers": "Triggers are events or conditions that activate specific actions or workflows within a system. Examples include email notifications, timer-based triggers, and rule-based activations. Initiators, Activators, Conditions, Events, Signals, Stimuli, Catalysts, Starters, Prompts, Cues",
"traditions": "Traditions are established practices or cultural norms within teams that influence workflows and behavior. Examples include annual planning meetings, onboarding rituals, and retrospective practices. Practices, Customs, Rituals, Habits, Norms, Conventions, Legacies, Heritage, Ceremonies, Institutions",
"tools": "Tools are software or physical instruments that assist in completing tasks and optimizing workflows. Examples include project management software, data analysis tools, and collaborative platforms. Instruments, Software, Equipment, Applications, Resources, Devices, Utilities, Platforms, Gadgets, Implements",
"timelines": "Timelines are chronological sequences of events or milestones used to track progress. Examples include project schedules, event calendars, and historical progress charts. Schedules, Chronologies, Planners, Roadmaps, Milestones, Calendars, Timeframes, Gantt Charts, Progressions, Events",
"terms": "Terms are standardized words or phrases that ensure clarity and shared understanding within a system. Examples include glossary entries, technical jargon, and taxonomy labels. Phrases, Expressions, Words, Definitions, Labels, Notations, Designations, Nomenclature, Names, Titles",
"templates": "Templates are predefined formats or structures used to ensure consistency in outputs. Examples include document templates, workflow blueprints, and email formats. Blueprints, Formats, Layouts, Prototypes, Patterns, Models, Structures, Examples, Frameworks, Drafts",
"tasks": "Tasks are individual units of work assigned to individuals or teams as part of a broader workflow. Examples include action items, assignments, and deliverable checklists. Jobs, Duties, Assignments, Responsibilities, To-Dos, Objectives, Activities, Actions, Efforts, Endeavors",
"targets": "Targets are specific goals or objectives that guide team efforts and measure success. Examples include sales targets, completion milestones, and performance benchmarks. Goals, Objectives, Aims, Benchmarks, Milestones, Expectations, Standards, Outcomes, Quotas, Deliverables",
"systems": "Systems are interconnected components or processes designed to achieve specific outcomes efficiently. Examples include management systems, software ecosystems, and operational frameworks. Frameworks, Networks, Structures, Infrastructures, Ecosystems, Mechanisms, Platforms, Configurations, Operations, Processes",
"summaries": "Summaries are concise overviews of detailed information, providing quick insights for decision-making. Examples include executive summaries, briefing notes, and report highlights. Overviews, Abstracts, Condensations, Outlines, Recaps, Synopses, Highlights, Reviews, Briefs, Snapshots",
"structures": "Structures define the organization or arrangement of elements within a system, enabling clear processes. Examples include team hierarchies, data schemas, and file organization systems. Frameworks, Configurations, Arrangements, Blueprints, Designs, Organizations, Architectures, Setups, Compositions, Layouts",
"streams": "Streams are continuous flows of data, activities, or tasks that maintain operational momentum. Examples include data streams, task streams, and content publishing flows. Flows, Channels, Pipelines, Sequences, Pathways, Currents, Cascades, Data Streams, Narratives, Continuums",
"strategies": "Strategies are high-level plans designed to achieve long-term goals and objectives. Examples include business strategies, marketing campaigns, and innovation roadmaps. Plans, Tactics, Approaches, Frameworks, Roadmaps, Schemes, Methods, Designs, Blueprints, Solutions",
"steps": "Steps are sequential actions that form part of a process or workflow, ensuring systematic progress. Examples include procedure steps, setup instructions, and process checklists. Actions, Stages, Phases, Moves, Progressions, Measures, Intervals, Milestones, Rungs, Procedures",
"states": "States represent the current condition or status of a system, task, or process. Examples include active/inactive states, progress stages, and condition statuses. Conditions, Situations, Phases, Modes, Levels, Stages, Contexts, Scenarios, Dispositions, Positions",
"standards": "Standards are established guidelines or criteria that ensure consistency and quality across systems or processes. Examples include coding standards, ISO certifications, and performance benchmarks. Guidelines, Benchmarks, Criteria, Norms, Principles, Rules, Protocols, Specifications, Metrics, Codes",
"sources": "Sources refer to the origins of data, materials, or information used within a system or process. Examples include databases, reference documents, and raw material suppliers. Origins, References, Bases, Inputs, Providers, Supplies, Resources, Roots, Foundations, Seeds",
"snapshots": "Snapshots are static representations of a system or data at a specific point in time. Examples include performance snapshots, backup files, and system state captures. Screenshots, Captures, Views, Images, Frames, Records, Depictions, Moments, Impressions, Overviews",
"skills": "Skills are abilities or competencies required to perform tasks effectively within a work system. Examples include technical skills, communication abilities, and analytical expertise. Abilities, Competencies, Expertise, Proficiencies, Talents, Aptitudes, Know-how, Capabilities, Strengths, Mastery",
"situations": "Situations are specific scenarios or conditions that affect decision-making or workflows. Examples include emergency situations, project crises, and high-growth opportunities. Scenarios, Conditions, Circumstances, Contexts, Events, Cases, Settings, Predicaments, States, Positions",
"scope": "Scope defines the boundaries and extent of a project, task, or system, setting expectations for outcomes. Examples include project scope statements, requirement definitions, and operational limits. Extent, Range, Coverage, Breadth, Limits, Boundaries, Scale, Reach, Span, Domain",
"schemas": "Schemas are structured frameworks or models that define the organization of data or concepts. Examples include database schemas, conceptual models, and mental frameworks. Models, Structures, Frameworks, Layouts, Designs, Blueprints, Configurations, Archetypes, Diagrams, Patterns",
"schedules": "Schedules are planned timelines for tasks, events, or activities to ensure timely completion. Examples include work schedules, meeting calendars, and delivery timelines. Timetables, Calendars, Plans, Agendas, Programs, Charts, Timelines, Routines, Itineraries, Appointments",
"scenarios": "Scenarios are hypothetical or real-world situations used to plan, analyze, or train within systems. Examples include disaster recovery scenarios, role-playing exercises, and market simulations. Situations, Cases, Conditions, Events, Contexts, Stories, Simulations, Hypotheses, Possibilities, Examples",
"rules": "Rules are predefined guidelines or instructions that govern behavior and processes within a system. Examples include business rules, game rules, and compliance regulations. Regulations, Guidelines, Protocols, Norms, Laws, Standards, Policies, Directives, Instructions, Criteria",
"routines": "Routines are repetitive sequences of actions that are part of regular workflows. Examples include daily stand-ups, maintenance routines, and habitual reporting cycles. Habits, Procedures, Practices, Patterns, Customs, Workflows, Rituals, Schedules, Methods, Cycles",
"roles": "Roles define responsibilities and functions assigned to individuals or groups within a system. Examples include team leads, project managers, and quality assurance specialists. Responsibilities, Functions, Duties, Positions, Titles, Jobs, Capacities, Tasks, Characters, Assignments",
"results": "Results are the outcomes or outputs produced by a process, task, or system. Examples include project deliverables, test results, and performance metrics. Outcomes, Outputs, Consequences, Effects, Findings, Returns, Products, Solutions, Deliverables, Conclusions",
"resources": "Resources are assets or inputs required to complete tasks or processes effectively. Examples include financial budgets, human capital, and physical materials. Assets, Supplies, Inputs, Tools, Equipment, Materials, Funds, Capabilities, Means, Support",
"requirements": "Requirements are the specific needs or conditions that must be met to achieve desired outcomes. Examples include functional specifications, user requirements, and regulatory demands. Needs, Demands, Prerequisites, Criteria, Specifications, Standards, Conditions, Rules, Expectations, Necessities",
"relationships": "Relationships are connections or associations between elements in a system or between individuals. Examples include parent-child data relationships, team dynamics, and vendor partnerships. Connections, Associations, Links, Interactions, Bonds, Ties, Partnerships, Networks, Correlations, Affiliations",
"regulations": "Regulations are official rules or laws that govern actions and ensure compliance within systems. Examples include GDPR, workplace safety regulations, and industry standards. Rules, Laws, Guidelines, Policies, Standards, Directives, Protocols, Codes, Instructions, Requirements",
"records": "Records are documented information or data preserved for reference or compliance purposes. Examples include transaction logs, meeting minutes, and archival files. Documents, Logs, Archives, Files, Histories, Reports, Data, Registrations, Notes, Accounts",
"questions": "Questions are inquiries or prompts used to gather information, clarify, or guide decision-making. Examples include diagnostic questions, interview queries, and strategic prompts. Queries, Inquiries, Issues, Concerns, Probes, Requests, Challenges, Doubts, Investigations, Interrogations",
"queries": "Queries are specific requests for information or data from a system or database, often used to generate reports or insights. Examples include SQL queries, search engine queries, and data retrieval requests. Searches, Inquiries, Requests, Questions, Probes, Investigations, Data Retrievals, Reports, Filters, Interrogations",
"processes": "Processes are structured sets of activities designed to achieve specific goals or outcomes systematically. Examples include manufacturing processes, recruitment workflows, and financial approval chains. Workflows, Procedures, Operations, Systems, Chains, Methodologies, Frameworks, Routines, Steps, Flows",
"principles": "Principles are foundational truths or guidelines that shape decisions and behaviors within systems. Examples include ethical principles, design principles, and organizational values. Values, Tenets, Guidelines, Rules, Foundations, Concepts, Doctrines, Ethics, Norms, Beliefs",
"practices": "Practices are established ways of performing tasks or workflows that are commonly accepted as effective. Examples include agile practices, best practices, and quality control methods. Methods, Procedures, Habits, Routines, Techniques, Processes, Approaches, Customs, Traditions, Protocols",
"policies": "Policies are formalized rules or directives that guide decision-making and behavior within an organization. Examples include privacy policies, HR policies, and operational policies. Rules, Guidelines, Standards, Regulations, Directives, Procedures, Norms, Principles, Frameworks, Instructions",
"plans": "Plans are detailed proposals or strategies outlining how goals or objectives will be achieved. Examples include project plans, strategic plans, and contingency plans. Strategies, Blueprints, Designs, Roadmaps, Schemes, Approaches, Proposals, Timelines, Programs, Arrangements",
"perspectives": "Perspectives are viewpoints or angles from which information or situations are analyzed. Examples include stakeholder perspectives, user perspectives, and market perspectives. Views, Outlooks, Opinions, Angles, Standpoints, Contexts, Frames, Scopes, Interpretations, Approaches",
"people": "People are individuals or teams involved in performing tasks, making decisions, or collaborating within systems. Examples include employees, stakeholders, and contractors. Individuals, Teams, Employees, Staff, Members, Stakeholders, Participants, Colleagues, Workers, Professionals",
"participants": "Participants are individuals or entities actively engaged in an event, process, or decision-making. Examples include meeting attendees, focus group members, and stakeholders. Members, Attendees, Contributors, Delegates, Stakeholders, Individuals, Representatives, Actors, Associates, Collaborators",
"owners": "Owners are individuals or groups responsible for the outcomes or management of specific tasks or systems. Examples include product owners, project leads, and data stewards. Managers, Custodians, Controllers, Supervisors, Leaders, Proprietors, Administrators, Stewards, Overseers, Heads",
"overviews": "Overviews are high-level summaries or descriptions providing a broad understanding of a system or process. Examples include executive overviews, project summaries, and system diagrams. Summaries, Reviews, Abstracts, Recaps, Synopses, Briefs, Highlights, Snapshots, Narratives, Condensations",
"outputs": "Outputs are the tangible or intangible results produced by a system, process, or task. Examples include reports, deliverables, and completed projects. Results, Deliverables, Products, Outcomes, Solutions, Findings, Reports, Returns, Creations, Artifacts",
"outline": "Outline refers to a structured framework or roadmap for tasks, projects, or documents. Examples include essay outlines, project outlines, and planning templates. Framework, Blueprint, Plan, Summary, Draft, Structure, Skeleton, Layout, Overview, Schema",
"outcomes": "Outcomes are the final results or consequences of actions, processes, or systems. Examples include improved customer satisfaction, increased revenue, and successful project delivery. Results, Impacts, Effects, Outputs, Consequences, Achievements, Deliverables, Findings, End States, Benefits",
"objects": "Objects are entities or items within a system that are acted upon or interact with processes. Examples include data objects, physical artifacts, and conceptual models. Items, Entities, Components, Elements, Materials, Things, Artifacts, Models, Constructs, Instances",
"objectives": "Objectives are specific, measurable goals that guide actions and decisions within systems. Examples include SMART objectives, strategic objectives, and team goals. Goals, Targets, Aims, Missions, Purposes, Ambitions, Deliverables, Outcomes, Milestones, Plans",
"notifications": "Notifications are alerts or messages that inform users about events, updates, or required actions. Examples include email notifications, app push alerts, and system messages. Alerts, Updates, Messages, Announcements, Warnings, Reminders, Prompts, Signals, Communications, Notices",
"norms": "Norms are informal rules or standards that influence behavior and expectations within a group. Examples include workplace norms, cultural norms, and team etiquettes. Standards, Traditions, Customs, Rules, Conventions, Practices, Protocols, Ethics, Expectations, Codes",
"models": "Models are representations or abstractions used to simulate, analyze, or understand systems or processes. Examples include data models, simulation models, and business models. Frameworks, Simulations, Blueprints, Prototypes, Patterns, Representations, Systems, Designs, Diagrams, Schemas",
"milestones": "Milestones are significant points or achievements within a timeline or process, marking progress. Examples include project kick-offs, completion of phases, and launch events. Goals, Benchmarks, Achievements, Targets, Markers, Events, Highlights, Phases, Stages, Progress Points",
"metrics": "Metrics are quantitative measures used to assess performance, progress, or success within a system. Examples include KPIs, customer satisfaction scores, and revenue growth rates. Measures, Indicators, Benchmarks, KPIs, Statistics, Standards, Data Points, Parameters, Ratings, Evaluations",
"methods": "Methods are systematic approaches or techniques used to accomplish tasks or solve problems. Examples include research methods, problem-solving frameworks, and agile methodologies. Techniques, Approaches, Processes, Procedures, Systems, Practices, Strategies, Frameworks, Tactics, Plans",
"metadata": "Metadata refers to data that provides information about other data, enhancing organization and retrieval. Examples include file properties, database schemas, and tagging systems. Attributes, Tags, Descriptors, Information, Annotations, Properties, Details, Data About Data, Contextual Data, Explanations",
"meetings": "Meetings are structured gatherings of individuals to discuss, plan, or make decisions. Examples include team stand-ups, client presentations, and project kick-offs. Gatherings, Sessions, Assemblies, Discussions, Conferences, Workshops, Summits, Briefings, Conclaves, Forums",
"measurements": "Measurements are quantified assessments of variables or conditions, often used for evaluation. Examples include length measurements, time tracking, and performance benchmarks. Metrics, Evaluations, Assessments, Quantifications, Gauges, Indicators, Ratings, Readings, Scales, Standards",
"mappings": "Mappings are representations of relationships between elements in a system or dataset. Examples include data mappings, process maps, and organizational charts. Diagrams, Charts, Representations, Plans, Layouts, Schemas, Configurations, Models, Graphs, Blueprints",
"limits": "Limits define boundaries or constraints within which systems or processes operate. Examples include budget limits, time constraints, and capacity thresholds. Constraints, Boundaries, Caps, Thresholds, Extents, Restrictions, Ceilings, Edges, Barriers, Parameters",
"kpis": "KPIs (Key Performance Indicators) are specific metrics used to evaluate success in achieving objectives. Examples include net promoter scores, sales growth, and operational efficiency. Metrics, Benchmarks, Indicators, Standards, Goals, Measures, Data Points, Performance Metrics, Ratings, Key Measures",
"knowledge repositories": "Knowledge repositories are centralized systems for storing and accessing organizational knowledge. Examples include wikis, document management systems, and knowledge bases. Wikis, Libraries, Archives, Databases, Knowledge Bases, Storage Systems, Information Hubs, Reference Centers, Catalogs, Portals",
"insights": "Insights are derived understandings or interpretations that inform decisions and strategies. Examples include market insights, data-driven conclusions, and customer feedback analysis. Understandings, Interpretations, Conclusions, Discoveries, Observations, Learnings, Perceptions, Findings, Revelations, Data Points",
"inputs": "Inputs are resources, data, or materials required for a system or process to function. Examples include raw materials, user data, and energy inputs. Resources, Contributions, Data, Materials, Supplies, Entries, Information, Submissions, Elements, Ingredients",
"information": "Information is processed or structured data that provides meaning and supports decision-making. Examples include reports, datasets, and documentation. Data, Knowledge, Facts, Intelligence, Details, Insights, Reports, News, Content, Evidence",
"indicators": "Indicators are signals or measures that provide insight into the condition or performance of a system. Examples include economic indicators, health metrics, and progress markers. Metrics, Measures, Signs, Signals, Benchmarks, Clues, Data Points, Markers, Criteria, Parameters",
"implications": "Implications are potential effects or consequences of decisions, actions, or conditions. Examples include financial implications, strategic impacts, and risk assessments. Consequences, Effects, Impacts, Results, Ramifications, Outcomes, Repercussions, Indications, Inferences, Interpretations",
"hierarchy": "Hierarchy is the arrangement of elements in a system by rank or level of importance. Examples include organizational charts, priority lists, and directory structures. Structure, Ranking, Order, Arrangement, Classification, Ladder, Tier, Level, Organization, Stratification",
"habits": "Habits are repetitive behaviors or routines ingrained in individual or team workflows. Examples include daily stand-ups, regular code reviews, and periodic report submissions. Routines, Practices, Customs, Traditions, Patterns, Behaviors, Procedures, Activities, Tendencies, Traits",
"guidelines": "Guidelines are recommended practices or instructions that provide direction for tasks or processes. Examples include style guides, safety protocols, and best practices documents. Standards, Instructions, Policies, Rules, Directions, Protocols, Recommendations, Procedures, Norms, Frameworks",
"frameworks": "Frameworks are structured approaches or models that provide a foundation for processes or strategies. Examples include agile frameworks, decision-making models, and strategic frameworks. Structures, Models, Blueprints, Systems, Designs, Patterns, Configurations, Architectures, Concepts, Platforms",
"formats": "Formats refer to the structural arrangements or layouts of data, documents, or systems. Examples include file formats, report templates, and presentation styles. Layouts, Structures, Designs, Configurations, Templates, Arrangements, Styles, Patterns, Schemes, Models",
"flows": "Flows represent the movement of tasks, data, or resources through a system or process. Examples include workflow diagrams, data flows, and supply chain logistics. Streams, Processes, Sequences, Movements, Progressions, Pathways, Circulations, Channels, Currents, Operations",
"filters": "Filters are tools or mechanisms used to refine or sort data based on specific criteria. Examples include search filters, spam filters, and report customizations. Criteria, Screens, Sorters, Refinements, Customizations, Constraints, Sifters, Gates, Layers, Conditions",
"feedback": "Feedback is information provided about performance or outcomes, used to guide improvements. Examples include customer reviews, employee evaluations, and system diagnostics. Responses, Comments, Reviews, Critiques, Suggestions, Evaluations, Assessments, Opinions, Ratings, Input",
"exceptions": "Exceptions are deviations from standard processes or expected outcomes that require special handling. Examples include error logs, outlier data, and case-by-case decisions. Anomalies, Deviations, Outliers, Variations, Irregularities, Special Cases, Exemptions, Aberrations, Differences, Omissions",
"evaluating progress": "Evaluating progress involves assessing milestones and accomplishments to measure ongoing success. Examples include performance reviews, project check-ins, and quarterly reports. Assessing Growth, Measuring Success, Reviewing Milestones, Monitoring Development, Tracking Progress, Gauging Outcomes, Analyzing Data, Observing Trends, Reporting Results, Checking Advancements",
"environment": "Environment refers to the physical, cultural, or virtual context in which work occurs. Examples include workplace settings, collaborative tools, and team cultures. Context, Setting, Surroundings, Conditions, Climate, Ecosystem, Atmosphere, Framework, Scene, Locale",
"due dates": "Due dates are deadlines for completing tasks, milestones, or deliverables within a timeline. Examples include project deadlines, payment due dates, and submission deadlines. Deadlines, Timelines, Timeframes, Schedules, Milestones, Targets, Goals, Expirations, Closures, Cutoffs",
"documents": "Documents are recorded information stored in physical or digital formats for reference or sharing. Examples include contracts, project reports, and policy manuals. Files, Records, Papers, Reports, Manuscripts, Logs, Notes, Articles, Contracts, Blueprints",
"dependencies": "Dependencies are relationships where one task, system, or process relies on another for completion. Examples include upstream/downstream tasks, shared resources, and integration points. Reliances, Connections, Links, Relationships, Interdependencies, Ties, Supports, Associations, Conditions, Factors",
"deliverables": "Deliverables are tangible or intangible outputs produced as part of a project or task. Examples include finished products, research reports, and service implementations. Outputs, Results, Products, Outcomes, Deliveries, Creations, Solutions, Items, Contributions, Achievements",
"decisions": "Decisions are choices or resolutions made to guide actions or strategies. Examples include project approvals, strategic pivots, and budget allocations. Choices, Resolutions, Determinations, Judgments, Conclusions, Selections, Conclusions, Options, Directions, Agreements",
"deadlines": "Deadlines are specific time limits set for completing tasks or meeting objectives. Examples include submission deadlines, compliance timelines, and sprint end dates. Cutoffs, Due Dates, Targets, Goals, Timelines, Timeframes, Closures, Expirations, Limits, Milestones",
"data": "Data consists of raw facts and figures used for analysis, decision-making, or processing. Examples include customer data, performance metrics, and survey results. Information, Facts, Figures, Statistics, Metrics, Records, Knowledge, Entries, Attributes, Elements",
"dashboards": "Dashboards are visual displays of key data and metrics, providing insights at a glance. Examples include KPI dashboards, financial overviews, and operational dashboards. Displays, Interfaces, Panels, Screens, Consoles, Views, Overviews, Charts, Summaries, Monitors",
"cycles": "Cycles are recurring sequences of events or processes in systems or workflows. Examples include billing cycles, development cycles, and feedback loops. Loops, Sequences, Phases, Rotations, Routines, Patterns, Intervals, Progressions, Repetitions, Series",
"criteria": "Criteria are standards or benchmarks used to evaluate or compare options or outcomes. Examples include success criteria, eligibility requirements, and grading rubrics. Standards, Benchmarks, Metrics, Guidelines, Conditions, Measures, Parameters, Rules, Requirements, Thresholds",
"contracts": "Contracts are formal agreements that define obligations and rights between parties. Examples include employment contracts, service agreements, and partnership deals. Agreements, Deals, Pacts, Covenants, Arrangements, Commitments, Bonds, Terms, Documents, Obligations",
"contexts": "Contexts are the circumstances or settings that influence how tasks or processes are understood and executed. Examples include cultural contexts, situational factors, and system environments. No predefined synonyms for Contexts",
"constraints": "Constraints are limitations or restrictions that affect decisions or processes. Examples include budget constraints, time limitations, and resource availability. No predefined synonyms for Constraints",
"consequences": "Consequences are the outcomes or effects resulting from decisions, actions, or events. Examples include financial losses, operational delays, and improved efficiencies. Effects, Results, Impacts, Ramifications, Repercussions, Outcomes, Aftermaths, Influences, Byproducts, Implications",
"configurations": "Configurations are the setups or arrangements of components within a system. Examples include software configurations, network setups, and custom workflows. Setups, Arrangements, Designs, Schemas, Blueprints, Layouts, Systems, Frameworks, Plans, Structures",
"conditions": "Conditions are specific states or circumstances that influence system behavior or decision-making. Examples include preconditions, weather conditions, and system statuses. Circumstances, States, Situations, Scenarios, Settings, Requirements, Terms, Criteria, Statuses, Attributes",
"competencies": "Competencies are the skills and abilities required to perform tasks effectively. Examples include leadership skills, technical expertise, and problem-solving abilities. Skills, Expertise, Abilities, Proficiencies, Capabilities, Talents, Knowledge, Aptitudes, Strengths, Mastery",
"collections": "Collections are grouped sets of items, data, or resources used in work systems. Examples include asset collections, document libraries, and data archives. Groups, Assemblies, Gatherings, Libraries, Sets, Aggregations, Repositories, Compilations, Archives, Clusters",
"choices": "Choices are options or alternatives available for decision-making in systems or processes. Examples include strategy options, resource allocations, and design decisions. Options, Alternatives, Selections, Preferences, Decisions, Variants, Paths, Opportunities, Possibilities, Picks",
"checkpoints": "Checkpoints are predefined milestones or review points within a process. Examples include project stage gates, quality assurance checks, and approval points. Milestones, Markers, Stops, Reviews, Stages, Points, Benchmarks, Gateways, Waypoints, Steps",
"changes": "Changes are modifications or adjustments made to systems, processes, or strategies. Examples include software updates, organizational restructuring, and process improvements. Modifications, Alterations, Updates, Adjustments, Revisions, Transformations, Variations, Reforms, Developments, Transitions",
"categories": "Categories are classifications or groupings used to organize items or data. Examples include product categories, user types, and project classifications. Groups, Types, Classes, Divisions, Sections, Clusters, Subsets, Labels, Taxonomies, Classifications",
"capabilities": "Capabilities are the features or functionalities a system or team can perform. Examples include system integrations, machine learning models, and team expertise. Skills, Features, Abilities, Competencies, Talents, Strengths, Functions, Capacities, Proficiencies, Attributes",
"boundaries": "Boundaries define the limits or extents of systems, processes, or roles. Examples include project scopes, team responsibilities, and jurisdictional limits. Limits, Edges, Borders, Barriers, Frontiers, Frames, Extents, Perimeters, Constraints, Thresholds",
"behaviors": "Behaviors are the actions or responses exhibited by individuals or systems. Examples include user interactions, system performance patterns, and team dynamics. Actions, Conducts, Patterns, Habits, Practices, Reactions, Customs, Dynamics, Attitudes, Characteristics",
"background": "Background refers to the historical or contextual information relevant to tasks or decisions. Examples include project history, user profiles, and system logs. Context, Setting, History, Information, Frame, Basis, Surroundings, Perspective, Circumstances, Details",
"automations": "Automations are processes or tasks performed with minimal human intervention. Examples include email automation, robotic process automation, and auto-scheduling. Processes, Workflows, Systems, Robotics, Mechanizations, Scripts, Algorithms, Integrations, Programs, Tools",
"attendees": "Attendees are individuals who participate in events, meetings, or discussions. Examples include team members, stakeholders, and guest speakers. Participants, Guests, Delegates, Members, Visitors, Stakeholders, Observers, Contributors, Associates, Registrants",
"assumptions": "Assumptions are beliefs or expectations taken as true without full verification. Examples include market assumptions, budget forecasts, and project feasibility estimates. Expectations, Beliefs, Hypotheses, Theories, Premises, Speculations, Judgments, Opinions, Projections, Presumptions",
"assignments": "Assignments are tasks or responsibilities delegated to individuals or teams. Examples include project deliverables, action items, and work allocations. Tasks, Duties, Jobs, Responsibilities, Roles, Missions, Projects, Allocations, Designations, Instructions",
"assets": "Assets are valuable resources or items owned or managed within a system. Examples include intellectual property, financial assets, and physical equipment. Resources, Properties, Holdings, Stocks, Materials, Items, Goods, Wealth, Tools, Inventories",
"assemblages": "Assemblages are collections of elements grouped together to function as a whole. Examples include project kits, integrated software solutions, and modular systems. Collections, Groups, Gatherings, Clusters, Sets, Arrays, Aggregates, Assemblies, Units, Combinations",
"artifacts": "Artifacts are tangible outputs or byproducts of processes or systems, often used as evidence or tools. Examples include design mockups, prototypes, and historical documents. Objects, Items, Tools, Creations, Outputs, Works, Results, Evidence, Products, Relics",
"alerts": "Alerts are notifications or warnings triggered by specific conditions or events. Examples include system alerts, error messages, and performance warnings. Notifications, Warnings, Announcements, Signals, Prompts, Messages, Alarms, Updates, Indications, Notices",
"agreements": "Agreements are formal or informal commitments between parties outlining mutual expectations. Examples include service level agreements, contracts, and team charters. Contracts, Deals, Pacts, Covenants, Arrangements, Accords, Understandings, Bonds, Terms, Settlements",
"agendas": "Agendas are structured lists of topics or items to be discussed during meetings or events. Examples include meeting agendas, event schedules, and discussion plans. Plans, Schedules, Programs, Timelines, Orders, Summaries, Itineraries, Lists, Arrangements, Frameworks",
"activities": "Activities are specific actions or tasks performed to achieve goals or outcomes. Examples include brainstorming sessions, training workshops, and team-building exercises. Tasks, Actions, Events, Exercises, Operations, Endeavors, Procedures, Routines, Projects, Engagements",
"actions": "Actions are specific steps taken to complete tasks or address issues. Examples include resolving bugs, implementing changes, and sending communications. Steps, Moves, Decisions, Operations, Measures, Efforts, Choices, Behaviors, Responses, Activities",
"abilities": "Abilities are the skills or proficiencies required to perform tasks effectively. Examples include critical thinking, technical expertise, and creative problem-solving. Skills, Competencies, Talents, Proficiencies, Strengths, Capabilities, Aptitudes, Expertise, Powers, Knowledge",
}
# Extract words and create context sentences
words, definitions = zip(*words_with_definitions.items())
context_sentences = [f"{word}: {definition}" for word, definition in words_with_definitions.items()]
# Load pre-trained BERT model and tokenizer
tokenizer = BertTokenizer.from_pretrained('bert-base-uncased')
model = BertModel.from_pretrained('bert-base-uncased')
# Function to get sentence embeddings
def get_embedding(sentence):
inputs = tokenizer(sentence, return_tensors='pt', truncation=True, max_length=512)
outputs = model(**inputs)
return outputs.last_hidden_state.mean(dim=1).detach().numpy().flatten()
# Get embeddings for context sentences
embeddings = np.array([get_embedding(sentence) for sentence in context_sentences])
# Dimensionality reduction with PCA and t-SNE
pca = PCA(n_components=23).fit_transform(embeddings)
tsne = TSNE(n_components=2, perplexity=10, n_iter=3000).fit_transform(pca)
# Perform K-means clustering
num_clusters = 30 # Adjust the number of clusters if needed
kmeans = KMeans(n_clusters=num_clusters)
clusters = kmeans.fit_predict(tsne)
# Create dataframe for visualization
df = pd.DataFrame(tsne, columns=['x', 'y'])
df['word'] = words
df['cluster'] = clusters
# Generate grid for background shading
x_min, x_max = df['x'].min() - 1, df['x'].max() + 1
y_min, y_max = df['y'].min() - 1, df['y'].max() + 1
xx, yy = np.meshgrid(np.linspace(x_min, x_max, 500), np.linspace(y_min, y_max, 500))
Z = kmeans.predict(np.c_[xx.ravel(), yy.ravel()])
Z = Z.reshape(xx.shape)
# Plot shaded clusters and words
plt.figure(figsize=(16, 10))
plt.contourf(xx, yy, Z, levels=num_clusters, cmap=plt.cm.Pastel1, alpha=0.5)
plt.contour(xx, yy, Z, levels=num_clusters, linewidths=0.5, colors='k', linestyles='dotted')
# Overlay words on the plot
colors = plt.cm.tab10(np.linspace(0, 1, num_clusters))
texts = []
for cluster in range(num_clusters):
clustered_df = df[df['cluster'] == cluster]
plt.scatter(clustered_df['x'], clustered_df['y'], color=colors[cluster], edgecolor='k', label=f'Cluster {cluster}')
for i, word in enumerate(clustered_df['word']):
texts.append(plt.text(clustered_df['x'].iloc[i], clustered_df['y'].iloc[i], word))
# Adjust text to prevent overlap
adjust_text(texts, arrowprops=dict(arrowstyle='-', color='grey', lw=0.5))
plt.legend(loc='upper right', bbox_to_anchor=(1.2, 1))
plt.title('2D Visualization of Words with K-Means Clustering')
plt.show()
# Print words in each cluster
for cluster in range(num_clusters):
print(f"Cluster {cluster}:")
print(", ".join(df[df['cluster'] == cluster]['word'].values))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment