Search in sources :

Example 6 with RootAttribute

use of zemberek.core.turkish.RootAttribute in project zemberek-nlp by ahmetaa.

the class DictionaryItem method printAttributes.

private void printAttributes(StringBuilder sb, EnumSet<RootAttribute> attrs) {
    if (attrs != null && !attrs.isEmpty()) {
        sb.append("; A:");
    } else {
        return;
    }
    int i = 0;
    for (RootAttribute attribute : attrs) {
        sb.append(attribute.name());
        if (i++ < attrs.size() - 1) {
            sb.append(", ");
        }
    }
    sb.append("]");
}
Also used : RootAttribute(zemberek.core.turkish.RootAttribute)

Aggregations

RootAttribute (zemberek.core.turkish.RootAttribute)6 PhoneticAttribute (zemberek.core.turkish.PhoneticAttribute)3 TurkicLetter (zemberek.core.turkish.TurkicLetter)3 LexiconException (zemberek.morphology.lexicon.LexiconException)3 Locale (java.util.Locale)1 PhoneticExpectation (zemberek.core.turkish.PhoneticExpectation)1 TurkishLetterSequence (zemberek.core.turkish.TurkishLetterSequence)1 MorphemeState (zemberek.morphology._morphotactics.MorphemeState)1 StemTransition (zemberek.morphology._morphotactics.StemTransition)1 StemNode (zemberek.morphology.lexicon.graph.StemNode)1 SuffixData (zemberek.morphology.lexicon.graph.SuffixData)1 LexiconProto (zemberek.morphology.lexicon.proto.LexiconProto)1 MorphemeState (zemberek.morphology.morphotactics.MorphemeState)1 StemTransition (zemberek.morphology.morphotactics.StemTransition)1