Giter VIP home page Giter VIP logo

hazm's Introduction

Persian NLP

Requirements

IronPython

Use [Virastyar] (http://sourceforge.net/projects/virastyar/) on python

for basic installation of Mono, use below instruction:

sudo apt-get install mono-runtime

for full installation of Mono, use below instruction:

sudo apt-get install mono-complete

Install [IronPython] (http://ironpython.net/)

  • Note: if you use basic installation of Mono, you should install all IronPython's dependencies manually.

for install all dependencies, use below instructions:

sudo apt-get install libmono-corlib2.0-cil libmono-system2.0-cil libmono-system-runtime2.0-cil libmono-winforms2.0-cil libmono-i18n2.0-cil

there is one more dependency that is not possible use apt-get to install it, you should download libdlr0.9-cil from below link:

http://packages.ubuntu.com/lucid/libdlr0.9-cil

for installing .deb package manually, use below instruction:

sudo dpkg -i PACKAGE_NAME.deb

download IronPython, from below link:

http://packages.ubuntu.com/lucid/all/ironpython/download

for installing .deb package manually, use below instruction:

sudo dpkg -i PACKAGE_NAME.deb

Example

Virsatyar

for run sample code test.py, you should use below instruction:

ipy test.py

here is a example for using Virastyar DLLs within python:

import clr

# loading the DLL
clr.AddReference("/home/user/virastyar/Bin/SCICT.PersianTools.dll")
                                                                                                                                                                                                                                                                                                    
from SCICT.NLP.Utility.Parsers import ParsingUtils

str = "123,456.78"
result = ParsingUtils.ConvertNumber2Persian(str)

print result.ToString()

Stemmer

from perstem import PerStemmer

stemmer = PerStemmer()
result = stemmer.stem(u'کتاب ها')
print result # کتاب

License

[Virastyar] (http://virastyar.ir/).

hazm's People

Contributors

nimahemmati avatar mojtaba-khallash avatar nournia avatar farbod-s avatar imani avatar

Watchers

James Cloos avatar Ali Farsi 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.