Training Custom Entity Relations #113
Replies: 3 comments
-
Would be better to ask it on SO, here I may answer on Java->C# code conversion issues. Also you may look at TokensRegex it may be somehow useful for your case. JFYI we have TP for TokenRegex - https://github.com/statmuse/TokensRegexProvider |
Beta Was this translation helpful? Give feedback.
-
Got it, thanks for that. I'll have a look, and if I'm not able to resolve it, I'll post the same thing up on Stack Overflow and report back. Awesome :) |
Beta Was this translation helpful? Give feedback.
-
Going through the Stack Overflow, looks like this may not be possible due to this bit of code found at: Found it here - http://stackoverflow.com/questions/34922368/how-to-make-the-custom-relationshipextractor-understand-custom-entities/38814333#38814333 I also agree with 'testTester' quoting: "not sure why these classes are hard-coded!" TokensRegex may not provide me with what I need either, so I'll keep looking for another solution. Typical hey... |
Beta Was this translation helpful? Give feedback.
-
Hello,
Thanks so much for making this possible through .Net, I currently have custom entities working and tested. For example, I've managed to train it to know that 'Micheal Jackson' is an 'artist' and to ignore other names that I'm not interested in. I've also got it to know that when talking about 'Thriller' that it knows to label it as entity type 'album'.
However, I'm now to a point where I would like it to build a custom relation between the custom entities, 'artist' & 'album'. Just as we have an Organization (Org) that is Based In (OrgBased_In) a Location (Loc), I would like to have an 'artist' that is 'involved' in an 'album'.
How would one go about doing this? Is there any documents or C# examples of training some relations and then seeing the results printed out with these custom relations to our custom entities all in action?
Here is some code which I have running at the moment.
The next section of code is what I'm using in order to test the entity relations model which was generated by the previous training code.
The results from the testing code, only shows relations between PEOPLE and LOCATIONS, nothing about Artists or Albums.
Is there anything I'm missing? I feel that during the training, I make no references to my custom entity models, it shouldn't know about it anyways, but I can not see how I'm meant to get that working?
Any documentation, or better yet a code example please.
Many thanks
Beta Was this translation helpful? Give feedback.
All reactions