de.tudarmstadt.ukp.jwktl.parser.entry
Class EntryFactory

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.parser.entry.EntryFactory
Direct Known Subclasses:
DEEntryFactory, ENEntryFactory

public abstract class EntryFactory
extends Object

Factory for WiktionaryEntrys used by the parsers.

Author:
Christof Müller, Lizhen Qu

Constructor Summary
EntryFactory()
           
 
Method Summary
 WiktionaryEntry createEntry(ParsingContext context)
          Create a new WiktionaryEntry based on the current context.
 WiktionaryEntry findEntry(ParsingContext context)
          Checks if the current page contains a WiktionaryEntry matching for the current context (part of speech, language, etc.)
abstract  PartOfSpeech findPartOfSpeech(String name)
          Converts the given string into a part of speech enum type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryFactory

public EntryFactory()
Method Detail

findEntry

public WiktionaryEntry findEntry(ParsingContext context)
Checks if the current page contains a WiktionaryEntry matching for the current context (part of speech, language, etc.) and returns it. If no entry could be found, a new one is created (using createEntry(ParsingContext)).


createEntry

public WiktionaryEntry createEntry(ParsingContext context)
Create a new WiktionaryEntry based on the current context. This method always creates a new entry. Use findEntry(ParsingContext) if you want to use existing entries (which is usually the case).


findPartOfSpeech

public abstract PartOfSpeech findPartOfSpeech(String name)
Converts the given string into a part of speech enum type.



Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.