nif nlp interchange format
play

NIF NLP Interchange Format http://aksw.org/Projects/NIF Sebastian - PowerPoint PPT Presentation

Creating Knowledge out of Interlinked Data NIF NLP Interchange Format http://aksw.org/Projects/NIF Sebastian Hellmann AKSW, Universitt Leipzig LOD2 Presentation . 02.09.2010 . Page http://lod2.eu Creating Knowledge out of


  1. Creating Knowledge out of Interlinked Data NIF – NLP Interchange Format http://aksw.org/Projects/NIF Sebastian Hellmann AKSW, Universität Leipzig LOD2 Presentation . 02.09.2010 . Page http://lod2.eu

  2. Creating Knowledge out of Interlinked Data NIF – NLP Interchange Format Outline: • NLP Interchange Format • Use Cases – Integration of tools – Meaning Representation Language – Knowledge Extraction with SPARQL – Machine Learning • Related Projects http://lod2.eu KAIST LOD2 17.8.2011 2 2

  3. Creating Knowledge out of Interlinked Data NIF – NLP Interchange Format Problem: • Currently NLP software is organized in pipelines • Integration is done „hard-wired“ – For each tool and each framework an adapter has to be created (n*m) • Difficult to aggregate output • Difficult to exchange single components http://lod2.eu KAIST LOD2 17.8.2011 3 3

  4. Creating Knowledge out of Interlinked Data NIF – NLP Interchange Format Overview: • NLP tools can be integrated via a common output format (Common pattern in Enterprise Application Integration) • For each tool a wrapper needs to be created, that reads NIF and produces NIF • The combination of tools can be adhoc, i.e. it is not a pipeline that needs to be configured • Multi-layer and overlapping annotations are possible • Ontologies provide interfaces for each layer and for applications http://lod2.eu KAIST LOD2 17.8.2011 4 4

  5. Creating Knowledge out of Interlinked Data NIF – NLP Interchange Format • First Challenge: Representing Strings in RDF • How to give a part of a document or text an identifier (URI)? • What properties can such URIs have? http://lod2.eu KAIST LOD2 17.8.2011 5 5

  6. Creating Knowledge out of Interlinked Data NIF – NLP Interchange Format http://lod2.eu LOD2 Event . 06.09.2010 . Page 6 6

  7. Creating Knowledge out of Interlinked Data NIF – NLP Interchange Format Example URIs for annotating „Semantic Web“ http://lod2.eu KAIST LOD2 17.8.2011 7 7

  8. Creating Knowledge out of Interlinked Data NIF – NLP Interchange Format • First Challenge: Representing Strings in RDF • How to give a part of a document or text an identifier (URI)? • What properties can such URIs have? http://lod2.eu KAIST LOD2 17.8.2011 8 8

  9. Creating Knowledge out of Interlinked Data NIF – NLP Interchange Format • URIs are used to integrate output. RDF merges naturally, if the URIs are the same (or convertible using a certain recipe) http://lod2.eu KAIST LOD2 17.8.2011 9 9

  10. Creating Knowledge out of Interlinked Data NIF – NLP Interchange Format • Second challenge: Output of each layer is required to be stable. • Components and layers can be interchanged • Domain ontologies are needed to provide stable interfaces: – OLiA provides an ontological interface for morpho-syntax http://nachhalt.sfb632.uni-potsdam.de/owl/ – DBpedia provides stable ids for Things http://lod2.eu KAIST LOD2 17.8.2011 10 10

  11. Creating Knowledge out of Interlinked Data NIF – NLP Interchange Format http://lod2.eu KAIST LOD2 17.8.2011 11 11

  12. Creating Knowledge out of Interlinked Data NIF – NLP Interchange Format http://lod2.eu KAIST LOD2 17.8.2011 12 12

  13. Creating Knowledge out of Interlinked Data NIF – NLP Interchange Format http://lod2.eu KAIST LOD2 17.8.2011 13 13

  14. Creating Knowledge out of Interlinked Data Demo - Integration • http://nlp2rdf.lod2.eu/annotator-stanford/NIFStemmer?input=My%20favor • http://nlp2rdf.lod2.eu/annotator-stanford/NIFStanfordCore?input=My%20fa http://lod2.eu KAIST LOD2 17.8.2011 14 14

  15. Creating Knowledge out of Interlinked Data Use Cases • Use Cases – Integration of tools – Meaning Representation Language – Knowledge Extraction with SPARQL – Machine Learning http://lod2.eu KAIST LOD2 17.8.2011 15 15

  16. Creating Knowledge out of Interlinked Data Use Case – Integration of tools http://lod2.eu KAIST LOD2 17.8.2011 16 16

  17. Creating Knowledge out of Interlinked Data Use Case – Meaning Representation Language • RDF makes data integration easy: URIref, LinkedData • OWL is based on Description Logics (Guarded Fragment) • Availability of open data sets (access and licence) • Diverse serializations for annotations: XML, Turtle, RDFa+XHTML • Scalable tool support (Databases, Reasoning) http://lod2.eu KAIST LOD2 17.8.2011 17 17

  18. Creating Knowledge out of Interlinked Data Use Case – Meaning Representation Language http://lod2.eu KAIST LOD2 17.8.2011 18 18

  19. Creating Knowledge out of Interlinked Data Use Case – Knowledge Extraction with SPARQL • Classical approach: • POS tag / Dependency parser (e.g. Stanford) • create a rule/pattern language to extract knowledge http://lod2.eu KAIST LOD2 17.8.2011 19 19

  20. Creating Knowledge out of Interlinked Data Use Case – Knowledge Extraction with SPARQL Johanna Völker – Learning Expressive Ontologies (LExO) # Example: # A fish is any aquatic vertebrate animal that is covered with scales, and equipped with two sets of paired fins and several unpaired fins. # [fish] subClassOf [any aquatic vertebrate animal that is covered …] Construct {?sub rdfs:subClassOf ?super} { ?is a penn:BePresentTense . ?is nlp:superToken ?is_any_aquatic_. ?is_any_aquatic_ a olia:VerbPhrase . ?is_any_aquatic_ nlp:syntacticSubToken [ nlp:normUri ?super] . ?animal nlp:cop ?is . ?animal nlp:nsubj ?fish .?fish nlp:superToken [ nlp:normUri ?sub] . } http://lod2.eu KAIST LOD2 17.8.2011 20 20

  21. Creating Knowledge out of Interlinked Data Use Case - Machine Learning http://lod2.eu KAIST LOD2 17.8.2011 21 21

  22. Creating Knowledge out of Interlinked Data Use Case - Machine Learning http://lod2.eu KAIST LOD2 17.8.2011 22 22

  23. Creating Knowledge out of Interlinked Data Workplan • EU Deliverable almost finished • Integration of SnowballStemming and the Stanford Parser • Next step: Integration of Knowledge Extraction tools (Zemanta, DBpedia Spotlight, Alchemy, OpenCalais, FOX) • Web Service that read NIF and Output NIF • Google Code Project: http://code.google.com/p/nlp2rdf/ • Web Site: http://aksw.org/Projects/NIF http://lod2.eu KAIST LOD2 17.8.2011 23 23

  24. Creating Knowledge out of Interlinked Data Summary • NIF allows to represent NLP output using Knowledge Representation Formalisms (RDF/OWL) • It is possible to mix it with other Knowledge (e.g. Wikipedia/DBpedia) • Good foundation to optimize machine learning: • Choose the best algortihms • Choose the best data http://lod2.eu KAIST LOD2 17.8.2011 24 24

  25. Creating Knowledge out of Interlinked Data Related Projects • Wiktionary • LLOD • CKAN / Open Lingusistics http://lod2.eu KAIST LOD2 17.8.2011 25 25

  26. NLP2RDF – http://aksw.org/Projects/NLP2RDF . Page 26 http://lod2.eu Creation of data sets: Wiktionary2RDF

  27. NLP2RDF – http://aksw.org/Projects/NLP2RDF . Page 27 http://lod2.eu Creation of data sets: Wiktionary2RDF http://en.wiktionary.org/wiki/house • Covers 170 languages • T otal of 10 million pages • 900.000 users • RDF Dump will increase number of editors • Same properties as Wikipedia (stable identifiers) • • Hundreds of Wiktionary parsers (especially for English) • Information is trapped in the Wiki • Structure changes make software obsolete • Why try it again? • DBpedia Extraction Framework is very mature (5 years, 15 developers) • Configuration over Code, T emplates will allow Wiktionarians to update Parsers • Early contact with the community

  28. NLP2RDF – http://aksw.org/Projects/NLP2RDF . Page 28 http://lod2.eu Wiktionary, Wortschatz, OLiA can become the Crystallization point for a Linguistic Linked Data Web Four major types: • Lexical Semantic Resources • Dictionaries • Corpora • Schemas/Ontologies

  29. NLP2RDF – http://aksw.org/Projects/NLP2RDF . Page 29 http://lod2.eu Open Licences – Focus of LOD2 and OKFN http://ckan.net/ CKAN is an open registry of data and content packages. Harnessing the CKAN software, this site makes it easy to find, share and reuse content and data, especially in ways that are machine automatable. Working Group on Open Data in Linguistics http://linguistics.okfn.org • Founded on Nov 2010 • 40 Members • Membership open, please join • Over 100 data sets in CKAN

  30. Creating Knowledge out of Interlinked Data Thank you for your attention! LOD2 Presentation . 02.09.2010 . Page http://lod2.eu

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend