Giter Club home page Giter Club logo

hindiner's Introduction

HindiNER

Entity recognition in Hindi sentences

A tool to recognize pre-defined entities in hindi sentences. Uses a crf for this purpose, with a bunch of hand-crafted features.

Instructions on how to use this module-

  1. Clone the repo.
  2. Install dependencies in requirements.txt ('pip install requirements.txt')
  3. In your python app, import crf_NER
  4. The syntax for training on your dataset is- train( file location of train.txt , file location of test.txt ,verbose=True) (test.txt and verbose arguments are optional) Example- trained_model=train('train.txt','test.txt',verbose=True)
  5. The returned object can be used to make predictions on new sentences using object.predict_sent method. Example- trained_model.predict_sent('Hindi sentence here') This returns a string with sequence of entity labelings. '0' is default for None.

The format of 'train.txt' and 'test.txt' must be sentence followed by (in the next line) entity labelings. For example, in the training data provided with this repo ('train.txt'), we have classified sentence words into entities source ('S'), destination ('D'), time ('T'), number of bookings ('N'). Hence the entities are specified as- D:word,N:word,T:word

Go to this link to watch a live demo :- https://youtu.be/CqZFeb_YhoI

Thanks to CFILT, IIT Bombay for the Hindi Wordnet database.

hindiner's People

Contributors

sushant21 avatar ankurshaswat avatar

Stargazers

Amey Dhote avatar Aman Singh avatar  avatar denghuolanshan33 avatar Sravanth avatar Vishal Golcha avatar Amit Manchanda avatar Vaibhav Singh avatar  avatar Sumit Ghosh avatar

Watchers

 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.