Understanding System_T By Mao Xianling 2009.02.28.

Slides:



Advertisements
Similar presentations
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 14 Web Database Programming Using PHP.
Advertisements

Conceptual Modelling Entity Relationship Model Overview Entities, Attributes and Relationship modelling Generating a Relational Database for an EAR model.
A Guide to SQL, Seventh Edition. Objectives Understand the concepts and terminology associated with relational databases Create and run SQL commands in.
DB2 Net Search Extender Presenter: Sudeshna Banerji (CIS 595: Bioinformatics)
Guide To UNIX Using Linux Third Edition
Chapter 12 Database Connectivity with ASP.NET JavaScript, Third Edition.
Concepts of Database Management Sixth Edition
Chapter 3: SQL – Part I Yong Choi School of Business CSU, Bakersfield.
1 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management.
MBAC 611.  We have been using MS Access to query and modify our databases.  MS Access provides a GUI (Graphical User Interface) that hides much of the.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 25 – Perl and CGI (Common Gateway Interface) Outline 25.1 Introduction 25.2 Perl 25.3 String Processing.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
1 Working with MS SQL Server II. 2 The sqlcmd Utility Command line utility for MS SQL Server databases. Previous version called osql Available on classroom.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
CSCI 6962: Server-side Design and Programming
A Guide to SQL, Eighth Edition Chapter Three Creating Tables.
Integrating XML with Microsoft SQL Server ©NIITeXtensible Markup Language/Lesson 9/Slide 1 of 31 Objectives In this lesson, you will learn to: * Generate.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Introduction to SQL Yong Choi School of Business CSU, Bakersfield.
CPS120: Introduction to Computer Science Information Systems: Database Management Nell Dale John Lewis.
ASP.NET Programming with C# and SQL Server First Edition
Concepts of Database Management Seventh Edition
Python MySQL Database Access
Chapter 7 Advanced SQL Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Working with MSSQL Server Code:G0-C# Version: 1.0 Author: Pham Trung Hai CTD.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Relational Databases (MS Access)
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
Session 8: Databases Teaching Computing to GCSE Level with Python.
Concepts of Database Management Seventh Edition
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 12 Understanding database managers on z/OS.

Robin Mullinix Systems Analyst GeorgiaFIRST Financials PeopleSoft Query: The Next Step.
Introduction to PHP Advanced Database System Lab no.1.
8 1 Chapter 8 Advanced SQL Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
XML and Database.
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
Database Basics BCIS 3680 Enterprise Programming.
Database Connectivity with ASP.NET. 2 Introduction Web pages commonly used to: –Gather information stored on a Web server database Most server-side scripting.
CS422 Principles of Database Systems Introduction to Query Processing Chengyu Sun California State University, Los Angeles.
Chapter 13.3: Databases Invitation to Computer Science, Java Version, Second Edition.
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 6 CGI/Perl and databases.
SE305 Database System Technology 25/09/2014 Quiz-1.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 14 Web Database Programming Using PHP.
1 PHP Intro PHP Introduction After this lecture, you should be able to: Know the fundamental concepts of Web Scripting Languages in general, PHP in particular.
1 Working with MS SQL Server Beginning ASP.NET in C# and VB Chapter 12.
Dept. of Animal Breeding and Genetics Programming basics & introduction to PERL Mats Pettersson.
Databases Databases are collections of information; our study repeats a theme: Tell the computer the structure, and it can help you! © 2004, Lawrence Snyder.
CS320 Web and Internet Programming SQL and MySQL Chengyu Sun California State University, Los Angeles.
Introduction to Database Programming with Python Gary Stewart
SQL Introduction SQL stands for “Structured Query Language” and can be pronounced as “SQL” or “sequel – (Structured English.
Web Database Programming Using PHP
Databases.
CS 330 Class 7 Comments on Exam Programming plan for today:
CS320 Web and Internet Programming SQL and MySQL
Databases Chapter 16.
Web Database Programming Using PHP
ITEC 313 Database Programming
PHP (PHP: Hypertext Preprocessor)
ISC440: Web Programming 2 Server-side Scripting PHP 3
Introduction to Python
Web DB Programming: PHP
Introduction to Databases & SQL
Tutorial 6 PHP & MySQL Li Xu
Chapter 8 Advanced SQL.
CS3220 Web and Internet Programming SQL and MySQL
CS3220 Web and Internet Programming SQL and MySQL
CS4540 Special Topics in Web Development SQL and MS SQL
Presentation transcript:

Understanding System_T By Mao Xianling

Outline  Introduction to System_T  Primary tests  Problem

Outline  Introduction to System_T  Primary tests  Problem

Installing the Development Environment downloaded from IBM's AlphaWorks site; just search for "System Text" at uncompress the.zip/.tar file onto your computer's hard drive run the startup script Sh SystemText-[version]/bin/startserver.sh start the Development Environment by pointing your web browser at the address

Development Environment

create view PhoneNum as extract regex /[0-9]{3}-[0-9]{4}/ on D.text as number from Document D; output view PhoneNum;

One Example for AQL Code create view PhoneNum as extract regex /[0-9]{3}-[0-9]{4}/ on D.text as number from Document D; output view PhoneNum;

Introduction to AQL AQL:a language for building annotators that extract structured information from unstructured or semistructured text. AQL is the primary method of creating new annotators in System Text for Information Extraction.

Introduction to AQL The syntax of AQL is similar to that of SQL, but with several important differences: AQL is case sensitive. AQL allows regular expressions to be expressed in Perl syntax, e.g. /regex/ instead of 'regex'. AQL currently does not support advanced SQL features like correlated subqueries and recursive queries. AQL has a new statement type, extract, which is not present in SQL.

Data Model AQL's data model is similar to the standard relational model used by SQL databases like DB2. All data in AQL is stored in tuples, data records of one or more columns, or fields. A collection of tuples forms a relation. All tuples in a relation must have the same schema — the names and types of their fields.

Data Model The fields of an AQL tuple must belong to one of the language's built-in scalar types Integer: A 32-bit signed integer. Text: A Unicode string, with additional metadata to indicate which tuple the string belongs to. Span: A contiguous region of characters in a Text object.

Execution Model

AQL Statement The create view Statement The extract Statement –Extraction Specifications Regular Expressions Dictionaries Splits The select Statement The create table Statement Built-In Functions –Predicate Functions –Scalar Functions –Table Functions

create view PersonFirstOrLastName as extract dictionary 'names.dict' on D.text as name from Document D having MatchesRegex(/[A-Z].+/, name); create view PhoneNumber as extract regexes /(\d{3})-(\d{3}-\d{4})/ and /\(\d{3}\)\s*(\d{3}-\d{4})/ on D.text as num from Document D; create view ExtensionNumbers as extract regex /[Ee]xt\s*[\.\-\:]?\s*(\d{3,5})/ on D.text return group 1 as num and group 0 as completenum from Document D; create view PhoneNumberWithExtension as select CombineSpans(P.num,E.completenum) as num from PhoneNumber P, ExtensionNumbers E where FollowsTok(P.num, E.completenum,0,1); create view PhoneNumberAll as (select P.num as num from PhoneNumber P) union all (select E.completenum as num from ExtensionNumbers E) union all (select P.num as num from PhoneNumberWithExtension P); create view PhoneNumberAllConsolidated as select P.num as num from PhoneNumberAll P consolidate on P.num using 'ContainedWithin'; create view PersonsPhone as select person.name as person, phone.num as phone, CombineSpans(person.name, phone.num) as personphone from PersonFirstOrLastName person, PhoneNumberAllConsolidated phone where Follows(person.name, phone.num, 0, 30); output view PersonsPhone;

Outline  Introduction to System_T  Primary tests  Problem

Primary Tests DataSet From TianWang Clawer; Chinese; Firstname.dict/Lastname.dict (for Chinese) Method Using AQL to build Annotators

Annotator for extract phone num

Annotator for extract name

Time && Space

Outline  Introduction to System_T  Primary tests  Problem

Problem English VS Chinese [extract regex /[0-9]{3}/ on 1 token in D.text] Time && Space && Network? MultiSet? The express ability of Regex ? No source code && MapReduce? Zip?