Coder Social home page Coder Social logo

ma-applied-tm-course's Introduction

applied-tm-course

Github Repository supporting the Applied TM Course as part of the VU Text Mining Masters

This repository contains code and materials that provide additional support for the Applied Text Mining course.

The directory example_scripts/ contains:

example script for extracting information from NAF

/extract_information_from_naf.py

What is it?

This script illustrates how to extract entities and opinions from a NAF file using the KafNafParserPy module. It takes a directory of naf files as input and produces a csv files in an (existing) specified output directory. These csv files provide an overview of the entities or the opinions that are provided in the naf file.

How to install dependencies (the KafNafParserPy module):

The KafNafParserPy module can be installed using pip: pip install KafNafParserPy

How to run the script?

The script can be run from the commandline:

python extract_information_from_naf.py inputdir/ outputdir/ [-o -e]

inputdir/ : path to the directory with naffiles (obligatory argument) outputdir/ : path to the directory where the output csv files should be generated (obligatory argument) -o : option that requests extraction of opinions -e : option the requests extraction of expressions NB: both options can be specified at the same time: the script will then generate both opinions and entities csv files.

Information about the options can also be found by running:

python extract_information_from_naf.py --help

ma-applied-tm-course's People

Contributors

antske avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.