Corpus Processor
Tool to work with Corpus Linguistics. Corpus Processor converts corpora between different formats for use in Natural Language Processing (NLP) tools.
The first purpose of Corpus Processor and its current only feature is to transform corpora found in Linguateca into the format used for training in Stanford NER.
Linguateca is an excellent source of corpora in Portuguese.
Stanford NER is an excellent implementation of Named Entity Recognition.
Installation
Corpus Processor is a Ruby Gem. To install it, given a working installation of Ruby, run:
$ gem install corpus_processor
Usage
Convert corpus from HAREM format to Stanford-NER format:
$ corpus-processor process [INPUT_FILE [OUTPUT_FILE]]
Results
For an example of converting one corpus with Corpus Processor, refer to this gist.
The corpus is from Linguateca and the training used Stanford NER.
Contributing
- Fork it.
- Create your feature branch (
git checkout -b my-new-feature
). - Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin my-new-feature
). - Create new Pull Request.
Changelog
0.0.1
- Harem Parser.
- Stanford NER Generator.
Thanks
- Diana Santos and her team in Linguateca for the semantic annotated corpus in Portuguese.
- Stanford NLP team for the Stanford NER tool.
License
Copyright (c) 2013 Das Dad
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.