Paraphrasing

  • 4 Replies
  • 367 Views
*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6696
  • Mostly Harmless
Paraphrasing
« on: July 02, 2019, 07:51:06 PM »
Has anyone worked with paraphrasing at all?

I'm looking for an API, I've found old references to a Microsoft Paraphrase API, but can't track it down, maybe they dropped it.

An API would be a quick fix, but it might make a nice Summer project in PHP.

*

Zero

  • Trusty Member
  • *********
  • Terminator
  • *
  • 799
  • Ready?
    • Thinkbots are free
Re: Paraphrasing
« Reply #1 on: July 02, 2019, 08:22:29 PM »
There's a corpus, here
https://www.microsoft.com/en-us/download/details.aspx?id=52398
That's not an API, not sure whether it helps.

Is it for Elfscript?
Thinkbots are free, as in 'free will

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6696
  • Mostly Harmless
Re: Paraphrasing
« Reply #2 on: July 02, 2019, 09:01:01 PM »
It might help down the line thanks. :)

Quote
Is it for Elfscript?

Yes but as part of the engine running Jess. The language/script is pretty much there now, but the engine can always be expanded with further functions called by script.

I was looking for a way to rephrase sentences too, that's how I ended up looking for something to paraphrase.

I'm thinking about a way to give more variety in responses. So for example, if the bot asks:

Hello user what are you doing?

I'd be aiming to programmatically rephrase that to something like:

Hey, what are you up to?

I have a dictionary so I could try using synonyms to start with.

*

Don Patrick

  • Trusty Member
  • ********
  • Replicant
  • *
  • 513
    • Artificial Detective
Re: Paraphrasing
« Reply #3 on: July 03, 2019, 09:59:10 AM »
Some methods: http://veredshwartz.blogspot.com/2017/08/paraphrasing.html
A paraphrase database: http://paraphrase.org/#/search?q=how%20do%20you%20do&filter=&lang=en

I've only done synonyms myself, it works reasonably on verbs but replacing nouns can get weird.
CO2 retains heat. More CO2 in the air = hotter climate.

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6696
  • Mostly Harmless
Re: Paraphrasing
« Reply #4 on: July 03, 2019, 01:09:57 PM »
Thanks Don, I remembered your summariser project of course, so thought you must have come by this :)

Quote
I've only done synonyms myself, it works reasonably on verbs but replacing nouns can get weird.

Yes I have tried that in the past and agree  :D

 


Skywatch: Ambitious Sci-Fi Short
by Art (AI in Film and Literature.)
December 12, 2019, 04:46:32 PM
"Tinycog on a Pi" (wannabe)project
by Zero (General Project Discussion)
December 12, 2019, 02:34:58 PM
XKCD Comic : Timeline of the Universe
by Tyler (XKCD Comic)
December 12, 2019, 12:01:25 PM
hey
by Zero (General Chat)
December 12, 2019, 09:30:06 AM
Implika automated inference engine
by goaty (General Project Discussion)
December 12, 2019, 08:07:21 AM
XKCD Comic : Flu Shot
by Hopefully Something (XKCD Comic)
December 11, 2019, 10:34:15 PM
How does Google Translator work
by LOCKSUIT (General AI Discussion)
December 11, 2019, 04:18:11 PM
Slime moulds and what they learn....
by Art (General AI Discussion)
December 11, 2019, 01:37:28 PM

Users Online

25 Guests, 0 Users

Most Online Today: 41. Most Online Ever: 340 (March 26, 2019, 09:47:57 PM)

Articles