Use of semantic vectors - semantic-analysis

I want to use the semanticvectors API. I am completely new at this. I want to make a program which takes some documents and searches keywords and returns the documents which are conceptually similar to the search keywords. I want to know if there is any document from which I can get all the function and their functionality description and from which I can learn or if there is any example to do so.
I have checked
https://code.google.com/p/semanticvectors/
and
http://semanticvectors.googlecode.com/svn/javadoc/latest-stable/index.html
but couldn't understand anything. Please help me. Thank you.

It is not clear what you want to do with SemanticVectors. Here is where you should start off with:
https://code.google.com/p/semanticvectors/wiki/InstallationInstructions
And for specific questions, it would be fruitful if you ask on project's forum itself:
https://groups.google.com/forum/?fromgroups#!forum/semanticvectors

Related

Is it possible to have a NPC offer items only to characters with a certain achievement?

Im looking for a way to add an NPC which sells items based on the achievements a character has. Because of my lack of other coding skills, if at all possible i would like to achieve it with SQL commands, hence modifying the db. I was looking through the conditions page on the wiki but have no idea how to use the provided information.
Also i was backtracing the db regarding the NPC Charles Worth who happens to teach tailors recipes based on achievements they have. I intended to copy this toons conditions, but couldnt find what entries to use.
Any help, clarifying db entries, or pointing to the right direction in another way, is much appreciated.
Please follow this link for the documentation:
https://www.azerothcore.org/wiki/conditions
You can use the source type: "SOURCE_TYPE_NPC_VENDOR" and the condition type: "CONDITION_ACHIEVEMENT" for what you need, how to implement this, you can find that in the link above.
Also, one way to make this easier is to use the tool developer by the azerothcore team, Keira3.
This is a very visual Database Editor and can help you understand what each column do as almost each cell is documented and you have links to the full documentation as well.
Keira3 link: https://github.com/azerothcore/keira3

how to write a regular expression for a url to create a google analytics destination goal?

I want to create a destination goal in google analytics. The URL is -https://www.dropbox.com/sh/afxvoo7yramakbj/AADdI77nqKL2sT5mIYXxYlyya?dl=0
This part https://www.dropbox.com/sh/ is same in all destination but the later characters vary. what do I need to write to create a regular expression.
Can anyone help me with this ?
Thanks for reading this. Hope you guys have a great day.
with Regards,
Bhola
I'm tempted to say that you should use the wildcard match to match anything and everything after the sh/ like this
^/sh/.*
but this might be too broad for you. But then again that stuff after the sh/ looks too random to find a pattern. If the random stuff is always in this format
https://www.dropbox.com/sh/random_thing/another_random_thing?dl=0
then you could try this pattern
^/sh/.*/.*\?dl=0
Not sure if the query parameter changes either, but you should try to learn a bit of regex to figure that part out if the pattern doesn't work.

Two questions about Wakari.io

(1) How do you "un-share" a bundle? (I know, this must be in the documentation. But I really can't find it. Sorry!)
(2) Is there any kind of user mailing list for Wakari, where questions like the above would be better targeted?
OK, well I ended up eventually finding it. So, just in case anybody else should look here. You can pull down a menu under your user name. One of the options is "settings." Within that there is an item called "sharing." When you click on that you get a list of your currently shared bundles with an option to delete them.

Freebase with own data?

I have been looking for an autosuggest search script and I have finally found one that I like, the only problem is that I cannot find a way to get it to run off our database results.
Is there any way to customize this script so that it runs from our own database, and not off the freebase pre-defined data types?
http://www.freebase.com/docs/suggest
Have you tried overriding service_url and service_path ? There are also the corresponding params for the flyout service. It's documented in the docs that you pointed to.
As masouras says, you can override service_url and service_path, but that's not particularly helpful unless you have another service which provides the same APIs as Freebase.
Dae Park recently posted a recipe to the Freebase mailing list which might help - however, I'm not aware of anyone who's actually managed to get Suggest working with anything other than Freebase.

Token replacement

I currently implement a replace function in the page render method which replaces commonly used strings - such as replace [cfe] with the root to the customer front end. This is because the value may be different based on the version of the site - for example the root to the image folder ([imagepath]) is /Images on development and live, but /Test/Images on test.
I have a catalogue of products for which I would like to change [productName] to a link to the catalogue page for that product. I would like to go through the entire page and replace all instances of [someValue] with the relevant link. Currently I do this by looping through all the products in the product database and replacing [productName] with the link to the catalog page for that product. However this is limited to products which exist in the database. "Links" to products which have been removed currently wont be replaced, so [someValue] will be displayed to the user. This does not look good.
So you should be able to see my problem from this. Does anyone know of a way to achieve what I would like to easily? I could use regexes, but I don't have much experience of those. If this is the easiest way, using "For Each Match As String In Regex.Matches(blah, blah)" then I am willing to look further into this.
However at some point I would like to take this further - for example setting page layouts such as 3 columns with an image top right using [layout type="3colImageTopRight" imageURL="imageURL"]Content here[/layout]. I think I could kind of do this now, but I cant figure out how to deal with this if the imageURL were, say, [Image:Product01.gif] (using regex.match("[[a-zA-Z]{0,}]") I think would match just [layout type="3colImageTopRight" imageURL="[Image:Product01.gif] (it would not get to the end of the layout tag). Obviously the above wouldn't quite work, as I haven't included double quotes in the match string or anything, but you get the general idea. You should be able to get the general idea of what I am getting at and what I am trying to do though.
Does anyone have any ideas or pointers which could help me with this? Also if this is not strictly token replacement then please point me to what it is, so I can further develop this.
Aristos - hope reexplaining this resolves the confusion.
Thanks in advance,
Regards,
Richard Clarke
#RichardClarke - I would go with Regular Expressions, they're not as terrible to learn as you might think and with a bit of careful usage will solve your problems.
I've always found this a very useful tool.
http://derekslager.com/blog/posts/2007/09/a-better-dotnet-regular-expression-tester.ashx
goes nicely with a cheat sheet ;-)
http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/
Good luck.

Resources