public class BrillTagger extends AbstractTagger implements Tagger
Java version of Brill's Part-of-Speech Tagger
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, please visit http://www.gnu.org/copyleft/gpl.html
Copyright: Copyright (c) 2005
Company: IST, Drexel University
POS_ADJECTIVE, POS_ADVERB, POS_CC, POS_DT, POS_IN, POS_NOUN, POS_NUM, POS_PRONOUN, POS_VERB| Constructor and Description |
|---|
BrillTagger() |
BrillTagger(String dataDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the opened resources
|
protected int |
getPOSIndex(String pos,
Word word) |
void |
initialize(String bigramFile,
String crFile,
String lrFile,
String lexiconFile)
Initialize the tagger
|
static void |
main(String[] args) |
void |
tag(Sentence sent)
This method will tag the part of speech of all words in the sentence.
|
String |
tag(String sentence)
The native function to call brill's POS tagger
|
isConjunctionpublic BrillTagger()
public BrillTagger(String dataDir)
public static void main(String[] args)
public void tag(Sentence sent)
Taggerprotected int getPOSIndex(String pos, Word word)
getPOSIndex in class AbstractTaggerpublic void initialize(String bigramFile, String crFile, String lrFile, String lexiconFile)
bigramFile - the bigram filecrFile - the contextual rule filelrFile - the lexicon rule filelexiconFile - the lexicon filepublic void close()
Copyright © 2018 JULIE Lab, Germany. All rights reserved.