Could a language model be trained on patents downloaded from a patent office website and…
- User
Could a language model be trained on patents downloaded from a patent office website and converted to text?
- Assistant
Of course! Language models are designed specifically around understanding, analysing, and generating text. So it is possible to train these models on patents downloaded from a website.
Even though language model could understand the raw HTML that is download from the website (if you decide to do so), it is advised that you clean up and structure the data in a way that is more appropriate to what you are trying to achieve.
- User
How would you clean it up?
- Assistant
There are multiple ways to extract text from raw HTML code. Here are a couple:
- Use a regex pattern to strip html tags from the code
- Use a scraping tool to extract text from a webpage - here's a command line example:
curl https://12ft.io/<URL> - Use the reader view in your browser, or a reader view plugin - this approach is a bit more manual, but requires no special knowledge
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)