Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synset symbol is being truncated #27

Open
kliuless opened this issue Jun 12, 2017 · 0 comments
Open

Synset symbol is being truncated #27

kliuless opened this issue Jun 12, 2017 · 0 comments

Comments

@kliuless
Copy link

Example:

[3] pry(main)> WordNet::Lemma.find('turtle', :n).synsets[0]
=> #<WordNet::Synset:0x007ffa3381cd80
 @gloss="a sweater or jersey with a high close-fitting collar",
 @lex_filenum="06",
 @pointers=
  [#<WordNet::Pointer:0x007ffa3381c4e8 @offset=4370048, @pos="n", @source="00", @symbol="@", @target="00">,
   #<WordNet::Pointer:0x007ffa3381c3f8 @offset=3595614, @pos="n", @source="00", @symbol="@", @target="00">,
   #<WordNet::Pointer:0x007ffa3381c308 @offset=4502364, @pos="n", @source="00", @symbol="%", @target="00">],
 @pos="n",
 @pos_offset=4502197,
 @synset_offset="04502197",
 @synset_type="n",
 @word_counts={"turtleneck"=>0, "turtle"=>0, "polo-neck"=>0}>

Notice the third pointer's symbol is %. However, in the data.noun file, the symbol is %p. Looks like the problem is happening at https://github.com/doches/rwordnet/blob/master/lib/rwordnet/synset.rb#L75

I realize that @pointers is private data, but sometimes I want to see what relations are available by peeking into the private data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant