Coder Social home page Coder Social logo

ericxsun / spied-viz Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sonalgupta/spied-viz

0.0 1.0 0.0 500 KB

Stanford Pattern-based Information Extraction and Diagnostics -- Visualization

License: GNU General Public License v2.0

Shell 2.24% Python 6.31% HTML 7.37% JavaScript 50.53% CSS 33.54%

spied-viz's Introduction

SPIED-viz

Stanford Pattern-based Information Extraction and Diagnostics -- Visualization. The code is for visualizing output of pattern-based entity learning systems. See http://nlp.stanford.edu/software/patternslearning.shtml for one such system.

DOCUMENTATION

CONFIGURATION and INSTALLATION: Input to visualization: The easiest way is to run Stanford CoreNLP's pattern/entity learning code and then run this visualization. see setupWithCoreNLP.sh and demo.sh for an example. First run setupWithCoreNLP.sh and then demo.sh

If you want to use some other entity learning system:

        The input files should be in the JSON format and should have following format:
        
        For a system sys1 and a label label1, you should have following files:
        
        sys1/label1/patterns.json and sys1/label1/words.json
        
        words.json has list of iterations, each iteration has list of maps, each map has the "entity", "score", and the "patterns"
        that extracted the entity. "reasonwords" are the positive words of the patterns that extracted the entity (it is supposed to show 
        because of what entities the current entity was extracted).
        
        patterns.json has list of iterations and each iteration is a map where keys are patterns learned in that iteration and
        values are maps of positive, negative, and unlabeled entities that the pattern extracts and the pattern score.
        
        For example, see the files inside directory out/UsingNERTargetRest 

Run "python pied/prepareData.py -h" to know to run the file to prepare the data for the visualization

Output: open pied/index.html for entity-centric view and pied/patterns.html for pattern-centric view.

CITATION

Please cite the following paper if you use SPIED-Viz in your work:

@inproceedings{gupta:vizacl14, author={Sonal Gupta and Christopher D. Manning}, booktitle={Proceedings of the ACL 2014 Workshop on Interactive Language Learning, Visualization, and Interfaces (ACL-ILLVI)}, title={SPIED: Stanford Pattern-based Information Extraction and Diagnostics}, year ={2014} }

Please cite the following paper if you also use the learning part of SPIED (http://nlp.stanford.edu/software/patternslearning.shtml).

@inproceedings{gupta14evalpatterns, author = {Sonal Gupta and Christopher D. Manning}, booktitle = {Proceedings of the Eighteenth Conference on Computational Natural Language Learning (CoNLL)}, title = {Improved Pattern Learning for Bootstrapped Entity Extraction}, year = {2014}, }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.