public class GrammaticalLabelFileParser extends Object implements BasePropertyFile.Parser
| Constructor and Description |
|---|
GrammaticalLabelFileParser(LanguageDictionary dictionary,
LabelSetDescriptor labelDesc,
GrammaticalLabelSetProvider parentProvider)
Construct a label file parser
|
GrammaticalLabelFileParser(LanguageDictionary dictionary,
LabelSetDescriptor labelDesc,
GrammaticalLabelSetProvider parentProvider,
boolean trackDupes) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(GrammaticalLabelSetImpl writeSet) |
LanguageDictionary |
getDictionary() |
long |
getFileLastModified() |
Set<? extends LabelReference> |
getInvalidLabels() |
long |
getLastModified() |
URL |
getRootDir() |
void |
load(PropertyFileData data,
Map<String,Map<String,BasePropertyFile.MetaDataInfo>> metaData) |
public GrammaticalLabelFileParser(LanguageDictionary dictionary, LabelSetDescriptor labelDesc, GrammaticalLabelSetProvider parentProvider) throws IOException
dictionary - the dictionary to fill in with nouns and adjectiveslabelDesc - the descriptor of the location of the label setIOExceptionpublic GrammaticalLabelFileParser(LanguageDictionary dictionary, LabelSetDescriptor labelDesc, GrammaticalLabelSetProvider parentProvider, boolean trackDupes)
public void load(PropertyFileData data, Map<String,Map<String,BasePropertyFile.MetaDataInfo>> metaData) throws IOException
load in interface BasePropertyFile.ParserIOExceptionpublic long getFileLastModified()
getFileLastModified in interface BasePropertyFile.Parserpublic URL getRootDir()
public LanguageDictionary getDictionary()
public long getLastModified()
public Set<? extends LabelReference> getInvalidLabels()
public void close(GrammaticalLabelSetImpl writeSet)
Copyright (c) 2016-2017, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE.txt file in the repository.