Giter Site home page Giter Site logo

fact-extractor's Introduction

Fact Extractor

Fact Extraction from Wikipedia Text

Intro

The DBpedia Extraction Framework is pretty much mature when dealing with Wikipedia semi-structured content like infoboxes, links and categories.
However, unstructured content (typically text) plays the most crucial role, due to the amount of knowledge it can deliver, and few efforts have been carried out to extract structured data out of it.
For instance, given the Germany Football Team article, we want to extract a set of meaningful facts and structure them in machine-readable statements.
The following sentence:

In Euro 1992, Germany reached the final, but lost 0–2 to Denmark

would produce statements like:

<Germany, defeat, Denmark>
<defeat, score, 0–2>
<defeat, winner, Denmark>
<defeat, competition, Euro 1992>

Have you already?

Introduced yourself in the DBpedia GSoC mailing list? If not, please do so!

High-level Workflow + Related Code

INPUT = Wikipedia corpus (e.g., the latest Italian chapter)

  1. Verb Extraction
  2. Extract raw text from Wikipedia dump, forked from this repo
  3. Extract a sub-corpus based on Wiki IDs
  4. Verb Extraction
  5. Verb Ranking
  6. Build a frequency dictionary of lemmas
  7. TF/IDF-based token ranking, using the TF/IDF module forked from this repo
  8. Lemma ranking based on the token-to-lemma map
  9. Training Set Creation
  10. Build CrowdFlower input spreadsheet
  11. Frame Classifier Training
  12. Translate CrowdFlower results into training data format
  13. Train classifier
  14. Frame Extraction

Requirements

Warm-up Tasks

See the issues.

Development Policy

Committers should follow the standard team development practices:

  1. Start working on a task
  2. Branch out of master
  3. Commit frequently with clear messages
  4. Make a pull request

Coding Style

Pull requests not complying to these guidelines will be ignored.

  • Use 4 spaces (soft tab) for indentation;
  • Naming conventions
    • use an underscore as a word separator (files, variables, functions);
    • constants are UPPERCASE;
    • anything else is lowercase.
  • Use 2 empty lines to separate functions;
  • Write docstrings according to PEP 287, with a special attention to field lists. IDEs like PyCharm will do the job.

References

License

The source code is under the terms of the GNU General Public License, version 2.

fact-extractor's People

Contributors

marfox avatar e-dorigatti avatar kkasunperera avatar pkuwzr avatar aktgth avatar ninawan avatar

Watchers

Malcolm Greaves avatar James Cloos avatar paper2code - bot avatar

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.