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

How to process the mids which can't convert to string name? #14

Closed
JBoRu opened this issue Jun 17, 2022 · 4 comments
Closed

How to process the mids which can't convert to string name? #14

JBoRu opened this issue Jun 17, 2022 · 4 comments

Comments

@JBoRu
Copy link

JBoRu commented Jun 17, 2022

Hi,
When I follow this excellent work, I encounter some problems: I can't convert some mids to the string type name. I use your get_name script and get some triples output. But there is not any helpful string name information. How should I process this problem? Thanks!


Here are some example of mids and their one-hop triples by executed search on the freebase:

m.0gxnnwp : [['m.0gxnnwp', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'people.sibling_relationship'], ['m.0gxnnwp', 'type.object.type', 'people.sibling_relationship'], ['m.0gxnnwp', 'people.sibling_relationship.sibling', 'm.06w2sn5'], ['m.0gxnnwp', 'people.sibling_relationship.sibling', 'm.0gxnnwq']]
m.0855mj_ : [['m.0855mj_', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'film.performance'], ['m.0855mj_', 'type.object.type', 'film.performance'], ['m.0855mj_', 'film.performance.actor', 'm.09l3p'], ['m.0855mj_', 'film.performance.film', 'm.062zjtt'], ['m.0855mj_', 'film.performance.character', 'm.0dttll']]
m.04g55p8: [['m.04g55p8', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'common.topic'], ['m.04g55p8', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'user.dfhuynh.default_domain.assassination'], ['m.04g55p8', 'type.object.type', 'common.topic'], ['m.04g55p8', 'type.object.type', 'user.dfhuynh.default_domain.assassination'], ['m.04g55p8', 'user.dfhuynh.default_domain.assassination.assassinated_person', 'm.0d3k14'], ['m.04g55p8', 'user.dfhuynh.default_domain.assassination.assassin', 'm.0bgl08'], ['m.04g55p8', 'user.dfhuynh.default_domain.assassination.date', '1960-12-11-08:00'], ['m.04g55p8', 'user.dfhuynh.default_domain.assassination.location', 'm.0rqf1'], ['m.04g55p8', 'user.dfhuynh.default_domain.assassination.method', 'm.04g56gm'], ['m.04g55p8', 'user.dfhuynh.default_domain.assassination.outcome', 'm.04g5679']]

@xiye17
Copy link
Collaborator

xiye17 commented Jun 17, 2022

Sure. Could you elaborate a bit? What's the get_name script, and what you wanna get from the mid (and/or you wanna use them for)? Thanks!

@JBoRu
Copy link
Author

JBoRu commented Jun 18, 2022

Hi,
First, the get_name script reference to

def get_friendly_name(entity: str) -> str:

Second, the reason I want to get the mid's name is that I want to instantiate these mid entities and input them to PLMs. Because it seems difficult for PLM to understand the mid representation(eg. m.0gxnnwp).

@xiye17
Copy link
Collaborator

xiye17 commented Jun 18, 2022

This could happen when there are no object name for these entities.

I don’t have good solutions as well. If there are only a small fraction of this kind of data points, I’ll probably just ignore them (filtering) or use [object type] as a general semantic placeholder. There are inevitably noise in the knowledge base.

@JBoRu
Copy link
Author

JBoRu commented Jun 18, 2022

OK, Thanks for your help!

@JBoRu JBoRu closed this as completed Jun 18, 2022
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

2 participants