{"id":20615951,"url":"https://github.com/supercoderhawk/crfsuite","last_synced_at":"2025-12-08T06:02:55.403Z","repository":{"id":95132265,"uuid":"158829252","full_name":"supercoderhawk/CRFSuite","owner":"supercoderhawk","description":null,"archived":false,"fork":false,"pushed_at":"2018-12-15T11:53:36.000Z","size":2733,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-17T04:28:40.455Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/supercoderhawk.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-23T12:21:56.000Z","updated_at":"2018-12-15T11:53:38.000Z","dependencies_parsed_at":"2023-05-26T21:30:15.679Z","dependency_job_id":null,"html_url":"https://github.com/supercoderhawk/CRFSuite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supercoderhawk%2FCRFSuite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supercoderhawk%2FCRFSuite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supercoderhawk%2FCRFSuite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supercoderhawk%2FCRFSuite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/supercoderhawk","download_url":"https://codeload.github.com/supercoderhawk/CRFSuite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242269332,"owners_count":20100076,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T11:16:45.340Z","updated_at":"2025-12-08T06:02:50.369Z","avatar_url":"https://github.com/supercoderhawk.png","language":"C","readme":"CRFSuite (0.13)\n==============\n\n[![Build Status](https://travis-ci.org/WladimirSidorenko/CRFSuite.svg?branch=master)](https://travis-ci.org/WladimirSidorenko/CRFSuite)\n\nTable of Contents\n-----------------\n\n  * [CRFSuite (0.13)](#crfsuite-013)\n\t* [Introduction](#introduction)\n\t* [Installation](#installation)\n\t* [Version 0.13](#version-013)\n\t* [Format](#format)\n\t* [Warnings](#warnings)\n\t* [Copyright and Licensing](#copyright-and-licensing)\n\t* [Acknowledgment](#acknowledgment)\n\nIntroduction\n------------\n\nCRFSuite 0.13 is a fork of [Naoaki Okazaki's](http://www.chokkan.org/)\nimplementation of conditional random fields (CRFs).  Please refer to\nthe [web site](http://www.chokkan.org/software/crfsuite/) for more\ninformation about the original software.\n\nInstallation\n------------\n\nIn order to install the current version of the program, you need to\nexecute the following commands in the root directory of the\ndownloaded project:\n\n```shell\nautoreconf -f -i\n\n./configure\n\nmake all check\n\nsudo make install\n```\n\nVersion 0.13\n------------\n\nThis version of `CRFSuite` has been extended with the following\nvariants of CRFs:\n\n* tree-structured CRFs;\n* semi-Markov CRFs of arbitrary orders;\n* linear-chain CRFs  of arbitrary orders.\n\nTo invoke tree-structured CRFs, you should provide the option\n`--type=tree` when running `crfsuite learn` and also specify this\noption when you later envoke `crfsuite tag` with the trained model.\n\nTo use higher-order linear-chain and semi-markov CRFs, you should specify the\noption `--type=semim` both during the training and during the tagging, e.g.:\n\n`crfsuite learn --type=semim -p feature.max_seg_len=-1 -m semim.model tests/test_sm_1.input`\n\n`crfsuite tag --type=semim -m semim.model tests/test_sm_1.input`\n\nSetting the option `-p feature.max_seg_len=` to a negative value will envoke the\nsemi-Markov variant of CRF, providing a non-negative integer will activate the\nlinear-chain model.  To specify the maximum order of transition features, use\nthe option `-p feature.max_order=`, e.g.:\n\n`crfsuite learn --type=semim -p feature.max_seg_len=1 -p feature.max_order=4\n-m semim.model tests/test_sm_1.input`\n\nwill train a 4-th order linear-chain model.\n\nFormat\n------\nThe format for the first and higher order linear-chain and semi-Markov\nlooks as follows:\n\n`label1 \\t feat_name1:value1 \\t feat_name2:value2 \\t feat_name3:value3`\n\n`label2 \\t feat_name4:value4 \\t feat_name5:value5 \\t feat_name6:value6`\n\n`label3 \\t feat_name7:value7 \\t feat_name8:value8`\n\n`label4 \\t feat_name9:value9 \\t feat_name10:value10 \\t feat_name11:value11`\n\n` `\n\nFor testing, you can either specify a valid label as the first field or\nput any value (e.g `_` underscore ) which does not coincide with any known\ntagset label.  This first field is skipped during the testing.  Empty lines\ndelimit the sequences.\n\nFor the tree-structured CRFs, you should specify the id of the node as the\nsecond field and the id of the parent node as the third field, e.g:\n\n`label1 \\t node_id1 \\t node_id2 \\t feat_name1:value1`\n\n`label2 \\t node_id2 \\t _ \\t feat_name2:value2`\n\n`label3 \\t node_id3 \\t node_id4`\n\n`label4 \\t node_id4 \\t node_id2 \\t feat_name3:value3 \\t feat_name4:value4`\n\n` `\n\nThe parent of the root node should be specified as `_` (underscore) (see file\n`tests/test_tree_2.input` for an example).\n\nWarnings\n--------\n1. Only `l-BFGS` is supported so far for the higher-order and\n   semi-markov models;\n2. Semi-Markov and higher-order linear-chain models do not support the options\n`-i` and `-p` for tagging yet;\n3. No speed optimization was done for the higher-order semi-Markov and linear-\nchain models;\n4. C++ interface has not been updated to support the new types.\n\nCopyright and Licensing\n-----------------------\n\nThis program is distributed under the modified BSD license. Refer to\nCOPYING file for the precise description of the license.\n\n\nPortions of this software are based on libLBFGS.\n\nThe MIT License\n\nCopyright (c) 1990 Jorge Nocedal\nCopyright (c) 2007 Naoaki Okazaki\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, sublicense,\nand/or sell copies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nPortions of this software are based on Constant Quark Database (CQDB).\n\nThe BSD license.\n\nCopyright (c) 2007, Naoaki Okazaki\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n    * Redistributions of source code must retain the above copyright\n      notice, this list of conditions and the following disclaimer.\n    * Redistributions in binary form must reproduce the above copyright\n      notice, this list of conditions and the following disclaimer in the\n      documentation and/or other materials provided with the distribution.\n    * Neither the name of the Northwestern University, University of Tokyo,\n      nor the names of its contributors may be used to endorse or promote\n      products derived from this software without specific prior written\n      permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER\nOR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\nEXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\nPROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\nPROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\nLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\nNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n\nPortions of this software are based on RumAVL.\n\nMIT/X Consortium License.\n\nCopyright (c) 2005-2007 Jesse Long \u003cjpl@unknown.za.net\u003e\nAll rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, sublicense,\nand/or sell copies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following conditions:\n\n   1. The above copyright notice and this permission notice shall be\n      included in all copies or substantial portions of the Software.\n   2. The origin of the Software must not be misrepresented; you must not\n      claim that you wrote the original Software.\n   3. Altered source versions of the Software must be plainly marked as\n      such, and must not be misrepresented as being the original Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n\n\nPortions of this software are based on a portable stdint.h (for MSVC).\n\nCopyright (c) 2005-2007 Paul Hsieh\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n\n    Redistributions of source code must retain the above copyright\n    notice, this list of conditions and the following disclaimer.\n\n    Redistributions in binary form must not misrepresent the orignal\n    source in the documentation and/or other materials provided\n    with the distribution.\n\n    The names of the authors nor its contributors may be used to\n    endorse or promote products derived from this software without\n    specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\nFOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\nCOPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\nINCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\nHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\nSTRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\nARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\nOF THE POSSIBILITY OF SUCH DAMAGE.\n\n\nPortions of this software are based on Mersenne Twister.\n\nCopyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n  1. Redistributions of source code must retain the above copyright\n     notice, this list of conditions and the following disclaimer.\n\n  2. Redistributions in binary form must reproduce the above copyright\n     notice, this list of conditions and the following disclaimer in the\n     documentation and/or other materials provided with the distribution.\n\n  3. The names of its contributors may not be used to endorse or\n     promote products derived from this software without specific\n     prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR\nCONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\nEXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\nPROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\nPROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\nLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\nNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nAcknowledgment\n--------------\n\nSpecial thanks goes to:\n\n* Olivier Grisel\n* Andreas Holzbach\n* Baoli Li\n* Yoshimasa Tsuruoka\n* Hiroshi Manabe\n* Riza Theresa B. Batista-Navarro\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupercoderhawk%2Fcrfsuite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupercoderhawk%2Fcrfsuite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupercoderhawk%2Fcrfsuite/lists"}