The pre-processed data output consists of trie and bunch of numpy arrays containg values and offset.
Is it possible to get the QID of an item from this data? For example if I do
trie = marisa_trie.Trie().load( join(language_path, "trie.marisa") )anchor = trie.get("human")
I get a number 592252 which is not a Q-ID in wikidata for 'human'.
I was trying to play around with the offset and value numpy arrays to retrieve the Q-ID but wasn't able to.
Please let me know how to do the above. @JonathanRaiman (Sorry for bugging you again :) )
The pre-processed data output consists of trie and bunch of numpy arrays containg values and offset.
trie = marisa_trie.Trie().load( join(language_path, "trie.marisa") )
anchor = trie.get("human")
I get a number 592252 which is not a Q-ID in wikidata for 'human'. I was trying to play around with the offset and value numpy arrays to retrieve the Q-ID but wasn't able to. Please let me know how to do the above. @JonathanRaiman (Sorry for bugging you again :) )