Git Product home page Git Product logo

preprocessing-crf-ner's Introduction

preprocessing-crf-ner

Description

This work contributes to extensively assessing the impact of preprocessing tasks on the named entity recognition success in Indonesian text at various feature dimensions and possible interactions among these tasks.

Flowchart of Experimental Methods on text preprocessing in Indonesian NER based on CRF

Preprocessing Procedures

  1. Contractions Expansion
  2. Lowercase Conversion
  3. Stemming
  4. Number to Words Conversion
  5. Hyphen and Comma Splitting

Feature Extraction

  1. The word
  2. The length of the word or number of characters
  3. Prefixes and suffixes of the word of varying lengths
  4. The word in lowercase
  5. Stemmed version of the word, which deletes all vowels along with g, y, n from the end of the word, but leaves at least a 2 character long stem
  6. If the word is a punctuation mark
  7. If the word is a digit
  8. Features mentioned above for the previous word, the following word, and the words two places before and after
  9. Word POS tag
  10. If the word is at the beginning of the sentence (BOS) or the end of the sentence (EOS) or neither

Requirements

  • Both Linux and Windows are supported. Linux is recommended for performance and compatibility reasons.
  • 64-bit Python 3.7 installation.
  • I recommend sklearn-crfsuite 0.36, which I used for all experiments.
  • Download singgalang.tsv and store it in the data directory.
  • Download all_indo_man_tag_corpus_model.crf.tagger and store it in the pre-trained-model directory.

Usage

python main.py

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.