Giter Club home page Giter Club logo

oleanderstemminglibrary's Introduction

Oleander Stemming Library

logo

Library for stemming words down to their root words.

Getting started

Adding to your project

The recommended way to add this library to your project is by including the following to your CMakeLists.txt:

target_link_libraries(myProject oleanderstemminglibrary)

You may also add this library to your project using a relative path:

#include "oleanderstemminglibrary/include/olestem/stemming/english_stem.h"

Running an example

An example of this project's usage can be found in tests/src/example.cpp and can be built with the following commands:

mkdir build && cd build
cmake ..
cmake --build .
./bin/ExampleTest

License

The license for this project can be found at LICENSE.md.

Change Log

2019 Release

  • Updated project for use as a header-only library with CMake.

2016 Release

  • Updated Portuguese stemmer to new standard.

2015 Release

  • Overhaul of Doxygen documentation.
  • Updates to compile with GCC.
  • Files are now UTF-8 (without BOM) encoded, which is compatible with Visual Studio 2008 and GCC. Note that this is no longer compatible with earlier versions of Visual Studio.

2010 Release

  • Added Russian stemmer.
  • Documentation expanded.

2009.1 Release

  • Added support for smart apostrophes.

2009 Release

  • Removed "common_lang_constants.cpp" so that the library now consists only of header files.

2.0 Release

  • All extended ASCII characters are written in numeric value, so that you can compile on GCC without needing to encode the source code files to UTF-8.
  • Fixed a few access violations.
  • Fixed a bug in step1 of the French stemmer.
  • Updated the English and Spanish stemmers to the newer 2006 algorithms.
  • General optimizations.

NOTE: This release is now only compatible with std::wstring (Unicode strings). If you need to stem an ANSI string, then convert it to a wstring using mbstowcs and then stem the wstring.

1.2 Release

  • Fixed a couple of bugs when compiling with GCC.

1.1 Release

  • Fixed an error when compiling with Visual Studio 2005.

1.0 Release

  • Added updates to English, Italian, Spanish, Norwegian, and Portuguese stemmers to include latest changes made to the Porter algorithms.
  • Fixed case-sensitive comparison bug in Portuguese stemmer.
  • Fixed bug in Portuguese stemmer where an "i" was sometimes incorrectly removed from the suffix.
  • Fixed a bug in the English stemmer were some words ending in "e" would be incorrectly stemmed.
  • Unicode now supported. If the symbol UNICODE is globally defined, stemmers now work with std::wstrings; otherwise, std::strings are expected.
  • Removed template arguments for stemmers. Now you can just declare "english_stem EnglishStemmer;" instead of "english_stem EnglishStemmer;"and it will know whether to expect either std::wstring or std::string types based on whether UNICODE is enabled.
  • Now licensed under the BSD license.
  • Added more helper functions in utilities.h and string_util.h

0.3 Release

  • Fixed index bug in Dutch stemmer (wasn't checking size of string when it should have been).
  • Fixed a compiler bug where a few inclusions were missing.
  • Added "round" function to utility library for doing accurate integer rounding.
  • Removed unused variable in English stemmer.
  • Fixed compiler cast warning in "find_r2" function.
  • Fixed access violation in "hash_german_yu", "hash_french_yui", and "hash_italian_ui" caused by one letter words.
  • Fixed compiler error in stricmp function.
  • Added "strstr" and "strcspn" char/wchar_t wrappers to string_util.h.
  • Added "size_of_array" macro to utilities.h.
  • Removed debugging hack code in "is_either" function in utilities.h.

0.2 Release

  • Fixed a couple of syntax errors in Finnish and French stemmers that GCC picked up.
  • Added support for German variant algorithm, where umlauted words are expanded to the English equivalent.

oleanderstemminglibrary's People

Contributors

oleandersoftware 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.