<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Andreas Herman on Medium]]></title>
        <description><![CDATA[Stories by Andreas Herman on Medium]]></description>
        <link>https://medium.com/@andreasherman?source=rss-cceff53c30ff------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*Azw5joy05jTRUsbkyJgflw.png</url>
            <title>Stories by Andreas Herman on Medium</title>
            <link>https://medium.com/@andreasherman?source=rss-cceff53c30ff------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 09:15:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andreasherman/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Practical Guide to Engineering Design Decisions]]></title>
            <link>https://medium.com/@andreasherman/practical-guide-to-engineering-design-decisions-14577685737a?source=rss-cceff53c30ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/14577685737a</guid>
            <dc:creator><![CDATA[Andreas Herman]]></dc:creator>
            <pubDate>Tue, 21 Oct 2025 14:32:53 GMT</pubDate>
            <atom:updated>2025-10-21T14:38:49.310Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GPT5br2BG7BpadsFYu3cbQ.png" /><figcaption><em>Matching your decision process to impact and urgency</em></figcaption></figure><h3>The Problem We’re Solving</h3><p>Every engineering team faces the same challenge: decisions made today become mysteries tomorrow.</p><p>Six months later, someone asks: “Why did we build it this way?” And you get responses like:</p><ul><li><em>“I think Sarah made that call before she left…”</em></li><li><em>“There was definitely a Slack discussion about it…”</em></li><li><em>“We talked about it in standup, but I can’t remember the details…”</em></li></ul><p>This is expensive. Teams waste hours rediscovering decisions, debating already-settled questions, and sometimes reversing good choices because the reasoning was lost.</p><p>But here’s the trap: documenting every decision kills momentum. Over-document and you create decision gates that block progress. Under-document and you lose critical context.</p><p>The solution isn’t more documentation — it’s the right documentation at the right time.</p><h3>The Documentation Spectrum</h3><p>Not every decision deserves the same treatment. Understanding which tool to use — and when — is the key to preserving context without blocking progress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*waqDsQ9cTxnr5uH6RdLN4Q.png" /></figure><p><strong>The Golden Rule: </strong>Use the lightest-weight tool that captures the essential “why” for your decision’s scope and impact. Escalate only when necessary.</p><h3>Two Types of Documentation: How vs. Why</h3><p>Before diving into decision frameworks, it’s crucial to understand that engineering documentation serves two fundamentally different purposes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ITNbp55aGejZnnCqWp3uNA.png" /></figure><p>Operational documentation answers “how?” and “what?” — Design decision documentation answers “why?” and “why not?”</p><blockquote><strong>Example:</strong> Your README explains <em>how</em> to configure Redis caching. Your ADR or KDD explains <em>why</em> you chose Redis over Memcached (performance requirements, data persistence needs, team expertise).</blockquote><h3>Core Decision Framework Concepts</h3><p>Before we discuss when to use each decision tool, let’s define what they are and how they differ.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_lbbS6wc37OxOARi8P1qqg.png" /></figure><h3>Choosing Your Decision Framework &amp; Governance</h3><p>Making good decisions is a three-step process: First, understand your intent. Then, choose the right documentation tool. Finally, seek the appropriate approval.</p><h4>Step 1: Tactical or Strategic Intent?</h4><p>Before choosing a documentation tool, clarify whether your decision is tactical or strategic. This shapes everything that follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u346O2OPo7Ay705MjGgtaA.png" /></figure><p>When in doubt, start tactical. Over-documenting kills momentum. You can always escalate to strategic if the decision’s impact grows beyond your initial scope.</p><p><strong>Pro Tip: </strong>Tag tactical decisions with expiration dates or review triggers. Examples: “Revisit when traffic exceeds 50K DAU” or “Review in Q2 2025.” This prevents temporary solutions from becoming permanent technical debt.</p><h4>Step 2: Choose Your Documentation Approach</h4><p>Your intent from Step 1 maps directly to a documentation approach:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x0K1IJNHWDOYxDUAqFwdjw.png" /></figure><p>Decisions that significantly impact your system’s non-functional characteristics typically warrant formal documentation. Use the FURPS+ framework to assess impact across:</p><ul><li><strong>Functionality</strong> — Core capabilities and features</li><li><strong>Usability</strong> — User experience and interface design</li><li><strong>Reliability</strong> — Uptime, failover, data integrity</li><li><strong>Performance</strong> — Latency, throughput, response times</li><li><strong>Security</strong> — Auth, encryption, compliance, data protection</li><li><strong>Supportability</strong> — Maintainability, scalability, operational costs</li></ul><p>Ask yourself: <em>“Does this decision affect multiple quality attributes or set a pattern others will follow?”</em> If yes, it’s likely strategic and needs a KDD.</p><p>For enterprise-wide strategic decisions: Start with an RFC (Request for Comments) to gather stakeholder input before writing the final KDD. RFCs help build consensus and surface concerns early.</p><h4>Step 3: Seek Appropriate Approval</h4><p>Your documentation choice naturally leads into the approval tier:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZL2bxYJsNkAxPC7YhEDb0g.png" /></figure><h3>Deep Dive: Key Design Decisions (KDDs)</h3><p>Key Design Decisions deserve special attention because they’re the structured documentation for your most important engineering choices.</p><h4>The Three Core Components</h4><p>A KDD generally covers the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*Y6aWRS10kmvXM7scp38v2A.png" /></figure><ul><li><strong>Statement: </strong>What decision is made?</li><li><strong>Rationale: </strong>Why is this the right choice? What alternatives were considered?</li><li><strong>Implications: </strong>What does this mean for architecture, operations, team, and cost?</li></ul><h4>The Three-Phase Decision Process</h4><p>Whether you’re writing an ADR or a KDD, effective decision-making follows the same pattern — only the depth and formality change.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*pVPkKYD5t_KQ6sxuDFpD1A.png" /></figure><p>Each phase builds on the last. Don’t skip ahead — premature documentation leads to poor decisions, while rushed approval leads to missed perspectives.</p><h4>The Power of Documenting What You Didn’t Choose</h4><p>Here’s a paradox: the most valuable part of design decision documentation is often what you didn’t choose.</p><p><strong>Why document rejected options?</strong></p><ul><li>Prevents future teams from proposing the same solutions</li><li>Shows that you did your homework</li><li>Provides context if constraints change (<em>“We rejected serverless because of cold start latency — but if that improves…”</em>)</li><li>Builds institutional knowledge about architectural tradeoffs</li></ul><blockquote><strong>Example: </strong>“We chose PostgreSQL over MongoDB. While MongoDB would simplify our document storage, we prioritized ACID guarantees for financial transactions and leveraged our team’s deep PostgreSQL expertise. MongoDB remains a viable option for our content management system.”</blockquote><p>This saves future debates. When someone suggests MongoDB next quarter, you can point to the documented reasoning rather than starting from scratch.</p><h4>Elements of Effective Decision Documentation</h4><p>Every KDD should more or less include these essential elements:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nZszF1uoJFqypBZYDbtMxg.png" /></figure><h4><strong>Multi-Dimensional Tagging System</strong></h4><p>A well-documented decision that nobody can find might as well not exist. Effective tagging makes your decision documentation searchable, filterable, and actionable.</p><p>Rather than using generic “importance” levels, tag decisions across multiple dimensions that provide context-specific information:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eXNlW9uyBOhGsUgieWNduA.png" /></figure><h4>Quality Attributes: “Importance by Area”</h4><p>Earlier we used FURPS+ to determine whether a decision is strategic. Now we use those same quality dimensions to tag our decisions, making them discoverable when future teams face similar tradeoffs.</p><p>Rather than marking decisions as generically “high priority,” tag them by which quality attributes they critically affect. This makes importance contextual and actionable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QAMV1eTpTAeY8ARCDm9tsQ.png" /></figure><p>Note that Functionality and Usability concerns often manifest through these operational attributes — for example, a new feature requirement might be tagged Performance-Critical or Scalability-Critical based on its primary constraint.</p><h3>Making This Part of Your Culture</h3><p>Having a framework is one thing. Getting your team to actually use it is another. Here’s a few tips to make decision documentation a natural part of how your team works:</p><ul><li><strong>Start small: </strong>Pick your next major decision and document it properly. Build the habit gradually rather than rolling out everything at once.</li><li><strong>Use a Technology Radar:</strong> Categorize approved technologies as <em>Adopt</em> (use freely), <em>Trial</em> (lightweight approval needed), <em>Assess</em> (sandbox only), or <em>Hold</em> (discouraged — document why). This can turn approval processes into quick lookups.</li><li><strong>Shift governance left:</strong> Automate architecture checks in CI/CD. Flag unapproved dependencies, enforce boundaries, and require ADRs for significant changes — before code review, not after deployment.</li><li><strong>Make documentation discoverable:</strong> Store ADRs in /docs/adr/, KDDs in your central wiki. Add search, tags, and filters. If people can&#39;t find decisions in 30 seconds, they effectively don&#39;t exist.</li><li><strong>Review and retire: </strong>Schedule quarterly reviews of tactical decisions. Mark documents as <em>Active</em>, <em>Superseded</em> (with links), or <em>Archived</em>. Never delete — historical context matters.</li></ul><p>Leadership must model the behavior. When senior engineers consistently write ADRs and KDDs, teams follow. Celebrate good documentation and include it in performance reviews.</p><h3><strong>Conclusion</strong></h3><p>Remember the opening scenario? Six months from now, someone will ask “<em>Why did we build it this way?</em>” The difference between a mystery and a clear answer is the documentation you write today.</p><p><strong>The Core Principles:</strong></p><ul><li>Match documentation weight to decision impact — tactical gets ADRs, strategic gets KDDs</li><li>Default to moving fast; escalate only when necessary</li><li>Document what you didn’t choose, not just what you did</li><li>Set review triggers to prevent technical debt</li><li>Make it a habit, not a heroic effort — start small and build gradually</li></ul><p>Good decision documentation isn’t bureaucracy — it’s the context that prevents costly mistakes, the reasoning that survives personnel changes, and the leverage that makes each future decision easier than the last.</p><p><strong>The question isn’t whether you can afford to document decisions. It’s whether you can afford not to.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14577685737a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Mart Architecture: Four Approaches in 2025]]></title>
            <link>https://medium.com/@andreasherman/data-mart-architecture-four-approaches-in-2025-2f171af047c7?source=rss-cceff53c30ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f171af047c7</guid>
            <dc:creator><![CDATA[Andreas Herman]]></dc:creator>
            <pubDate>Sun, 19 Oct 2025 17:42:18 GMT</pubDate>
            <atom:updated>2025-10-19T18:21:04.159Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Understanding four approaches to building data marts — from traditional data warehouses to modern lakehouse architecture. With diagrams, pros &amp; cons, real-world examples, and a decision framework.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I_pgVZ45pnjFN-ACuQ17vQ.png" /></figure><p>Every growing organization eventually faces the same challenge: different departments need different views of the same data. Sales needs revenue dashboards. Marketing wants campaign analytics. Finance demands precise reporting.</p><p>The solution is a <strong>data mart</strong> — a focused subset of your data warehouse or data lake designed for a specific business unit or subject area. But the way you architect these data marts will determine whether you build a scalable data platform or a maintenance nightmare.</p><p>You’ve probably already heard about “lakehouse architecture” by now. It’s been the buzzword for the past few years. <strong>But lakehouse is just one of (at least) four fundamental approaches to building data marts. </strong>Understanding all four — and their tradeoffs — is key to making the right choice for your organization.</p><h3>Quick Comparison</h3><p>Before exploring each approach in detail, here’s how they compare at a glance:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*fcqoFzCqDx4DhsVILhtkJw.png" /></figure><h3>Approach 1: Dependent Data Marts (Top-Down)</h3><p>The traditional approach follows a strict hierarchy: build a centralized enterprise data warehouse first, then create department-specific data marts on top of it. Data marts never interact with source systems directly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*N5dIRRM-m7BNYerQC1C1-g.png" /></figure><h4>How It Works</h4><p><strong>Data Flow:</strong> Sources → ETL → Data Warehouse → Data Marts → Users</p><ol><li>All source systems feed into a centralized data warehouse through ETL pipelines</li><li>The warehouse stores integrated, cleaned, and historical data</li><li>Department-specific data marts are created as subsets or views of the warehouse</li><li>Business users only interact with their department’s data mart</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*J33vceIzRPMjo9DbyGLmYw.png" /></figure><blockquote><strong>When to Use This Approach: </strong>Best for large enterprises that already have significant investment in traditional data warehouse infrastructure (Oracle, Teradata, SQL Server) and where data consistency and governance are absolutely critical. However, this is rarely the right choice for new implementations in 2025.</blockquote><blockquote><strong>Real-World Example:</strong> A large retail corporation builds an enterprise data warehouse integrating POS systems, e-commerce platforms, inventory databases, and CRM. They then create a Sales Mart for revenue analysis, an Inventory Mart for supply chain optimization, and a Customer Mart for marketing campaigns. All three marts draw from the same warehouse, ensuring that revenue figures are consistent across all departments.</blockquote><h3>Approach 2: Independent Data Marts (Bottom-Up)</h3><p>The opposite extreme: each department builds its own data mart directly from operational source systems. No central warehouse required. Each mart is a standalone system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*nAyh2a-dAsMTZzaKVPn9jg.png" /></figure><h4>How It Works</h4><p><strong>Data Flow:</strong> Source → ETL (per mart) → Data Mart → Users</p><ol><li>Each department identifies their data needs independently</li><li>Individual ETL processes extract directly from source systems</li><li>Each mart transforms and stores data according to department requirements</li><li>No coordination required between departments</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*l7pTP2pue0RevP8jo-xxFA.png" /></figure><blockquote><strong>When to Use This Approach:</strong> Only for quick proof-of-concepts, prototypes, or when you have a single, well-isolated use case with no need for cross-departmental consistency. This approach is explicitly NOT recommended for production systems in 2025 — it creates technical debt that becomes exponentially harder to fix.</blockquote><blockquote><strong>Real-World Example:</strong> A mid-size e-commerce company’s marketing team needs analytics immediately. They create a Marketing Mart by directly extracting from Google Analytics, their email platform (Mailchimp), and CRM (Salesforce). Within three weeks, they have a working dashboard. Six months later, the Sales team builds their own mart with different customer definitions and revenue calculations. Executive reports become impossible / painful to reconcile.</blockquote><h3>Approach 3: Hybrid Data Marts</h3><p>The pragmatic compromise: data marts pull from multiple sources simultaneously — the central warehouse when available, operational systems when necessary, and external sources when needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*4Wpor8kJE0DLdV4oZaZs7g.png" /></figure><h4>How It Works</h4><p><strong>Data Flow:</strong> Mixed — some data flows through warehouse, some comes directly from sources</p><ol><li>Core historical data flows through the traditional warehouse path</li><li>Real-time or new data sources connect directly to marts</li><li>Legacy systems not yet integrated go directly to relevant marts</li><li>Each mart manages its own integration complexity</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*FSwVktLZINnsl99ADHvxfA.png" /></figure><blockquote><strong>When to Use This Approach: </strong>Best for organizations with multiple databases, legacy systems, and a need to balance quick wins with long-term architecture goals. This is a transitional strategy — useful during migrations from independent marts to a centralized system, or from traditional warehouse to modern lakehouse. Not recommended as a permanent architecture.</blockquote><blockquote><strong>Real-World Example:</strong> A financial services company’s Risk Analytics Mart pulls historical loan data from the enterprise data warehouse (built over 5 years), real-time fraud alerts directly from a new fraud detection system (not yet in the warehouse), and mortgage data from a legacy system acquired through a merger (incompatible with the warehouse). The mart handles the integration complexity, allowing risk analysts to work while the data team gradually integrates systems into the warehouse.</blockquote><h3>Approach 4: Lakehouse-Based Data Marts (Modern)</h3><p>The modern approach eliminates the distinction between data lake and data warehouse by creating a unified platform that provides the governance of a warehouse with the flexibility of a lake. Data marts become materialized views or tables within this unified lakehouse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*7EyKqXwHiKHtTXn6C09jvQ.png" /></figure><h4>How It Works: The Medallion Architecture</h4><p><strong>Data Flow:</strong> Sources → Lakehouse (Bronze → Silver → Gold) → BI Tools &amp; ML/AI</p><p>Lakehouse architecture typically uses a three-layer pattern called the Medallion Architecture (though other organizational patterns exist):</p><ol><li><strong>Bronze Layer:</strong> Raw data lands here exactly as received from source systems. No transformations, no cleaning — just append-only storage of source data. This preserves the ability to reprocess data with different logic later.</li><li><strong>Silver Layer:</strong> Cleaned, validated, and deduplicated data. This layer applies business rules, handles data quality issues, and creates a reliable foundation for analytics. Data types are standardized, and relationships are established.</li><li><strong>Gold Layer:</strong> This is where your data marts live. Highly refined, aggregated, and optimized for specific business use cases. Sales Mart, Marketing Mart, Finance Mart — all exist as materialized tables or views in the Gold layer.</li></ol><p><em>Note: While Medallion (Bronze/Silver/Gold) is a common pattern, lakehouses can use other organizational approaches or layer structures based on your needs.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*Wgavt7KYi-VaLqHLnG9wKA.png" /></figure><blockquote><strong>When to Use This Approach: </strong>This should be your default choice for any new data platform in 2025. Best for cloud-native organizations, companies that need both BI and ML/AI capabilities, and teams building modern data infrastructure from scratch. The main reasons NOT to choose this: you have massive investment in existing warehouse infrastructure that’s working well, or your team completely lacks the expertise and cannot upskill.</blockquote><blockquote><strong>Real-World Example:</strong> A modern tech company uses Databricks Lakehouse (or Snowflake, or another lakehouse platform) to store all company data. The Bronze layer contains raw event logs, API responses, and database snapshots. The Silver layer has cleaned user events, validated transactions, and deduplicated customer records. The Gold layer hosts a Sales Mart for business reporting, a Marketing Mart for campaign ROI analysis, and a Customer 360 Mart for support teams. Meanwhile, data scientists access Bronze and Silver layers directly to train machine learning models — all from the same platform, no data copying required.</blockquote><h3>Common Evolution Paths</h3><p>Most organizations don’t start with the perfect architecture — they evolve toward it. Here are three common migration paths:</p><h4>Traditional Path (Legacy to Modern)</h4><ol><li>Start with independent marts for urgent departmental needs (quick wins)</li><li>Build enterprise data warehouse in parallel as foundation</li><li>Migrate to hybrid approach as warehouse matures and integrates more sources</li><li>Eventually transition to fully dependent architecture with all marts fed by warehouse</li></ol><h4>Modern Cloud Path (Greenfield Implementation)</h4><ol><li>Start with lakehouse as unified platform from day one</li><li>Create data marts as views or materialized tables within Gold layer</li><li>Support both BI dashboards and ML model training from same source</li><li>Scale horizontally by adding compute and storage as needs grow</li></ol><h4>Migration Path (Modernizing Existing Infrastructure)</h4><ol><li>Keep existing data warehouse or data lake running</li><li>Add lakehouse layer on top or alongside existing systems</li><li>Gradually migrate high-value use cases and marts to lakehouse</li><li>Retire legacy systems incrementally over 12–24 months</li></ol><h3>Conclusion: The Landscape Has Changed</h3><p>Each approach has its place. Dependent data marts still work well for large enterprises with existing warehouse investments where consistency is critical. Independent marts can deliver quick wins for specific use cases. Hybrid bridges the gap during transitions. But for most new implementations, lakehouse architecture delivers the best of all worlds — warehouse governance with lake flexibility, supporting both BI and ML workloads on a unified platform.</p><p>The key is understanding your constraints and choosing accordingly. Legacy compatibility is a valid reason to stick with traditional approaches. But for new builds without those constraints, lakehouse architecture is optimized for today’s requirements: flexible infrastructure, combined BI and ML workloads, and schema evolution without rebuilding.</p><p><em>What architecture is your organization using? Have you migrated from one approach to another? What challenges did you face? I’d love to hear your experience in the comments.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*QdYQWxrIwgiFETVMUwCmJw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f171af047c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Different ways of doing Relation Extraction from text]]></title>
            <link>https://medium.com/@andreasherman/different-ways-of-doing-relation-extraction-from-text-7362b4c3169e?source=rss-cceff53c30ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/7362b4c3169e</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[nlp-training]]></category>
            <category><![CDATA[information-extraction]]></category>
            <category><![CDATA[relation-extraction]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Andreas Herman]]></dc:creator>
            <pubDate>Thu, 02 May 2019 19:22:23 GMT</pubDate>
            <atom:updated>2019-05-03T08:31:20.630Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*ooUZAuvnf3QsJXh3KyNAaQ.png" /></figure><p>Relation Extraction (RE) is the task of extracting semantic relationships from text, which usually occur between two or more entities. These relations can be of different types. E.g “Paris is in France” states a “is in” relationship from Paris to France. This can be denoted using triples, (Paris, is in, France).</p><p>Information Extraction (IE) is the field of extracting structured information from natural language text. This field is used for various NLP tasks, such as creating Knowledge Graphs, Question-Answering System, Text Summarization, etc. Relation extraction is in itself a subfield of IE.</p><p>There are five different methods of doing Relation Extraction:</p><ol><li>Rule-based RE</li><li>Weakly Supervised RE</li><li>Supervised RE</li><li>Distantly Supervised RE</li><li>Unsupervised RE</li></ol><p>We will go through all of them at a high level, and discuss some pros and cons which for each one.</p><h3>Rule-based RE</h3><p>Many instances of relations can be identified through hand-crafted patterns, looking for triples (X, α, Y) where X are entities and α are words in between. For the “Paris is in France” example, α=”is in”. This could be extracted with a regular expression.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/182/1*m8faK6w7PantKYh-DKbomA.png" /><figcaption>Named entities in sentence</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/191/1*wu_s7ATZ6sfdTL7Lj1YRGQ.png" /><figcaption>Part-of-speech tags in sentence</figcaption></figure><p>Only looking at keyword matches will also retrieve many false positive. We can mitigate this by filtering on named entities, only retrieving (CITY, is in, COUNTRY). We can also take into account the part-of-speech (POS) tags to remove additional false positive.</p><p>These are examples of doing <em>word sequence patterns, </em>because the rule specifies a pattern following the order of the text. Unfortunately these type of rules fall apart for longer-range patterns and sequences with greater variety. E.g. “Fred and Mary got married” cannot successfully be handled by a word sequence pattern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/1*HbwwcYTNFFCBp_R4_gbzfQ.png" /><figcaption>Dependency paths in sentence</figcaption></figure><p>Instead, we can make use of dependency paths in the sentences, knowing which word is having a grammatical dependency on what other word. This can greatly increase the coverage of the rule without extra effort.</p><p>We can also transform the sentences before applying the rule. E.g. “The cake was baked by Harry” or “The cake which Harry baked” can be transformed into “Harry baked the cake”. Then we are changing the order to work with our “linear rule”, while also removing redundant modifying word in between.</p><p><strong>Pros</strong></p><ul><li>Humans can create pattern which tend to have high precision</li><li>Can be tailored to specific domains</li></ul><p><strong>Cons</strong></p><ul><li>Human patterns are still often low-recall (too much variety in languages)</li><li>A lot of manual work to create all possible rules</li><li>Have to create rules for every relation type</li></ul><h3>Weakly Supervised RE</h3><p>The idea here is to start out with a set of hand-crafted rules and automatically find new ones from the unlabeled text data, through and iterative process (bootstrapping). Alternatively, one can start out with a sed of <em>seed tuples</em>, describing entities with a specific relation. E.g. seed={(ORG:IBM, LOC:Armonk), (ORG:Microsoft, LOC:Redmond)} states entities having the relation “based in”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*AVFqkeaAnpKwDC0e7NXjKw.png" /><figcaption>Agichtein, Eugene, and Luis Gravano. “Snowball: Extracting relations from large plain-text collections.” <em>Proceedings of the fifth ACM conference on Digital libraries</em>. ACM, 2000.</figcaption></figure><p>Snowball is a fairly old example of an algorithm which does this:</p><ol><li>Start with a set of seed tuples (or extract a seed set from the unlabeled text with a few hand-crafted rules).</li><li>Extract occurrences from the unlabeled text that matches the tuples and tag them with a NER (named entity recognizer).</li><li>Create patterns for these occurrences, e.g. “ORG is based in LOC”.</li><li>Generate new tuples from the text, e.g. (ORG:Intel, LOC: Santa Clara), and add to the seed set.</li><li>Go step 2 or terminate and use the patterns that were created for further extraction</li></ol><p><strong>Pros</strong></p><ul><li>More relations can be discovered than for Rule-based RE (higher recall)</li><li>Less human effort required (does only require a high quality seed)</li></ul><p><strong>Cons</strong></p><ul><li>The set of patterns become more error prone with each iteration</li><li>Must be careful when generating new patterns through occurrences of tuples, e.g. “IBM shut down an office in Hursley” could easily be caught by mistake when generating of patterns for the “based in” relation</li><li>New relation types require new seeds (which have to be manually provided)</li></ul><h3>Supervised RE</h3><p>A common way to do Supervised Relation Extraction is to train a stacked binary classifier (or a regular binary classifier) to determine if there is a specific relation between two entities. These classifiers take features about the text as input, thus requiring the text to be annotated by other NLP modules first. Typical features are: context words, part-of-speech tags, dependency path between entities, NER tags, tokens, proximity distance between words, etc.</p><p>We could train and extract by:</p><ol><li>Manually label the text data according to if a sentence is relevant or not for a specific relation type. E.g. for the “CEO” relation:<br>“Apple CEO Steve Jobs said to Bill Gates.” is relevant<br>“Bob, Pie Enthusiast, said to Bill Gates.” is not relevant</li><li>Manually label the relevant sentences as positive/negative if they are expressing the relation. E.g. “Apple CEO Steve Jobs said to Bill Gates.”:<br>(Steve Jobs, CEO, Apple) is positive<br>(Bill Gates, CEO, Apple) is negative</li><li>Learn a binary classifier to determine if the sentence is relevant for the relation type</li><li>Learn a binary classifier on the relevant sentences to determine if the sentence expresses the relation or not</li><li>Use the classifiers to detect relations in new text data.</li></ol><p>Some choose to not train a “relevance classifier”, and instead let a single binary classifier determine both things in one go.</p><p><strong>Pros</strong></p><ul><li>High quality supervision (ensuring that the relations that are extracted are relevant)</li><li>We have explicit negative examples</li></ul><p><strong>Cons</strong></p><ul><li>Expensive to label examples</li><li>Expensive/difficult to add new relations (need to train a new classifier)</li><li>Does not generalize well to new domains</li><li>Is only feasible for a small set of relation types</li></ul><h3>Distantly Supervised RE</h3><p>We can combine the idea of using seed data, as for Weakly Supervised RE, with training a classifier, as for Supervised RE. However, instead of providing a set of seed tuples ourselves we can take it from an existing Knowledge Base (KB), such as Wikipedia, DBpedia, Wikidata, Freebase, Yago.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*XLxaZjObLutv86ogf3HIBQ.png" /><figcaption>Distantly Supervised RE schema</figcaption></figure><ol><li>For each relation type we are interest in the KB</li><li>For each tuple of this relation in the KB</li><li>Select sentences from our unlabeled text data that match these tuples (both words of the tuple is cooccurring in the sentence), and assume that these sentences are positive examples for this relation type</li><li>Extract features from these sentences (e.g. POS, context words, etc)</li><li>Train a supervised classifier on this</li></ol><p><strong>Pros</strong></p><ul><li>Less manual effort</li><li>Can scale to use large amount of labeled data and many relations</li><li>No iterations required (compared to Weakly Supervised RE)</li></ul><p><strong>Cons</strong></p><ul><li>Noisy annotation of training corpus (sentences that have both words in the tuple may actually not describe the relation)</li><li>There are no explicit negative examples (this can be tackled by matching unrelated entities)</li><li>Is restricted to the Knowledge Base</li><li>May require careful tuning to the task</li></ul><h3>Unsupervised RE</h3><p>Here we extract relations from text without having to label any training data, provide a set of seed tuples or having to write rules to capture different types of relations in the text. Instead we rely on a set of very general constraints and heuristics. It could be argued if this is truly unsupervised, since we are using “rules” which are at a more general level. Also, for some cases even leveraging small sets of labeled text data to design and tweak the systems. Never the less, these systems tend to require less supervision in general. Open Information Extraction (Open IE) generally refers to this paradigm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*qO9xlEFBp9KfS-Aq7o0ZsA.png" /><figcaption>TextRunner algorithm. Bach, Nguyen, and Sameer Badaskar. “A review of relation extraction.” <em>Literature review for Language and Statistics II</em> 2 (2007).</figcaption></figure><p>TextRunner is an algorithm which belongs to these kinds of RE solutions. Its algorithm can be described as:</p><p><strong>1. Train a self-supervised classifier on a small corpus</strong></p><ul><li>For each parsed sentence, find all pairs of noun phrases (X, Y) with a sequence of words r connecting them. Label them as positive examples if they meet all of the constraints, otherwise label them as negative examples.</li><li>Map each triple (X, r, Y) to a feature vector representation (e.g. incorporating POS tags, number of stop words in r, NER tag, etc.)</li><li>Train a binary classifier to identify trustworthy candidates</li></ul><p><strong>2. Pass over the entire corpus and extract possible relations</strong></p><ul><li>Fetch potential relations from the corpus</li><li>Keep/discard candidates according to if the classifier considers them as trustworthy or not</li></ul><p><strong>3. Rank-based assessment of relations based on text redundancy</strong></p><ul><li>Normalize (omit non-essential modifiers) and merge relations that are same</li><li>Count the number of distinct sentences the relations are present in and assign probabilities to each relation</li></ul><p><a href="https://github.com/dair-iitd/OpenIE-standalone">OpenIE 5.0</a> and <a href="https://nlp.stanford.edu/software/openie.html">Stanford OpenIE</a> are two open-source systems that does this. They are more modern than TextRunner (which was just used here to demonstrate the paradigm). We can expect a lot of different relationship types as output from systems like these (since we do not specify what kind of relations we are interested in).</p><p><strong>Pros</strong></p><ul><li>No/almost none labeled training data required</li><li>Does not require us to manually pre-specify each relation of interest, instead it considers all possible relation types</li></ul><p><strong>Cons</strong></p><ul><li>Performance of the system depends a lot on how well constructed the constraints and heuristics are</li><li>Relations are not as normalized as pre-specified relation types</li></ul><h3>Ending</h3><p>I hope you enjoyed this reading! Please comment if there is anything you think should be in this article, what RE method you prefer and why, or anything you want to share regarding this topic. Cheers!</p><h3>References</h3><p><a href="http://www.cis.uni-muenchen.de/~fraser/information_extraction_2016_lecture/09_relation_extraction.pdf">Relation Extraction, Huck and Fraser 2016, (presentation)</a></p><p><a href="https://cs.nyu.edu/courses/spring17/CSCI-GA.2590-001/DependencyPaths.pdf">Rule Extraction: Rule-based Approaches, Grishman 2017 (presentation)</a></p><p><a href="https://www.youtube.com/watch?v=3HNhhqj0di0">Using Patterns to Extraction Relations (youtube)</a></p><p><a href="https://www.nltk.org/book/ch07.html">Extracting Information from Text, NLTK 2001 (online book)</a></p><p><a href="http://www.mathcs.emory.edu/~eugene/talks/dl00.ppt">Snowball: Extracting Relations from Large Plain-Text Collections (presentation)</a></p><p><a href="https://www.youtube.com/watch?v=DnP5uN2EuWA">Semi-Supervised and Unsupervised Relation Extraction (youtube)</a></p><p><a href="https://kgtutorial.github.io/">Mining Knowledge Graphs from Text (tutorial)</a></p><p><a href="https://gate.ac.uk/sale/talks/gate-course-may10/track-3/module-11-ml-adv/module-11-relations.pdf">Relation Extraction GATE</a></p><p>Banko, Michele, et al. “Open information extraction from the web.” <em>IJCAI</em>. Vol. 7. 2007.</p><p>Fader, Anthony, Stephen Soderland, and Oren Etzioni. “Identifying relations for open information extraction.” <em>Proceedings of the conference on empirical methods in natural language processing</em>. Association for Computational Linguistics, 2011.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7362b4c3169e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Get started with Bayesian Inference]]></title>
            <link>https://medium.com/@andreasherman/get-started-with-bayesian-inference-cec9ad4ccd55?source=rss-cceff53c30ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/cec9ad4ccd55</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[bayesian-statistics]]></category>
            <category><![CDATA[pymc3]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Andreas Herman]]></dc:creator>
            <pubDate>Thu, 11 Apr 2019 18:56:54 GMT</pubDate>
            <atom:updated>2019-04-11T18:56:54.386Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lbauiq6oE3hmC7SwVF9qow.png" /></figure><p>If you have worked with Machine Learning and not given Bayesian inference much attention, I would say it is definitely something to look into. You will not only obtain a new perspective on how to look at different machine learning models, but also be equipped with a new toolbox of approaches to attack data analysis problems with.</p><p>In this article, I will explain some basics of what Bayesian inference is, when it can be useful and provide some examples.</p><p><strong>What is Bayesian inference?</strong><br>According to Richard McElreath in his “Statistical Rethinking” book, Bayesian inference uses Bayes’ Theorem (also incorporating prior knowledge into our analysis) to quantify uncertainty about parameters and models.</p><p><strong>Let’s quickly revise Bayes’ Theorem</strong></p><blockquote>Bayes’ Theorem: P(θ|D) = P(D|θ)P(θ) / P(D)</blockquote><p>θ is a parameter in our probabilistic model and D our data. We are calculating the posterior distribution P(θ|D) - the probability of how plausible different parameter values are, given the data, based on:</p><ul><li>Likelihood P(D|θ): the probability of observing the data, given the parameter θ taking different values. This is what we usually maximize in traditional Frequentist Machine Learning (recall MLE).</li><li>Prior P(θ): the probability of θ taking different values based on what we know about the parameter before seeing the data. It can for instance be non-informative (flat - every value is equally likely), weakly informative (regularization - guarding against extreme associations between variables), subjective (personal beliefs in some values being more plausible). The prior can also simply be the posterior from another problem (or the same problem but now we just have new observations).</li><li>Evidence P(D): the probability of observing the data we have. This is also referred to as marginal likelihood or average likelihood. It is the average probability of the data given all possible values θ can take.</li></ul><p>When we are doing inference, we often care only about the relative values of the parameters. In this sense we can omit the marginal likelihood and see the posterior as being proportional: P(θ|D)∝P(D|θ)P(θ). This is enough to select values of θ and understand the posterior’s shape, since P(D) is constant for the same model.</p><p><strong>We can easily include prior knowledge</strong></p><blockquote>With the Bayesian framework we can easily incorporate prior knowledge as long as it is described as a distribution.</blockquote><p>This could make the model more robust and less sensitive to bad/small data, since knowledge we might have can guide the model in the right direction.</p><p>One might argue that this biases the results by our own beliefs. However, it is important to remember that no statistical model is correct, but is merely approximations of describing different properties of the world in certain contexts. If we know some of the properties we expect, it could lead to a better solution to the problem than relying entirely on the observations expressed with the likelihood. For instance, if a lot of research has been conducted in an area, it would be absurd to start from scratch and not use it when modeling. Priors offer a powerful way to express this knowledge in the model. This is not natural for Frequentist models.</p><blockquote>When we have a lot of data, Bayesian and Frequentist inference eventually converge to the same.</blockquote><p>This is because the prior knowledge will get washed away by more observations. Because Frequentist methods can be very fast, they may be more convenient to use when you have big data. However, more difficult analytical problems often build on medium data, or especially small data. Incorporating prior knowledge here could be a good idea.</p><p><strong>How do we set up a model?<br></strong>Just to make things concrete, let’s set up a probabilistic model for the classical coin flipping example in the Bayesian framework. We want to decide the distribution of heads and tails. We could use a Bernoulli distribution for observing heads as likelihood y~Bernoulli(n=1,p=θ), where p=0.5 if the coin is fair. If we have no knowledge about different values of p, we could use a Uniform distribution to describe it, θ~Uniform(0,1).</p><p>To make things a little bit more fun, let’s describe a model with two prior distributions. For example, if we want to model the length of bananas, we can use a Normal distribution as likelihood, y~Normal(μ, σ). We now have two parameters to specify priors for. We could perhaps make a guess that a banana is around 50 to 250 mm long and assign μ~Uniform(50,250), and assume that is varies quite much by σ~HalfNormal(0, 50). Remember, these are just priors. The data will still play its role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MzitmEe6nq9YAneXkUNqiQ.png" /><figcaption>Figure 1. The posterior distribution for the banana example with data from <a href="http://www.statistics4u.com/fundstat_eng/data_bananas.html">http://www.statistics4u.com/fundstat_eng/data_bananas.html</a></figcaption></figure><p>As we condition on the data and obtain the posterior, we can see in figure 1 that lengths of bananas, based on our prior and data, take on multiple plausible values for μ and σ, having highest probability around μ=165 and σ=26.</p><p><strong>How do we get the posterior?<br></strong>In order to obtain the posterior distribution we need to calculate the product of the prior and likelihood. This seems easy! However, it can be quite cumbersome for many dimensions and large spaces. We can instead try to approximate it. MCMC is a family of methods used to do this (there are other ways too). MCMC basically searches the posterior space and returns samples as a way of mapping out the surface of the distribution (this can still sometimes be quite heavy, but is becoming more feasible as computational resources become more available along with advancements in ways of approximating the posterior).</p><p>In some cases, we can actually calculate the posterior analytically. Conjugate priors make it possible to do so. This only applies to certain cases. For many years, Bayesian analysis was restricted to use conjugate priors; now with modern computational methods we can solve Bayesian problems whether we use conjugate priors or not. We can kind of specify any probabilistic monster model and do not have to bother about it being analytically derivable. The sampler takes care of it!</p><p><strong>Obtaining uncertainties in many aspects<br></strong>We can look at different aspects of uncertainties when evaluating our model. Bayesian inference provide this quite naturally.</p><blockquote>Instead of only making use of a single set of plausible parameter values (point estimate), e.g. MAP, we make use of the entire posterior distribution of values in order to determine model uncertainties.</blockquote><p>The posterior tells the probability for how well different values of θ describe the data. If a majority of the probability mass is close to some parameter value, we are more certain that this value is probable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TFQpWY1MXrMUiP8Bw8OWxQ.png" /><figcaption>Figure 2. Observing more observations of flipping a fair coin, we become more certain that the value for a parameter p of the Bernoulli distribution is 0.5. This is reflected in the posterior distribution’s shape, where the right distribution with more observations is more narrow than the left one with fewer observations.</figcaption></figure><p>We can, for instance, use intervals of defined mass to summarize the posterior distribution. <em>Highest Posterior Density Interval </em>(HPDI) is a <em>Credible Interval</em>. A <em>Credible Interval</em> contains a certain probability mass between its two values (e.g. 50% or 95%). HPDI makes up the narrowest interval of the posterior containing the specified probability mass.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*98ZJUgTc_dOh0It-FKcpbQ.png" /><figcaption>Figure 3. Showing the HPDI for μ and σ for banana length example.</figcaption></figure><p>The convenience of using many samples to approximate the posterior distribution with (e.g. using MCMC) is that we can compute the HPDI (or any CI) rather easily (by just comparing proportions of samples being above or below certain parameter values).</p><blockquote>We can also propagate uncertainties in our model to the target we are interested in. This would give us the <em>posterior predictive distribution</em>, being an interval of target values with different probabilities.</blockquote><p><strong>Getting predictions from the posterior<br></strong>Sometimes we do not want an entire distribution of target predictions as output (even though it is very informative). Sometimes we just want a single value to make a decision on. One way would be to select a single set of parameters (point estimate) from the posterior distribution to get one target prediction.</p><p>It is common to take the value with highest posterior probability, <em>maximum a posteriori</em> (MAP), which is the mode of the posterior distribution. However, this should be selected with respect to the decision we are trying to make, and how serious it is making different types of “mistakes”. This can be governed by a <em>loss function</em>.</p><blockquote>Different loss functions imply different point estimates from the posterior.</blockquote><p>Let’s for example say that we running a Weather Channel and want to predict if it is going to rain or not. People tend to be more upset if we say that it will not rain and then it actually rains, opposed to saying that it will rain and then it doesn’t (e.g. perhaps someone only brings an umbrella if we say it will rain). The seriousness on making different mistakes here is not symmetrical. With a loss function we can emphasize how to select this point estimate to be successful with our Weather Channel. E.g. we could instead say there is a 20 percent chance of rain when it actually is 5 percent.</p><p>Many common loss functions exists because of mathematical convenience. The squared loss is for instance the mean of the posterior distribution, and the absolute loss is the median of the posterior (which splits the probability mass half below and half above).</p><p>With the traditional Frequentist way, we are optimizing some predictive loss when we are training the model. A model trained on a certain predictive loss will most likely not work well for other loss functions. With the Bayesian way, we make use of loss functions after we have calculated the posterior distribution.</p><blockquote>We first find plausible parameter values, and once this is done, a loss function can be used to obtain the final set of parameters to make some decision.</blockquote><p><strong>What about regression?</strong><br>We can easily specify regression models with the Bayesian framework. For the banana example we have a Normal distribution as likelihood, where μ is now not estimated but computed by a linear function of predictor values, y~Normal(μ=α+βx, σ). Then we get three priors to specify: intercept α, slope β, and the residual error of of the regression σ.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*Ha-2KIWYuGmAJBGuIUrrBA.png" /><figcaption>Figure 4. Uncertainty in α and β simply propagated to y, showing different possible linear functions expressed by the posterior.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*gBursWhDDcnD3oRn0tRrlA.png" /><figcaption>Figure 5. Uncertainty in target variable y with HDPI.</figcaption></figure><p>Using the weight of a banana as x predictor variable, we can see the uncertainty in α and β parameters in figure 4, propagated to the target variable y. It is propagated by simply calculating y=α+βx.</p><p>Figure 5 shows the uncertainty in the y variable, naturally including the uncertainty expressed in α and β, while also taking into account the standard deviation (error) σ, and its uncertainty.</p><p>The darker line in both figure 4 and 5 is the mean α and β from the posterior. If we want our regression model to use the squared residual errors, we could select the MAP (mode) parameter values.</p><p><strong>Choosing likelihood distribution<br></strong>The choice of likelihood function describing the data have a big impact on the model. For instance, if we know our data has outliers, we could instead use a Student’s T distribution to specify the likelihood, making it more robust. If we know there can only be positive discrete values, we could use Poisson distribution.</p><blockquote>The likelihood distribution is an important model choice.</blockquote><p>The likelihood distribution allows us to specify known properties of the data. Choosing one distribution over another could be argued to be subjective. An alternative for handling outliers is to remove them before modeling, however that could also be considered subjective (we are just moving the subjective decision to preprocessing instead of modeling).</p><p><strong>Conclusions</strong></p><ul><li>With the Bayesian framework we can easily express prior knowledge about the problem (either in form prior distributions or by the choice of likelihood function).</li><li>Saying that Bayesian inference is subjective is true, but so is all modeling. Either we make a decision during modeling, or we make a decision before (data gathering, preprocessing, feature engineering) or after (loss functions, evaluations). This is not a problem, as long as the model perform well in the context it is applied.</li><li>If we have a lot of data, Bayesian and Frequentist ways converge to the same result since the posterior is dominated by likelihood. Then one might as well use traditional (Frequentist) Machine Learning, since these models often are quicker to train. However, having a lot of data which is representative is unfortunately quite rarely the case.</li><li>We can use the entire posterior distribution of possible parameter values to naturally describe uncertainty in the model, and in the target variable.</li><li>The posterior is calculated to find plausible parameter values independent of the loss function. To make decisions based on the model, a loss function could be used to select a set of parameters for some specific context.</li></ul><p>I hope this article was useful as some starting insights in Bayesian inference. If it was, I might write more articles about Bayesian inference. Please let me know, all feedback is appreciated!</p><p><strong>References</strong></p><ul><li>Statistical Rethinking, Richard McElreath</li><li>Bayesian Analysis with Python, Osvaldo Martin</li><li>Bayesian Methods for Hackers: Probabilistic Programming and Bayesian Inference, Cameron Davidson-Pilon</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cec9ad4ccd55" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>