I tried to put "null" in the encoding parameter: apiCorpora.createDocument(url,
null)
Then, I ran the application again, and the spanish words were detected.

Thanks a lot for your help!

Marina


2006/11/29, Ilian Kitchukov <[EMAIL PROTECTED]>:

Just a clarification : null or "" encoding will force the default OS
encoding to be used. If you insist on using UTF-8 then the document taht
you
want to annotate itself should be saved as a Unicode UTF-8 textual file
prior to giving it to apiCorpora.createDocument(url, "UTF-8") method.

Ilian

----- Original Message -----
From: "Ilian Kitchukov" <[EMAIL PROTECTED]>
To: "Marina Larraud" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: 29 November 2006, Wednesday 12:08
Subject: Re: [KIM-discussion] tilde in documents


> Hi Marina,
>
>> I created the KIMDocument with encoding "UTF-8":
>> KIMDocument kdoc = apiCorpora.createDocument(url, "UTF-8")
>> so, I suppose that this is not the problem.
>
> Huh, I was really surprised but actually this is the very problem.
> I tried two cases within the GATE GUI ant the result of creating a
> document
> was:
> 1) empty encoding (null) - the document is created correctly with those
> special symbols and afterwards entities are regognized that contain such
> symbols as they exist with such labels in the semantic repository
(Sesame)
> 2) encoding UTF-8 - all special symbols are replaced with (?) and this
> prevents correct recognition afterwards
>
> So, my advice is just try what will happen if you use:
> KIMDocument kdoc = apiCorpora.createDocument(url, null)
>
> HTH,
> Ilian
>
> ----- Original Message -----
> From: "Marina Larraud" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: 29 November 2006, Wednesday 01:11
> Subject: [KIM-discussion] tilde in documents
>
>
> Hi,
> I have been using KIM, and I've annotated some documents.
> I have a problem, my kb (file with extension .nt) has some instances
with
> labels in the spanish language. I have aliases in english and spanish.
>
> For example, below there are some triples:
>
> <http://www.ontotext.com/kim/2005/04/wkb#RegionAfricaDelEste> <
> http://www.w3.org/1999/02/22-rdf-syntax-ns#type>  <
> http://choikebilingue#Region> .
> <http://www.ontotext.com/kim/2005/04/wkb#RegionAfricaDelEste> <
> http://www.w3.org/2000/01/rdf-schema#label> "Africa del Este" .
> <http://www.ontotext.com/kim/2005/04/wkb#RegionAfricaDelEste3> <
> http://www.w3.org/2000/01/rdf-schema#label> "Eastern Africa" .
> <http://www.ontotext.com/kim/2005/04/wkb#RegionAfricaDelEste> <
> http://proton.semanticweb.org/2005/04/protons#hasAlias> <
> http://www.ontotext.com/kim/2005/04/wkb#RegionAfricaDelEste3> .
> <http://www.ontotext.com/kim/2005/04/wkb#RegionAfricaDelEste4> <
> http://www.w3.org/2000/01/rdf-schema#label> "África Oriental" .
> <http://www.ontotext.com/kim/2005/04/wkb#RegionAfricaDelEste> <
> http://proton.semanticweb.org/2005/04/protons#hasAlias> <
> http://www.ontotext.com/kim/2005/04/wkb#RegionAfricaDelEste4> .
>
> The problem is that when I go through the document's annotations, I
found
> only "Eastern Africa" and not "África Oriental".
> I noticed is a problem with the tilde.
>
> I created the KIMDocument with encoding "UTF-8":
> KIMDocument kdoc = apiCorpora.createDocument(url, "UTF-8")
>
> so, I suppose that this is not the problem.
>
> Any idea about this?, Can KIM annotate this type of words?
>
> Thanks in advance,
>    Marina
>
>
> __________ NOD32 1888 (20061128) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
>
>
>
--------------------------------------------------------------------------------
>
>
>> _______________________________________________
>> NOTE: Please REPLY TO ALL to ensure that your reply reaches all members
>> of
>> this mailing list.
>>
>> KIM-discussion mailing list
>> [email protected]
>> http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com
>>
>>
>> __________ NOD32 1888 (20061128) Information __________
>>
>> This message was checked by NOD32 antivirus system.
>> http://www.eset.com
>>
>>
>
>
> _______________________________________________
> NOTE: Please REPLY TO ALL to ensure that your reply reaches all members
of
> this mailing list.
>
> KIM-discussion mailing list
> [email protected]
> http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com
>
>
> __________ NOD32 1888 (20061128) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>


_______________________________________________
NOTE: Please REPLY TO ALL to ensure that your reply reaches all members of this 
mailing list.

KIM-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com

Reply via email to