Coder Social home page Coder Social logo

uchuugaka / tinysegmenter.m Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tnantoka/tinysegmenter.m

0.0 1.0 0.0 79 KB

Super compact Japanese tokenizer in Objective-C

Home Page: http://blog.bornneet.com/Entry/276/

License: BSD 3-Clause "New" or "Revised" License

tinysegmenter.m's Introduction

TinySegmenter.m -- Super compact Japanese tokenizer in Objective-C

HOW TO USE

	1. CocoaOniguruma
		Add all .h, .c and .m files of under "Classes".
		( For details, see http://github.com/psychs/cocoaoniguruma )

	2. TinySegmenter
		Add TinySegmenter.h and TinySegmenter.m files  under "Classes".
		Import the header file.
		    #import "TinySegmenter.h"
		
		# If use CocoaOniguruma as a Framework
			
			TinySegmenter.h
				// #import "OnigRegexp.h" <- comment out
				#import "CocoaOniguruma/OnigRegexp.h" <- uncomment

	3. Test
		TinySegmenter* segmenter = [ [ TinySegmenter alloc ] init ];
		NSArray* segs = [ segmenter segment: @"これはテストですよ" ];
		NSLog(@"%@", [ segs componentsJoinedByString: @"|" ]);
		// これ|は|テスト|です|よ


* for RegexKitLite

	1. RegexKitLite
		Add RegexKitLite.h and RegexKitLite.m under "Classes".
		Add the linker option "-licucore".
		( For details, see http://regexkit.sourceforge.net/RegexKitLite/ )

	2. TinySegmenter
		Add forRegexKitLite/TinySegmenter.h and forRegexKitLite/TinySegmenter.m under "Classes".
			:
			:
			:

tinysegmenter.m's People

Watchers

James Cloos 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.