1 / 51

Metadata: Automated generation

Explore the feasibility of high-quality automatically generated metadata for digital libraries using natural language processing. Includes information extraction and sublanguage analysis.

mziemer
Download Presentation

Metadata: Automated generation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Metadata:Automated generation Thanks to: Carl Lagoze, Liz Liddy, Judith Klavans

  2. Motivation • In some cases metadata is important • Non-textual objects, especially data • Not just search (browse, similarity, etc.) • Intranets, specialized searching • Deep web • Human-generated metadata is problematic • Expensive when professionally done • Flakey or malicious when non-professionally done

  3. How much can automation help? • Trivial approaches • Page scraping and trivial parsing • Non-trivial approaches • Natural Language Processing • Machine Learning • Naïve Bayes • Support Vector Machines • Logistic Regression

  4. DC-dot • Heuristic parsing of HTML pages to produce embedded Dublin Core Metadata • http://www.ukoln.ac.uk/metadata/dcdot/

  5. Breaking the MetaData Generation Bottleneck • Syracuse University, U. Washington – Automatic Metadata Generation for course-oriented materials • Goal: Demonstrate feasibility of high-quality automatically-generated metadata for digital libraries through Natural Language Processing • Data: Full-text resources from ERIC and the Eisenhower National Clearinghouse on Science & Mathematics • Metadata Schema: Dublin Core + Gateway for Educational Materials (GEM) Schema

  6. Metadata Schema Elements • GEM Metadata Elements • Audience • Cataloging • Duration • Essential Resources • Grade • Pedagogy • Quality • Standards • Dublin Core Metadata Elements • Contributor • Coverage • Creator • Date • Description • Format • Identifier • Language • Publisher • Relation • Rights • Source • Subject • Title • Type

  7. Method: Information Extraction • Natural Language Processing • Technology which enables a system to accomplish human-like understanding of document contents • Extracts both explicit and implicit meaning • Sublanguage Analysis • Utilizes domain and genre-specific regularities vs. full-fledged linguistic analysis • Discourse Model Development • Extractions specialized for communication goals of document type and activities under discussion

  8. Information Extraction • Types of Features: • Non-linguistic • Length of document • HTML and XML tags • Linguistic • Root forms of words • Part-of-speech tags • Phrases (Noun, Verb, Proper Noun, Numeric Concept) • Categories (Proper Name & Numeric Concept) • Concepts (sense disambiguated words / phrases) • Semantic Relations • Discourse Level Components

  9. Sample Lesson Plan Stream Channel Erosion Activity Student/Teacher Background: Rivers and streams form the channels in which they flow. A river channel is formed by the quantity of water and debris that is carried by the water in it. The water carves and maintains the conduit containing it. Thus, the channel is self-adjusting. If the volume of water, or amount of debris is changed, the channel adjusts to the new set of conditions. ….. ….. Student Objectives: The student will discuss stream sedimentation that occurred in the Grand Canyon as a result of the controlled release from Glen Canyon Dam. …

  10. NLP Processing of Lesson Plan Input: The student will discuss stream sedimentation that occurred in the Grand Canyon as a result of the controlled release from Glen Canyon Dam. Morphological Analysis: The student will discuss stream sedimentation that occurred in the Grand Canyon as a result of the controlled release from Glen Canyon Dam. Lexical Analysis: The|DT student|NN will|MD discuss|VB stream|NN sedimentation|NN that|WDT occurred|VBD in|IN the|DT Grand|NP Canyon|NP as|IN a|DT result|NN of|IN the|DT controlled|JJ release|NN from|IN Glen|NP Canyon|NP Dam|NP .|.

  11. NLP Processing of Lesson Plan(cont’d) Syntactic Analysis - Phrase Identification: The|DT student|NN will|MD discuss|VB <CN> stream|NN sedimentation|NN </CN> that|WDT occurred|VBD in|IN the|DT <PN> Grand|NP Canyon|NP </PN> as|IN a|DT result|NN of|IN the|DT <CN> controlled|JJ release|NN </CN> from|IN <PN> Glen|NP Canyon|NP Dam|NP </PN> .|. Semantic Analysis Phase 1- Proper Name Interpretation: The|DT student|NN will|MD discuss|VB <CN> stream|NN sedimentation|NN </CN> that|WDT occurred|VBD in|IN the|DT <PN cat=geography/location> Grand|NP Canyon|NP </PN> as|IN a|DT result|NN of|IN the|DT <CN> controlled|JJ release|NN </CN> from|IN <PN cat=geography/structures> Glen|NP Canyon|NP Dam|NP </PN> .|.

  12. NLP Processing of Lesson Plan(cont’d) Semantic Analysis Phase 2 - Event & Role Extraction Teaching event:discussactor:student topic:stream sedimentation event:stream sedimentationlocation:Grand Canyon cause:controlled release

  13. Automatically Generated Metadata Title: Grand Canyon: Flood! - Stream Channel Erosion ActivityGrade Levels: 6, 7, 8 GEM Subjects: Science--Geology Mathematics--Geometry Mathematics--MeasurementKeywords: Proper Names:Colorado River (river), Grand Canyon (geography / location), Glen Canyon Dam (buildings&structures) Subject Keywords: channels, clayboard, conduit, controlled_release, cookie_sheet, cup, dam, flow_volume, hold, paper_towel, pencil, reservoir, rivers, roasting_pan, sand, sediment, streams, water,

  14. Automatically Generated Metadata (cont’d) Pedagogy: Collaborative learning Hands on learning Tool For: Teachers Resource Type: Lesson PlanFormat: text/HTMLPlaced Online: 1998-09-02 Name: PBS Online Role: onlineProvider Homepage: http://www.pbs.org

  15. Project CLiMB Computational Linguistics for Metadata Building • Columbia University 2001-2004 • Extract metadata from associated scholarly texts • Use machine generation to assist expert catalogers

  16. Problems in Image Access • Cataloging digital images • Traditional approach: manual expertise • labor intensive • Expensive • General cataloguerecords not usefulfor discovery • Can automated techniques help? • Using expert input • Understanding contextual information • Enhancing existing records

  17. CLiMB Technical Contribution • CLiMB will identify and extract • proper nouns • terms and phrases • from text related to an image: September 14, 1908, the basis of the Greenes' final design had been worked out. It featured a radically informal, V-shaped plan (that maintained the original angled porch) and interior volumes of various heights, all under a constantly changing roofline that echoed the rise and fall of the mountains behind it. The chimneys and foundation would be constructed of the sandstone bouldersthat comprised the local geology, and the exterior of the house would be sheathed in stained split-redwood shakes. —Edward R. Bosley. Greene & Greene. London : Phaidon, 2000. p. 127

  18. C.V. Starr East Asian Library, Columbia University Chinese Paper Gods Anne S. Goodrich Collection

  19. Pan-hu chih-shen God of tigers

  20. Alex Katz American, born 1927 Six Women, 1975 Oil on canvas 114 x 282 in.

  21. Alex Katz has developed a remarkable hybrid art that combines the aggressive scale and grandeur of modern abstract painting with a chic, impersonal realism. During the 1950s and 1960s—decades dominated by various modes of abstraction—Katz stubbornly upheld the validity of figurative painting. In major, mature works such as Six Women, the artist distances himself from his subject. Space is flattened, as are the personalities of the women, their features simplified and idealized: Katz’s models are as fetching and vacuous as cover girls. The artist paints them with the authority and license of a master craftsman, but his brush conveys little emotion or personality. In contrast to the turbulent paint effects favored by the abstract expressionist artists, Katz pacifies the surface of his picture. Through the virtuosic technique of painting wet-on- wet, he achieves a level and unifying smoothness. He further “cools” the image by adopting the casually cropped composition and overpowering size and indifference of a highway billboard or big-screen movie. In Six Women, Katz portrays a gathering of young friends at his Soho loft. The apparent informality of the scene is deceptive. It is, in fact, carefully staged. Note the three pairs of figures: the foreground couple face each other; the middle ground pair alternately look out and into the picture; and the pair in the background stand at matching oblique angles. The artist also arranges the women into two conversational triangles. Katz studied each model separately, then artfully fit the models into the picture. The image suggests an actual event, but the only true event is the play of light. From the open windows, a cordial afternoon sunlight saturates the space, accenting the features of each woman. http://ncartmuseum.org/collections/offviewcaptions.shtml#alex

  22. Segmentation • Determination of relevant segment • Difficult for Greene & Greene • The exact text related to a given image is difficult to determine • Use of text object identifier to find this text • Easy for Chinese Paper Gods and for various art collections • Decision: set initial values manually and explore automatic techniques

  23. Text Analysis and Filtering • Divide text into words and phrases • Gather features for each word and phrase • E.g. Is it in the related text? Is it very frequent? • Develop algorithms using this information • Use formulae to rank for usefulness as potential metadata

  24. What Features do we Track? • Lexical features • Proper noun, common noun • Relevancy to domain • Text Object Identifier (TOI) • Presence in the Art & Architecture Thesaurus • Presence in the back-of-book index • Statistical observations • Frequency in the text • Frequency across a larger set of texts, within and outside the domain

  25. Techniques for Filtering • Take an initial guess • Collect input from users • Alter formulae based on feedback • Use automatic techniques to guess (machine-learning) • Collect input from users • Run programs to make predictions based on given opinions (Bayesian networks, classifiers, decision trees) • The CLiMB approach: Use both techniques!

  26. Georgia O'Keeffe (American, 1887-1986) Cebolla Church, 1945 Oil on canvas, 20 1/16 x 36 1/4 in. (51.1 x 92.0 cm.) Purchased with funds from the North Carolina Art Society (Robert F. Phifer Bequest), in honor of Joseph C. Sloane, 72.18.1 North Carolina Museum of Art <http://ncartmuseum.org/collections/highlights/20thcentury/20th/1910-1950/038_lrg.shtml>

  27. MARC format 100 O’Keeffe, Georgia, ≠d 1887 -1986. 245 Cebolla church ≠ h [slide] / ≠ c Georgia O’Keeffe. 260 ≠c2003 300 1 slide : ≠ b col. • Object date: 1945. 500 Oil on canvas. 500 20 x 36 in. 535 North Carolina Museum of Art ≠ b Raleigh, N.C. 650 Painting, American ≠ y 20th century. • Women artist ≠ z United States 650 Church buildings in art.

  28. MARC format with CLiMB subject terms 100 O’Keeffe, Georgia, ≠d 1887 -1986. 245 Cebolla church ≠ h [slide] / ≠ c Georgia O’Keeffe. 260 ≠c2003 300 1 slide : ≠ b col. 500 Object date: 1945. 500 Oil on canvas. 500 20 x 36 in. 535 North Carolina Museum of Art ≠ b Raleigh, N.C. 650 Painting, American ≠ y 20th century. 650 Women artist ≠ z United States 650 Church buildings in art. CLiMB New Mexican highlands CLiMB village of Cebolla CLiMB adobe Church of Santo Niño CLiMB sagging, sun-bleached walls CLiMB rusted tin roof CLiMB isolation CLiMB human endurance CLiMB window

  29. Issues on OAI metadata for CiteSeer • Automatic metatagging for CiteSeer • Consistency/accuracy of metatags • Implementation architectures for metadata generation, storage and access • static vs dynamic • New metadata • Metadata Presentation

  30. Automatic Metagging • Regular expressions • Generating wrappers manually using regular expression match is tedious, time consuming and errorprone, not portable to a new domain • Widely varying format and content for the information to be extracted • Rely much on domain expertise/experience on the information to be extracted • Needs re-coding when new expression appears • Machine learning  • Automatic OAI metadata wrapper generation • Learn from training samples • Automatic, time economical • Robust -- accuracy of the metatags

  31. Description of the document Link to the original document Relations among documents Metadata Exported • Dublin Core metadata standard • 14 elements: • Title • Creator • Subject : keywords • Description: abstract • Contributor • Publisher • Date : archive date • Type • Format • Identifier • Source • Relation • References • Is Referenced By • Language • Rights • Missing item:

  32. Algorithms for MetaData ExtractionRegular Expression Match[citeseerdoc] • Header Generation • the body of the document is stored in doc{bodytext}), • if (there is a match for (Abstract | ABSTRACT | Introduction) in doc{bodytext} ){ everything in between the beginning of doc and the match will be the header }else if (there is a match for (Reference | Bibliography) (possibly preceded by section number) { everything in between the beginning of doc{bodytext} and the occurrence [all of doc{bodytext}] } If doc{header} as generated above is too long, it is truncated to nMaxHeaderLength and "..." is appended to it If doc{header} as generated above is too short, the status of the task is Error

  33. Algorithms for MetaData ExtractionRegular Expression Match • Abstract extraction (starting from copy of doc{bodytext}): if (there is a match for "abstract" later followed by a match for "Introduction“) { everything in between is considered to be the abstract and is placed in doc{abstract} }else if (there is a match for "abstract" only ) { then from 100 to 1000 of the characters following the occurrence are aggregated and placed in doc{abstract} }else if (there is a match for the following pattern : "This (paper | memo | technical)(.*)\n\n" ) { then everything in between the (paper | memo | technical) occurrence and the two new lines is considered to be the abstract and is placed in doc{abstract} }else { place in doc{abstract} the substring of doc{bodytext} that is located between the end of the header (as represented by doc{header}) and another 1000 characters further ahead ( and tags being removed) } If the abstract is too long (as stored in doc{abstract}), it is truncated to nMaxAbstractLength

  34. Algorithms for MetaData ExtractionRegular Expression Match • Body Text and ReferenceExtraction • Localizes the start of the referencepart : this is defined to be the last occurrence of one of the following words (followed or not by any number of tags of the form <[^>] >): REFERENCES | References | BIBLIOGRAPHY | Bibliography | REFERENCES AND NOTESThis position identifies the substring that is to be put in the doc{bodytext} and the substring that is to be put in doc{citetext} • Removes (occurrences of) appendices / acknowledgements of doc{citetext} (removes word plus then everything in-between new line and next line) • Removes (occurrences of) figures / tables • Removes "extraneous garbage" after citations, that is removes groups consisting of one new line followed by 0 to 40 characters that occur 10 times • Removes form feeds in doc{citetext}, i.e. occurrences of '\f' • If both doc{bodytext} and doc{citetext} are defined and have reached the minimum length (respectively nMinBodyTextLength and mMinCiteTextLength) then returns 0

  35. Algorithms for MetaData ExtractionRegular Expression Match • MakeReferenceList The following operations are performed to identity how citations are marked in the document • removes page breaks • determines marker type by counting the number of occurrences of the following and comparing each count to nLines/5 • Bracket Square ( reg. exp. is : m/\n\s*\[/sg) • Bracket Parenthesis • Naked Number • Naked Number with Dot • determines yeartype • determines if cites are cleanly spaced in the text (i.e. more than nLines/5 cites per group of 2 to 5 lines • determines format of cite start and cite end

  36. Algorithms for MetaData ExtractionRegular Expression Match • Processes a single citation • The reference length, that is the length of item{text}, must be within nMinReferenceLength and nMaxReferenceLength • Removes extra spaces and carriage returns and stores the resulting reference text in item{text} • Check validity of citation : underlying call to parse::ValidCite to validate the citation, in case the returned value is false returns • Extract title information : underlying call to cite::GuessTitle to get the title of the paper/document to which this citation refers • Extract ID information : underlying call to parse::FindID, returns if fails • Extract Year information : underlying call to parse:::FindYear • Extract Context information : underlying call to parse::FindContextMatches, the result of this call (an array) is serialized to a string (separator is character | )and stored in item{position} • Updates the initial parameter array by pushing the citation hash in the array items

  37. Algorithms for MetaData ExtractionRegular Expression Match • ValidCite:Tests the validity of the citation and returns the result of the test • 4 tests to decide whether this citation, as represented by the hash,  is valid : • if item{text} matches /^(proceeding | in proc)/i returns 0 (this should be necessary when the citation delineation is improved) • If there is too little punctuation (count of commas, points and double quotes compared to (length of item{text})/50) then returns 0 • if two different years occur in the citation, returns 0 • if there is a lack of word (at least two words of at least 3 letters each are expected) then returns 0 • returns 1 otherwise, that is, the citation is valid and has successfully passed all the tests above

  38. Algorithms for MetaData ExtractionRegular Expression Match • FindID: Set ID field (citation ID tag), returns 1 on error. Description :Tries to locate the citation ID (in the document) using one of the following regular expressions : • \[[^\]]+\] : e.g. [3] or [Omlin 93] • \([^\]]+\) : e.g. (3) or (Omlin 93) • (\d+)\.? : e.g. 3. If none of the above work, another attempt is made by extract the year from the author field and set this as ID If all attempts fail, then returns 1 Returns 0 otherwise

  39. Algorithms for MetaData ExtractionRegular Expression Match • FindYear: Set year field If(year type has been set to "pastmarker" in doc and there is only one year occurrence in item{text} (pattern for year is \b(19|20)\d\d\b) ) { item{year} is set to the year found }else { matches text with year pattern and sets item{year} to this year }

  40. Architectures for Exporting Metadata • Database Intermediated Metadata Database • For example, MySQL • Store the metadata records of the OAI XML format • A set of indexes • Real-time Metadata Generation • No metadata database • Generate the metadata records on the fly from the document database and assemble them into XML metadata format in response to the OAI protocol requests • Integrated Real-time Metadata Generation • Integrate the metadata CGI with the CiteSeer CGI • Put metadata exporting module as part of the CiteSeer package

  41. Developing Techniques for Automatic Metatagging • Automatic metatagging using SVM • Generic Summarization and keywords Extraction using Mutual Reinforcement Principle and Sentence Clustering [zhaSumarize02]

  42. Potentially Tagable Data • Tagable • Title • Creators • Address of the creators • Affiliation of the creators • Keywords • Abstract • Publisher • archive date • publish year • References • Content descriptive metadata[zhaSumarize02] • Subject (keywords) • Description(abstract) [SVM]

  43. Automatic Metatagging using SVM • Classification approach for adaptive Information Extraction • Adaptive IE: to create systems adaptable to new applications/domains by using only an analyst’s knowledge, I.e. knowledge about the domain/scenario [AKTweb] • Classification approach allows systems to adapt to a new domain simply by using a standard set of features [ChieuIE02]

  44. Metatagging using SVM– Basic Model • Basic model: • Take line as the unit to be classified • Classify each line into 1+ classes of 14 classes • Title, author, affiliation, address, abstract, keyword, … • 14 classifiers - “one class vs. all others” • Feature Generation: • Convert the raw features to linguistic features • Domain databases(dictionary, city, country, state, postcode, name list) • Class top words(choose top words or phrases using DF thresholding from each of the 14 classes) • Categorical features: line position, line length…. • Feature Normalization

  45. Metatagging using SVM – Iterative Converge Procedure • Exploit sequence information • Normally the title is ahead of authors • Abstract lines are continuous • Algorithm: Step 1. Use the previous and next N lines’ tags as part of current line’s features Step 2. Train SVM classifiers on this expanded set of features and get the new set of predicted tags for each of the line Step 3. Go to step 1 if convergence constraint is not satisfied

  46. Metatagging using SVM– extract metadata out of each line • Why: • One line could contain multiple authors • Author name, address and affiliation could be on the same line • Possible Techniques: • SVM Classification • HMM • Other chunking methods

  47. Generic Summarization and Keywords Extraction using Mutual Reinforcement Principle and Sentence Clustering [zhaSumarize02] • Each document is composed of two sets of objects: A set of terms T= {t1, … tn) A set of sentences S = {s1, .. sn) Bipartite graph from T and S: if the term ti appears in sentence sj, we then create an edge from ti to sj. wij is indicates the weight on the edge(ti , sj). • Mutual reinforcement principle: u(ti)  v(sj) ~ u(ti) wij v(sj), v(sj)  u(ti) ~ v(sj) wij u(ti) u is the saliency score vector for terms; v is the saliency score vector for sentences; A term should have a high saliency score if it appears in many sentences with high saliency score while a sentence should have a high saliency score if it contains many terms with high saliency scores. • Metadata Output: Keywords, Keyphrases and Descriptions (salient sentences) • Hierarchical keywords, keyphrases

  48. Existing Ontologies for Documents • Document Ontology: An ontology that models documents, particularly publications. • Shoe Ontology http://www.cs.umd.edu/projects/plus/SHOE/onts/index.html#doc • Many of the document types were borrowed from the Structuralist Dublin Core Resource Types proposal. Others were borrowed from the PubMed document classifications. • Daml Ontologyhttp://www.daml.org/ontologies/62.html • DAML version of a SHOE ontology

  49. Shoe Ontology for Publications • Category: • Document • Publication • Article • BookArticle ConferencePaper JournalArticle WorkshopPaper • Book • TechnicalReport • Thesis • DoctoralThesis • MastersThesis • Relationships: • author(Document, Person) • authorOrg(Document, Organization) • containedIn(Document, Document) • publishDate(Document, .DATE) • publisher(Document, Organization) • subject(Document, .SHOEEntity) • title(Document, .STRING) • volume(Periodical, .NUMBER)

More Related