Package org.foray.hyphen

Examples of org.foray.hyphen.HyphenationServer4a


     * Tests various Strings against the method {@link NaturalLanguage#validateText(CharSequence)}.
     * @throws IOException For errors creating the Hyphenation server.
     */
    @Test
    public void testValidateText() throws IOException {
        final HyphenationServer4a server = TestHyphenationServer4a.makeHyphenationServerStatic();
        final NaturalLanguage nl = server.getNaturalLanguage(Language.MARSHALLESE);
        final int invalidChar = nl.validateText("ka" + '\u00B5' + "uri");
        assertEquals(2, invalidChar);
    }
View Full Code Here


        try {
            hyphenationDir = URLFactory.createURL(nlDir);
        } catch (final MalformedURLException e) {
            System.err.println("Invalid URL: " + nlDir);
        }
        final HyphenationServer4a server = new HyphenationServer4a(null,
                hyphenationDir, hyphenationDir);

        /* Build the list of files to process. */
        final File file = new File(input);
        File[] filesToProcess = null;
View Full Code Here

TOP

Related Classes of org.foray.hyphen.HyphenationServer4a

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.