Package org.apache.stanbol.enhancer.nlp.morpho

Examples of org.apache.stanbol.enhancer.nlp.morpho.NumberFeature


            assertTrue("Morpho Feature value are expected of typed literal", morphoFeature instanceof UriRef);
            String feature=((UriRef)morphoFeature).getUnicodeString();
            assertFalse("Morpho Feature MUST NOT be empty",feature.isEmpty());
            if(feature.startsWith(OLIA_NAMESPACE)){
              String key=feature.substring(OLIA_NAMESPACE.length());
              NumberFeature cat=NumberFeature.valueOf(key);
              assertTrue("Number of "+TERM+" should be "+Gender.Feminine , (cat==NumberFeature.Singular));
            }
        }
        morphoFeatureIterator = enhancements.filter(textAnnotation, CeliLemmatizerEnhancementEngine.hasLemmaForm, null);
        assertTrue("No Number Morpho Feature value found for TextAnnotation "+textAnnotation+"!", morphoFeatureIterator.hasNext());
View Full Code Here


            assertTrue("Morpho Feature value are expected of typed literal", morphoFeature instanceof UriRef);
            String feature=((UriRef)morphoFeature).getUnicodeString();
            assertFalse("Morpho Feature MUST NOT be empty",feature.isEmpty());
            if(feature.startsWith(OLIA_NAMESPACE)){
              String key=feature.substring(OLIA_NAMESPACE.length());
              NumberFeature cat=NumberFeature.valueOf(key);
              assertTrue("Number of "+TERM+" should be "+Gender.Feminine , (cat==NumberFeature.Singular));
            }
        }
        morphoFeatureIterator = enhancements.filter(textAnnotation, CeliLemmatizerEnhancementEngine.hasLemmaForm, null);
        assertTrue("No Number Morpho Feature value found for TextAnnotation "+textAnnotation+"!", morphoFeatureIterator.hasNext());
View Full Code Here

TOP

Related Classes of org.apache.stanbol.enhancer.nlp.morpho.NumberFeature

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.