GithubHelp home page GithubHelp logo

farsi-verb-tokenizer's Introduction

Farsi-Verb-Tokenizer

Tokenizes Farsi Verbs.

Usage:

perl farsi-verb-tokenizer.perl [-d resource-directory] input-file [pattern_id]

resource-directory: The directory where resource files are located. This directory by default is "./resource".

input-file: A list of sentences to be tokenized.

pattern_id: The id of the transformation to be applied, a number between 0 and the number of transformations (that is the number of lines in "transformation.tsv") minus 1, inclusive.

output: The list of tokenized sentences.

If no pattern_id is passed, all the transformations will be applied to each individual sentence one by one. The transformations in "resource/transformations.tsv" are sorted from largest to smallest, so that if a larger transformation matches (and hence transforms) a substring of a sentence, smaller transformations could no longer affect that substring.

Example:

perl ./script/farsi-verb-tokenizer.perl test-input.txt > test-output.txt

The output should be exactly the same as test-tokenized.txt. You can check that running the following diff command:

diff test-output.txt test-tokenized.txt

farsi-verb-tokenizer's People

Contributors

mehdi-manshadi avatar

Stargazers

Full Data Alchemist avatar Mohammad Heydari avatar Amin avatar Hamid Alaei Varnosfaderani avatar Ali Torki avatar Ramtin M. Seraj avatar Timothy avatar Mohammad Sadegh Khoeini avatar Alireza Nourian avatar

Watchers

James Cloos avatar  avatar

Forkers

nvdnkpr

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.